Written by James McDonald

February 26, 2014

Running nginx with php-fpm configured to run a php-fpm

Running Apache using mod_fcgid to run php-cgi as a different user from Apache

I ran the Apache benchmarking tool

ab -c 100 -n 10000 http://servername/php_page.php

The php_page.php file has the following in it.

<?php

header('Content-type: text/html');

foreach($_SERVER as $h=>$v)
   if(ereg('HTTP_(.+)|REMOTE_ADDR',$h,$hp))
                echo "<li>$h = $v</li>\n";
?>
no net (local)net (accross network)
Apache on Rackspace 512 MB VPS instance16.92616.590
NGinx on Rackspace VPS 1GB Ram instance7.3126.795

The end result was as the table above.

Interestingly ab spawned so many copies of the php-cgi that it quickly ran out of resources on the 512 MB server so I have to figure out how to throttle it so it doesn’t fall over.

 

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...