<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: nginx + apache = happy &amp; fast cPanel server</title>
	<atom:link href="http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/</link>
	<description>Emergency Medicine for Hosting &#38; Server Admins</description>
	<lastBuildDate>Wed, 14 Sep 2011 18:00:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Glenn Kelley</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-426</link>
		<dc:creator>Glenn Kelley</dc:creator>
		<pubDate>Wed, 14 Sep 2011 18:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-426</guid>
		<description>If your ip is known for doing some sneaky stuff - of course.   I would rather have you checked against being a BOT then let your system create havok - and at the same time obtain a huge increase on our traffic.</description>
		<content:encoded><![CDATA[<p>If your ip is known for doing some sneaky stuff &#8211; of course.   I would rather have you checked against being a BOT then let your system create havok &#8211; and at the same time obtain a huge increase on our traffic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal Commerce</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-422</link>
		<dc:creator>Drupal Commerce</dc:creator>
		<pubDate>Sun, 03 Jul 2011 06:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-422</guid>
		<description>@KeyJey, everyone of those benchmarks you&#039;ve shown indicates that nGinx beats apache. These increased speeds will help your site load faster. Consider this page load for Wordpress.

You hit /index.php and save a couple miliseconds. No big deal right?

But keep in mind that that one index.php also loads usually around 30-60 CSS, JS, JPEG, PNG, GIF static files as well. You&#039;re benchmark for static HTML seems to indicate nginx can server over 400 additional requests over apache. This is where nGinx will shine.

Additionally nginx has a much smaller memory footprint over apache. nginx processes usually take up like 4-9mB, where apache usually run up ~20mB. Also couple this with nginx the fact nginx serves requests quicker and thus processes close faster and you&#039;ll save a tonne of memory.

If you want your pages (aka PHP pages) to be served faster, you need to install an opcache like APC. This will cache the compiled PHP after it&#039;s first request and continue to server the cached opcode instead of compiling it on each request, significantly speeding requests up.

After that if you really want to speed up your Wordpress, you should install WP-SuperCache, which caches full page requests as static HTML. Since we know nginx is much faster at serving these, you&#039;ll get an even larger increase.

I would recommend implementing all these modifications along with nginx.

I would also recommend installing something to aggregate all your CSS and JS files into one large file. This will reduce the amount of requests per page and significantly reduce the load on your server and speed up how fast the page gets loaded on your readers browsers.

Also make sure gzip is enabled in nginx. This will compress CSS/JS/HTML before it gets sent to the browser (which will then decompress it) reducing the data send across the network and allow the browser to get at it much faster. It will also reduce the amount of bandwidth your site consumes.</description>
		<content:encoded><![CDATA[<p>@KeyJey, everyone of those benchmarks you&#8217;ve shown indicates that nGinx beats apache. These increased speeds will help your site load faster. Consider this page load for WordPress.</p>
<p>You hit /index.php and save a couple miliseconds. No big deal right?</p>
<p>But keep in mind that that one index.php also loads usually around 30-60 CSS, JS, JPEG, PNG, GIF static files as well. You&#8217;re benchmark for static HTML seems to indicate nginx can server over 400 additional requests over apache. This is where nGinx will shine.</p>
<p>Additionally nginx has a much smaller memory footprint over apache. nginx processes usually take up like 4-9mB, where apache usually run up ~20mB. Also couple this with nginx the fact nginx serves requests quicker and thus processes close faster and you&#8217;ll save a tonne of memory.</p>
<p>If you want your pages (aka PHP pages) to be served faster, you need to install an opcache like APC. This will cache the compiled PHP after it&#8217;s first request and continue to server the cached opcode instead of compiling it on each request, significantly speeding requests up.</p>
<p>After that if you really want to speed up your WordPress, you should install WP-SuperCache, which caches full page requests as static HTML. Since we know nginx is much faster at serving these, you&#8217;ll get an even larger increase.</p>
<p>I would recommend implementing all these modifications along with nginx.</p>
<p>I would also recommend installing something to aggregate all your CSS and JS files into one large file. This will reduce the amount of requests per page and significantly reduce the load on your server and speed up how fast the page gets loaded on your readers browsers.</p>
<p>Also make sure gzip is enabled in nginx. This will compress CSS/JS/HTML before it gets sent to the browser (which will then decompress it) reducing the data send across the network and allow the browser to get at it much faster. It will also reduce the amount of bandwidth your site consumes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: random person</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-421</link>
		<dc:creator>random person</dc:creator>
		<pubDate>Sat, 25 Jun 2011 05:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-421</guid>
		<description>cloudflare sucks it gives random people a password to input and basically tries to sell their software to people.</description>
		<content:encoded><![CDATA[<p>cloudflare sucks it gives random people a password to input and basically tries to sell their software to people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Kelley</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-410</link>
		<dc:creator>Glenn Kelley</dc:creator>
		<pubDate>Thu, 03 Feb 2011 00:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-410</guid>
		<description>you could also check out www.CloudFlare.com - amazing FREE service.</description>
		<content:encoded><![CDATA[<p>you could also check out <a href="http://www.CloudFlare.com" rel="nofollow">http://www.CloudFlare.com</a> &#8211; amazing FREE service.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KeyJey</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-405</link>
		<dc:creator>KeyJey</dc:creator>
		<pubDate>Thu, 13 Jan 2011 05:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-405</guid>
		<description>Hi, I ordered to install Nginx to my cPanel VPS and after a succesful install I didn&#039;t get any changes after some apache benchmark tests didn&#039;t get any faster response:

wordpress 3.0 site:
Before: root@server:~# ab -n 100 -c 5 http://www.pepe.com/ (WP 3.0)
Requests per second:    8.42 [#/sec] (mean)
After: root@server:~# ab -n 100 -c 5 http://www.pepe.com/ (WP 3.0)
Requests per second:    8.46 [#/sec] (mean)

Simply HTML file with image:
Before: root@server:~# ab -n 100 -c 5 http://domain.com/test (a small HTML with a simply image)
Requests per second:    2373.49 [#/sec] (mean)
After:root@server:~# ab -n 100 -c 5 http://domain.com/test (a small HTML with a simply image)
Requests per second:    2786.91 [#/sec] (mean)

Also my tech guy says: 

---- cut here ---
You have tested it with just 5 concurrent connections, it is very low. The benefit of Nginx is ability to handle number of concurrent connections when
Apache will slow down a lot.


Example on one of our servers:
- -n 100 -c 5 nginx
Requests per second:    4.76 [#/sec] (mean)

- -n 100 -c 5 apache
Requests per second:    4.58 [#/sec] (mean)


- -n 2000 -c 100 nginx
Requests per second:    175.30 [#/sec] (mean)

- -n 2000 -c 100 apache
Requests per second:    101.09 [#/sec] (mean)

As you may see it is clear win. Of course, each site is individual, each usage are to be taken into consideration, etc.
But Nginx will perform better.



Your static site performs as follow:

nginx
Requests per second:    16801.75 [#/sec] (mean)

apache
Requests per second:    10690.25 [#/sec] (mean)

It is with 200 concurrent connections.

...with 500 apache started to die:
Requests per second:    15260.75 [#/sec] (mean)
Requests per second:    5082.34 [#/sec] (mean)

...and with 1000 connections:
Requests per second:    12964.08 [#/sec] (mean)
Requests per second:    8371.96 [#/sec] (mean)

Values are fluctuating a lot (e.g. it may be 12k as lowest for nginx, but never more than ~12k for apache)

So it all depends on the method of test (the load should be equal, etc.). Nginx will speed up on its caching as well. Even more, when it come to real
concurrency when you serve different sites at once it act even better.

Hope it helps you enjoy of Nginx more!
---- cut here ---

Do you totally agree with him? I just wanted to load faster my webpages. My VPS is a hight hardware resources system and the only VPS in my main node (Inteli7 8 cores + 8GBs RAM DDR3)

Do you totally agree with it? I just want my webserver to make webpages load faster !!! :(</description>
		<content:encoded><![CDATA[<p>Hi, I ordered to install Nginx to my cPanel VPS and after a succesful install I didn&#8217;t get any changes after some apache benchmark tests didn&#8217;t get any faster response:</p>
<p>wordpress 3.0 site:<br />
Before: root@server:~# ab -n 100 -c 5 <a href="http://www.pepe.com/" rel="nofollow">http://www.pepe.com/</a> (WP 3.0)<br />
Requests per second:    8.42 [#/sec] (mean)<br />
After: root@server:~# ab -n 100 -c 5 <a href="http://www.pepe.com/" rel="nofollow">http://www.pepe.com/</a> (WP 3.0)<br />
Requests per second:    8.46 [#/sec] (mean)</p>
<p>Simply HTML file with image:<br />
Before: root@server:~# ab -n 100 -c 5 <a href="http://domain.com/test" rel="nofollow">http://domain.com/test</a> (a small HTML with a simply image)<br />
Requests per second:    2373.49 [#/sec] (mean)<br />
After:root@server:~# ab -n 100 -c 5 <a href="http://domain.com/test" rel="nofollow">http://domain.com/test</a> (a small HTML with a simply image)<br />
Requests per second:    2786.91 [#/sec] (mean)</p>
<p>Also my tech guy says: </p>
<p>&#8212;- cut here &#8212;<br />
You have tested it with just 5 concurrent connections, it is very low. The benefit of Nginx is ability to handle number of concurrent connections when<br />
Apache will slow down a lot.</p>
<p>Example on one of our servers:<br />
- -n 100 -c 5 nginx<br />
Requests per second:    4.76 [#/sec] (mean)</p>
<p>- -n 100 -c 5 apache<br />
Requests per second:    4.58 [#/sec] (mean)</p>
<p>- -n 2000 -c 100 nginx<br />
Requests per second:    175.30 [#/sec] (mean)</p>
<p>- -n 2000 -c 100 apache<br />
Requests per second:    101.09 [#/sec] (mean)</p>
<p>As you may see it is clear win. Of course, each site is individual, each usage are to be taken into consideration, etc.<br />
But Nginx will perform better.</p>
<p>Your static site performs as follow:</p>
<p>nginx<br />
Requests per second:    16801.75 [#/sec] (mean)</p>
<p>apache<br />
Requests per second:    10690.25 [#/sec] (mean)</p>
<p>It is with 200 concurrent connections.</p>
<p>&#8230;with 500 apache started to die:<br />
Requests per second:    15260.75 [#/sec] (mean)<br />
Requests per second:    5082.34 [#/sec] (mean)</p>
<p>&#8230;and with 1000 connections:<br />
Requests per second:    12964.08 [#/sec] (mean)<br />
Requests per second:    8371.96 [#/sec] (mean)</p>
<p>Values are fluctuating a lot (e.g. it may be 12k as lowest for nginx, but never more than ~12k for apache)</p>
<p>So it all depends on the method of test (the load should be equal, etc.). Nginx will speed up on its caching as well. Even more, when it come to real<br />
concurrency when you serve different sites at once it act even better.</p>
<p>Hope it helps you enjoy of Nginx more!<br />
&#8212;- cut here &#8212;</p>
<p>Do you totally agree with him? I just wanted to load faster my webpages. My VPS is a hight hardware resources system and the only VPS in my main node (Inteli7 8 cores + 8GBs RAM DDR3)</p>
<p>Do you totally agree with it? I just want my webserver to make webpages load faster !!! <img src='http://www.hostmedic.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emi</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-399</link>
		<dc:creator>emi</dc:creator>
		<pubDate>Tue, 07 Sep 2010 15:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-399</guid>
		<description>how about .htaccess ? is that going to work with nginix?</description>
		<content:encoded><![CDATA[<p>how about .htaccess ? is that going to work with nginix?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sadotmd</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-398</link>
		<dc:creator>sadotmd</dc:creator>
		<pubDate>Fri, 03 Sep 2010 16:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-398</guid>
		<description>Good article. Will try the instructions on my cPanel server</description>
		<content:encoded><![CDATA[<p>Good article. Will try the instructions on my cPanel server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Optimization Tips &#124; Nanzad - Wordpress Developer</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-393</link>
		<dc:creator>Wordpress Optimization Tips &#124; Nanzad - Wordpress Developer</dc:creator>
		<pubDate>Fri, 11 Jun 2010 07:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-393</guid>
		<description>[...] like nginx to serve static content (ie. images) while passing dynamic requests is another popular technique you can use to improve [...]</description>
		<content:encoded><![CDATA[<p>[...] like nginx to serve static content (ie. images) while passing dynamic requests is another popular technique you can use to improve [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brand</title>
		<link>http://www.hostmedic.com/admin/network_administration/nginx-apache-happy-fast-cpanel-server/comment-page-1/#comment-191</link>
		<dc:creator>Brand</dc:creator>
		<pubDate>Fri, 25 Sep 2009 01:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostmedic.com/?p=459#comment-191</guid>
		<description>Hello! Great article, but may you please share with us how to set these hooks? thanks!</description>
		<content:encoded><![CDATA[<p>Hello! Great article, but may you please share with us how to set these hooks? thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

