{"id":1213,"date":"2012-04-10T04:05:04","date_gmt":"2012-04-10T11:05:04","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=1213"},"modified":"2012-04-10T04:05:04","modified_gmt":"2012-04-10T11:05:04","slug":"speeding-up-heavy-php-sites-like-drupaljoomla","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=1213","title":{"rendered":"Speeding up Heavy PHP Sites like Drupal\/Joomla"},"content":{"rendered":"<p>Here&#8217;s a few tips and suggestions to lower the ave. memory usage and increase the efficiency of heavy PHP sites delivered via Apache on Linux VPS platforms.<\/p>\n<p>The aim here is to &#8220;appropriately scale&#8221; both the size of the Apache web server and the way that it responds to connections, so as to provide good performance in smaller RAM VPS environments.<\/p>\n<p>So in CentOS, edit \/etc\/httpd\/conf\/httpd.conf and set or change the following settings:<\/p>\n<p><code><IfModule prefork.c><br \/>\nStartServers       3<br \/>\nMinSpareServers    2<br \/>\nMaxSpareServers   3<br \/>\nMaxClients      15<br \/>\nMaxRequestsPerChild 5000<br \/>\n<\/IfModule><\/code><\/p>\n<p>and<\/p>\n<p><code>KeepAlive On<br \/>\nMaxKeepAliveRequests 100<br \/>\nKeepAliveTimeout 2<\/code><\/p>\n<p>The same settings can be applied to the relevant config files for other Linux distributions and there&#8217;s some mySQL tuning that I&#8217;ll suggest shortly too.<\/p>\n<p>Regards,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a few tips and suggestions to lower the ave. memory usage and increase the efficiency of heavy PHP sites delivered via Apache on Linux VPS platforms. The aim here is to &#8220;appropriately scale&#8221; both the size of the Apache &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=1213\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[94,18,78,9],"class_list":["post-1213","post","type-post","status-publish","format-standard","hentry","category-network-presence","tag-apache","tag-linux","tag-sysadmin","tag-vps"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1213"}],"version-history":[{"count":5,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1213\/revisions"}],"predecessor-version":[{"id":1218,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1213\/revisions\/1218"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1213"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}