Tuning LAMP: make Apache and PHP with MySQL faster
Tuning your Apache webserver to deliver the pages faster is not a matter if you are facing speed problems or not. Delivering pages faster is always a good idea! It has effects on the conversions on your site, it has effects on the user experience and it gives you a better understanding of your site.
So, lets work on these basics:
- Red Hat Linux OS
- Apache 2.0.4x or higher
- PHP 4.3.x or higher
- Mysql 4.x
The following packages will be needed:
1. The free php_accelerator from ionCube
2. The already installed caching module for the Apache (see here)
Now to the basic tuning steps:
- install the PHP_accelerator from the URL above, make sure it fits your version of PHP
- activate the mem_cache module as described on the Apache documentation page
- for mysql: the use of indexes on columns you use to compare and search for is crucial: add some!
That should bring you about 30% more power (roughly). There are many more cool ideas, depending on what you do with your webserver:
Some ideas I have taken from php everywhere, kudos for the nice hints!
You may want to read more there!


