Speed up your apache server running PHP
|Since I am facing performance problem due to the load of visitors and a badly configured server, I decide today to document my findings in this new series of articles.As soon as PHP run as FastCGI and no more inside an Apache module (mod_php4.so is not multi threaded), You should be able to switch the default MPM setting of Apache from MPM prefork to MPM worker.|
So, what’s the difference between prefork and worker?
Quoting from the Apache MPM Prefork page: http://httpd.apache.org/docs/2.0/mod/prefork.html
And for the Apache MPM Worker says: http://httpd.apache.org/docs/2.0/mod/worker.html
Server: Strato (www.strato.de)
|1||Edit the file |
# vi /etc/sysconfig/apache2
and change the key:
|2||You can now tune also default parameters in file /etc/apache2/server-tuning.conf|
Here are my settings, these are still the default setting of Apache
this recreate the file /etc/apache2/sysconfig.d/loadmodule.conf
and restart apache automatically. Test Your site to ensure everything still work as expected.