source belong to http://tanmoy.me/vps/mysql-apache-optimization-on-kloxo/Set Timeout value from 120 to 40.
Apache Optimize
vi /etc/httpd/conf/httpd.conf
Timeout 40
Save pressing Crtl + X, then Y and vice versa.
MySQL Optimization:
Too simple, type
MySQL Optimization:
Too simple, type
nano /etc/my.cnf
And add two lines bellow [mysqld], and it’ll look like bellow.
[mysqld]
skip-innodb
skip-bdb
skip-innodb
skip-bdb
Okay, save now.
Final Step:
Now you have to restart Apache and MySQL.
For Apache:
Final Step:
Now you have to restart Apache and MySQL.
For Apache:
/etc/init.d/httpd restart
For MySQL:
/etc/init.d/mysqld restart
Now Check Memory 
free -m
Apache Optimize
vi /etc/httpd/conf/httpd.conf
Find out the lines like bellow and replace the values.
StartServers 3
MinSpareServers 3
MaxSpareServers 10
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 2000
MinSpareServers 3
MaxSpareServers 10
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 2000
Turn Keepalive off.
KeepAlive off