<?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: Tuning Apache and MySQL for Best Performance in a Shared Virtual Hosting Environment	</title>
	<atom:link href="http://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/feed/" rel="self" type="application/rss+xml" />
	<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/</link>
	<description>portfolio of web work</description>
	<lastBuildDate>Mon, 31 Aug 2015 20:34:43 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: kingsley		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-27969</link>

		<dc:creator><![CDATA[kingsley]]></dc:creator>
		<pubDate>Mon, 31 Aug 2015 20:34:43 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-27969</guid>

					<description><![CDATA[Hello, 

Thanks for this informative guidelines, hopefully will give it a try.]]></description>
			<content:encoded><![CDATA[<p>Hello, </p>
<p>Thanks for this informative guidelines, hopefully will give it a try.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dennis		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-16025</link>

		<dc:creator><![CDATA[dennis]]></dc:creator>
		<pubDate>Wed, 07 Jan 2015 21:42:53 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-16025</guid>

					<description><![CDATA[Thank you so much for your guides! Not much to add or ask only a big thank you for all tweaking time i&#039;ve saved because of your blog :)

I&#039;m in the middle of building my new personal webserver and your guides are somewhat a blueprint for my new config. (centos 7 + virtualmin + php 5.6 + opcache + apcu + w3tc and some customized minify). &#062;&#062; Requests per second: 784.50 [#/sec] (mean).

Next test willbe varnish in front of apache with ssl offloading to nginx.

My old setup was active for the last 3 years (virtualmin + varnish + nginx + apache + csf etc etc) but a lot has changed the last years.... :)]]></description>
			<content:encoded><![CDATA[<p>Thank you so much for your guides! Not much to add or ask only a big thank you for all tweaking time i&#8217;ve saved because of your blog :)</p>
<p>I&#8217;m in the middle of building my new personal webserver and your guides are somewhat a blueprint for my new config. (centos 7 + virtualmin + php 5.6 + opcache + apcu + w3tc and some customized minify). &gt;&gt; Requests per second: 784.50 [#/sec] (mean).</p>
<p>Next test willbe varnish in front of apache with ssl offloading to nginx.</p>
<p>My old setup was active for the last 3 years (virtualmin + varnish + nginx + apache + csf etc etc) but a lot has changed the last years&#8230;. :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris Gilligan		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11585</link>

		<dc:creator><![CDATA[Chris Gilligan]]></dc:creator>
		<pubDate>Wed, 05 Feb 2014 15:25:57 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-11585</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11582&quot;&gt;Güney&lt;/a&gt;.

Go to the &lt;a href=&quot;http://web.archive.org/&quot; rel=&quot;nofollow&quot;&gt;Wayback Machine&lt;/a&gt; for an &lt;a href=&quot;http://web.archive.org/web/20120620141433/https://telvps.com/clients/knowledgebase/25/HOW-TO-Optimize-Apache-for-Low-Memory-Usage.html&quot; rel=&quot;nofollow&quot;&gt;archived version of the Apache optimization tutorial&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11582">Güney</a>.</p>
<p>Go to the <a href="http://web.archive.org/" rel="nofollow">Wayback Machine</a> for an <a href="http://web.archive.org/web/20120620141433/https://telvps.com/clients/knowledgebase/25/HOW-TO-Optimize-Apache-for-Low-Memory-Usage.html" rel="nofollow">archived version of the Apache optimization tutorial</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Güney		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11582</link>

		<dc:creator><![CDATA[Güney]]></dc:creator>
		<pubDate>Wed, 05 Feb 2014 02:51:24 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-11582</guid>

					<description><![CDATA[Hello, the link you gave for Apache tuning doesn&#039;t work. Or at least, not for me. Could you perhaps explain what method you meant please?

Thank you in advance!]]></description>
			<content:encoded><![CDATA[<p>Hello, the link you gave for Apache tuning doesn&#8217;t work. Or at least, not for me. Could you perhaps explain what method you meant please?</p>
<p>Thank you in advance!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris Gilligan		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11579</link>

		<dc:creator><![CDATA[Chris Gilligan]]></dc:creator>
		<pubDate>Sun, 26 Jan 2014 15:31:43 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-11579</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11578&quot;&gt;Neelim Sahariah&lt;/a&gt;.

Hello, Neelim... thank you for your compliments! I have created these tutorials as a way to remember (for myself) how to set up my servers. I am glad to hear when others have followed these steps as well. I am not a sysadmin... just a web designer who enjoys the responsibility of configuring and running my own servers.

Following are some suggestions; you can find steps for most of these on this site. Some of my tutorials are getting quite old, so &quot;your mileage may vary&quot;.

&lt;strong&gt;Firewall with ConfigServer,&lt;/strong&gt; pay attention to configuration, and understand what each setting will do.

&lt;strong&gt;In W3 Total Cache settings, choose APC for page, minify and object cache.&lt;/strong&gt; Turn off database cache, as it will not be much needed if MySQL is setup correctly (W3 db cache is OK for shared hosting accounts if you can&#039;t configure MySQL); if db is on a separate server, consider using memcache... if you have a single server, this is not applicable.

&lt;strong&gt;W3 minify: choose Manual, not automatic;&lt;/strong&gt; this requires some knowledge of your WordPress theme&#039;s css and javascript, and choosing appropriate loading method and order for each file. I think the automatic minify is a bad idea if you use a CDN, because all of the css and all of the js files are combined into 2 large local files. If you cannot get minified files to work properly, then just turn off minify and use CDN.

&lt;strong&gt;Use a CDN;&lt;/strong&gt; W3 does an excellent job of sending static files to CDN. This will take a huge load off your web server. If you don&#039;t have  an off-server CDN, find a plugin e.g. Use Google Libraries to offload common .js files.

&lt;strong&gt;Be sure to optimize MySQL with tips from MySQL Tuning Primer;&lt;/strong&gt; run server under expected load for at least 24hrs between changes to my.conf.

&lt;strong&gt;Allocate more apc.shm_size per Virtual Server in php.ini APC configuration,&lt;/strong&gt; and make sure PHP memory_limit is sufficient to handle shm_size... perhaps 2x or 3x apc.shm_size.

&lt;strong&gt;Test, tweak, test, tweak... use webpagetest.org;&lt;/strong&gt; use Chrome or Safari Web Inspector and make sure your web server is actually caching by examining the request and response headers.

Also consider using Varnish in front of Apache... I&#039;m not doing this at the moment, but plan to set it up on my system again, soon.

And realize the memory usage reported by Virtualmin&#039;s dashboard is ~somewhat~ misleading, as it reports cached memory as free memory. Check actual memory usage via top.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11578">Neelim Sahariah</a>.</p>
<p>Hello, Neelim&#8230; thank you for your compliments! I have created these tutorials as a way to remember (for myself) how to set up my servers. I am glad to hear when others have followed these steps as well. I am not a sysadmin&#8230; just a web designer who enjoys the responsibility of configuring and running my own servers.</p>
<p>Following are some suggestions; you can find steps for most of these on this site. Some of my tutorials are getting quite old, so &#8220;your mileage may vary&#8221;.</p>
<p><strong>Firewall with ConfigServer,</strong> pay attention to configuration, and understand what each setting will do.</p>
<p><strong>In W3 Total Cache settings, choose APC for page, minify and object cache.</strong> Turn off database cache, as it will not be much needed if MySQL is setup correctly (W3 db cache is OK for shared hosting accounts if you can&#8217;t configure MySQL); if db is on a separate server, consider using memcache&#8230; if you have a single server, this is not applicable.</p>
<p><strong>W3 minify: choose Manual, not automatic;</strong> this requires some knowledge of your WordPress theme&#8217;s css and javascript, and choosing appropriate loading method and order for each file. I think the automatic minify is a bad idea if you use a CDN, because all of the css and all of the js files are combined into 2 large local files. If you cannot get minified files to work properly, then just turn off minify and use CDN.</p>
<p><strong>Use a CDN;</strong> W3 does an excellent job of sending static files to CDN. This will take a huge load off your web server. If you don&#8217;t have  an off-server CDN, find a plugin e.g. Use Google Libraries to offload common .js files.</p>
<p><strong>Be sure to optimize MySQL with tips from MySQL Tuning Primer;</strong> run server under expected load for at least 24hrs between changes to my.conf.</p>
<p><strong>Allocate more apc.shm_size per Virtual Server in php.ini APC configuration,</strong> and make sure PHP memory_limit is sufficient to handle shm_size&#8230; perhaps 2x or 3x apc.shm_size.</p>
<p><strong>Test, tweak, test, tweak&#8230; use webpagetest.org;</strong> use Chrome or Safari Web Inspector and make sure your web server is actually caching by examining the request and response headers.</p>
<p>Also consider using Varnish in front of Apache&#8230; I&#8217;m not doing this at the moment, but plan to set it up on my system again, soon.</p>
<p>And realize the memory usage reported by Virtualmin&#8217;s dashboard is ~somewhat~ misleading, as it reports cached memory as free memory. Check actual memory usage via top.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Neelim Sahariah		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-11578</link>

		<dc:creator><![CDATA[Neelim Sahariah]]></dc:creator>
		<pubDate>Sun, 26 Jan 2014 14:43:05 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-11578</guid>

					<description><![CDATA[Hello Chris

I have gone through all almost of your tutorials and they are great. I am running a SSD Cloud server with two VCores and 4GB RAM. I have installed cent OS 6 with virtualim on it. I will use this for hosting WordPress and custom PHP Sites, the sites will have aveage load. I will be also hosting x2CRM on that server. I have tried to install APC and tried to optimize Apache-PHP-MySQL but couldn&#039;t find any complete guide for it. One thing I have noticed that RAM remains unused and cpu gets high load. can you provide some suggestions please.

Thanks]]></description>
			<content:encoded><![CDATA[<p>Hello Chris</p>
<p>I have gone through all almost of your tutorials and they are great. I am running a SSD Cloud server with two VCores and 4GB RAM. I have installed cent OS 6 with virtualim on it. I will use this for hosting WordPress and custom PHP Sites, the sites will have aveage load. I will be also hosting x2CRM on that server. I have tried to install APC and tried to optimize Apache-PHP-MySQL but couldn&#8217;t find any complete guide for it. One thing I have noticed that RAM remains unused and cpu gets high load. can you provide some suggestions please.</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris Gilligan		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-5323</link>

		<dc:creator><![CDATA[Chris Gilligan]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 21:53:13 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-5323</guid>

					<description><![CDATA[For MySQL tuning, the latest versions of phpMyAdmin now include very detailed performance hints (Status &gt; Advisor) which are useful in addition to MySQLtuner. ]]></description>
			<content:encoded><![CDATA[<p>For MySQL tuning, the latest versions of phpMyAdmin now include very detailed performance hints (Status > Advisor) which are useful in addition to MySQLtuner. </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris Gilligan		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-5322</link>

		<dc:creator><![CDATA[Chris Gilligan]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 21:51:40 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-5322</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-4772&quot;&gt;Ovidiu&lt;/a&gt;.

Quite true. With fcgid you will need to also account for the RAM you dedicate to each account, and also APC cache allocation... but this is easy to figure out if you have a default setting for many accounts, or a limited number of individually allocated accounts.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-4772">Ovidiu</a>.</p>
<p>Quite true. With fcgid you will need to also account for the RAM you dedicate to each account, and also APC cache allocation&#8230; but this is easy to figure out if you have a default setting for many accounts, or a limited number of individually allocated accounts.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ovidiu		</title>
		<link>https://chrisgilligan.com/consulting/tuning-apache-and-mysql-for-best-performance-in-a-shared-virtual-hosting-environment/#comment-4772</link>

		<dc:creator><![CDATA[Ovidiu]]></dc:creator>
		<pubDate>Wed, 04 Apr 2012 08:07:43 +0000</pubDate>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=508#comment-4772</guid>

					<description><![CDATA[regarding the link you gave for: Tune Apache the Sane Way 

That method is sound but it doesn&#039;t take into consideration whether PHP is used and with which handler...

I.e. I am using mod_fcgid so if I calculate my max apache processes via that method, I&#039;ll run out of RAM very soon since my php-cgi processes are way bigger and more than my apache2 processes....]]></description>
			<content:encoded><![CDATA[<p>regarding the link you gave for: Tune Apache the Sane Way </p>
<p>That method is sound but it doesn&#8217;t take into consideration whether PHP is used and with which handler&#8230;</p>
<p>I.e. I am using mod_fcgid so if I calculate my max apache processes via that method, I&#8217;ll run out of RAM very soon since my php-cgi processes are way bigger and more than my apache2 processes&#8230;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: d2lehxir4n36oh.cloudfront.net
Lazy Loading (feed)

Served from: chrisgilligan.com @ 2026-08-24 20:03:28 by W3 Total Cache
-->