مراحل نصب و بهينه سازي كنترل پنل Kloxo بر روي سيستم عامل CentOS

از راهنمای WIKI پرشین هلپ
پرش به: ناوبری, جستجو

A)Kloxo Setup

Become a root user and disable selinux.Here in all ssh code in front of code i put # sign,when you copy paste that code dont copy # sign.

  1. su - root
  2. setenforce 0

Now Installing Kloxo

  1. yum install -y wget
  2. wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh

To install in master:

  1. sh ./kloxo-installer.sh --type=master (I use this)

To install as Slave:

  1. sh ./kloxo-installer.sh --type=slave (if you want to install in slave you use this,I don’t use this command)

Once kloxo is installed, you can connect to http://YOUR_SERVER_IP:7778 and you will be presented with a login screen.

Note:In some cases When Kloxo is running and you can not connect to the web interface then type:

  1. /etc/init.d/iptables stop
  2. iptables -A INPUT -p tcp --dport 7778 -j ACCEPT
  3. chkconfig --list
  4. /etc/init.d/kloxo restart

if its not worked then update yum by using this

  1. yum update
  2. /etc/init.d/kloxo restart

for setup default domain

  1. echo 192.168.210.1 raihan0888.com >> /etc/hosts

in example its looks like:echo yourip domain >> /etc/hosts

    • B)for reduce server load,optimize vps, innodb, optimize kloxo **

1) In Kloxo, Main Panel under Advanced > General Settings, there is an option called "Web Statistics Program." You can disable awstats there.(for statistic you may use wordpress statpress I think its less memory consumer then awstat,I use now in my blog)

2) Under Server > Switch Program, there is an option to switch to Lighttpd from apache.if you install from centos hostinabox image this settings default set as a lighttpd,if you setup kloxo manually then need to change this.Switching to Lighttpd from Apache also helps lower memory usage by a bit.In apache for simple wordpress blog with 5-6 plugin(soe search term,all in one seo,statpress,similar post,autoblogged) with 10-20 user connected it took 300-400mb ram!!!I so tensed that I really need to buy 20usd 512ram vps?Then I search and and ask in reputated forum.How i solve my problem I write here.

3) Mysql settings change: To see this file :

  1. cat /etc/my.cnf

Copy this file by typing

  1. cp cat/etc/my.cnf cat/etc/my.cnf.backup

To Edit from SSH we need to install nano(simple text file editor ): To install nano :

  1. yum install nano

For edit using nano :

  1. nano /etc/my.cnf

At below [mysqld] add this by typing :

  1. skip-bdb
  2. skip-innodb

here need to mention that in my.cnf different types of edit you may done.but in hostinabox template box all set by default for low memory vps.you googling that “kloxo mysql optimization” or “kloxo my.cnf edit” or “reduce kloxo load” lots of tweak you found. After Edit : just press

  1. ctrl+X , and press #y for save.

Now restart our mysql :

  1. service mysqld restart.

C)Permalink work in wordpress: Another problem I face in wordpress is that lightppd by default not supported custom permalink and unable to access by directory. That’s why I tweak lighttpd.conf So we search by typing:

whereis lighttpd.conf

Then in terminal show the location of lighttpd file.Then we creat backup of that file: for copy:

cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.backup

for edit :

nano /etc/lighttpd/lighttpd.conf

for add in text type:

server.error-handler-404 = "/index.php"

After Edit : just press ctrl+X , and press y for save.

E)Directory listing / File show in lighttpd:

For directory listing we need to again edit lighttpd.conf file:

  1. nano /etc/lighttpd/lighttpd.conf

add this line:

  1. server.dir-listing = "disable"

After Edit : just press ctrl+X , and press y for save. Then restart by typing : /etc/init.d/lighttpd restart major problem is that its show all file in directory.and don’t accept any .htaccess rules.it show also plugins,wp-content folder.You bypass it by creating blank index.php file.i am not satisfied with this solution.

جعبه‌ابزار