Kamis, 25 Juli 2013

Optimize Apache and Mysql

source belong to http://tanmoy.me/vps/mysql-apache-optimization-on-kloxo/Set Timeout value from 120 to 40.
Timeout 40
Save pressing Crtl + X, then Y and vice versa.
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
Okay, save now.
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

Turn Keepalive off.
KeepAlive  off

Tidak ada komentar:

Posting Komentar

Foto Propades