Performance tuning Apache web server on Linux – Offering Excellent Result in Less Efforts!
Apache HTTP Server Project is an excellent effort of the web developer. In this regard, they will maintain an open foundation HTTP server for advanced OS systems that merge with the Windows NT and UNIX. The main motto of the project is to offering secure, efficient and extensible server that provide the HTTP services like the HTTP standards. Due to these reasons, Apache httpd has managed to draw more attention from the web master since April 1996. It is also offering faster and reliable performance that any other web server designs. Due to these reasons, now Apache web server of Linux is vastly used than any other server.
I am making use of tux as static web server, also have set that to pass all the .php files to Apache that resides on same machine. Make use of hdparm to tune the hard disk. In case, you are making use of default Linux install, this can speed up the hard disk by around 200%. This is useful for the IDE hard disks, however few hdparm settings work with the SCSI also. Modify following httpd.conf parameters:
# disable DNS lookups: The PHP scripts just get IP address
Hostname Lookups off
# disable htaccess checks
<Directory />
AllowOverride none
</Directory>
Turn on FollowSymLinks & turn off SymLinksIfOwnerMatch (the correction by Slive) to prevent any additional lstat() system that calls to be made:
Options FollowSymLinks
Avoid the dithered images when they generally tend to compress very poorly. Spread workload and run the SQL server on other machine. The serve graphics & HTML from other low end PC. In case, all the static content is been served from other server, you can then turn off KeepAlives at httpd.conf on PHP server for speeding up disconnects. Do not make use of the images while text can do. Reduce the image sizes with software such as Adobe ImageReady and MacroMedia Fireworks.







