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

Linux Centos Symlinyk

ln -s /home/mooo/pcw.mooo.com /home/mooo/public_html

Rabu, 24 Juli 2013

Kloxo

setenforce 0 
echo 'SELINUX=disabled' > /etc/selinux/config 
cd /tmp 
wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh 
sh ./kloxo-installer.sh --type=master

FIX APACHE
sh /script/fixweb 
then restart apach
service named restart
service httpd restart

FIX FTP
yum –y downgrade pure-ftpd 
/script/upcp 
/script/cleanup 
yum -y update 
then reboot pc
reboot

Webmin

yum install perl-URI
wget http://software.virtualmin.com/gpl/scripts/install.sh
sh ./install.sh

Foto Propades