![]() |
Guide: How to setup CentOS with Kloxo Control Panel
Not everyone knows how to setup their own VPS or Dedicated Server. And it's a lot cheaper to order one without a control panel. So for those who want to do so & need a control panel.... Here is the "how to do it".
IMPORTANT: This must be done "IN ORDER". Do not skip around. Also, this works for me and that does not mean that it will work for you... Only that it can work for you. I used nano to edit files. So to edit using nano you would type: Nano / PATH / File NAME (nano, space, path to file, and then name of file) Use your arrow keys or page up & page down keys to move within the document (file). Ctrl O = Save Ctrl X = Exit. Install / Setup a fresh copy of CentOS (either VPS or Dedicated Server) and then... [ALIGN=center]STEP 1[/ALIGN] Code:
yum clean all You have to disable SELinux by editing /etc/sysconfig/selinux and changing the line to selinux=disabled. This will keep SELinux from being enabled on your server next boot. Run this command in SSH. Code:
su - root If you are unsure this procedure worked, you can run /usr/sbin/sestatus to check its status. Failure to correctly disable SELinux will render your Kloxo install useless and an OS reload may be required to properly reinstall it. Also, make sure the ports 7778/tcp and 7777/tcp are open in your server firewall or you won't be able to connect to Kloxo web panel when the install completes. On most web host, these ports are open by default. Type the following commands with SSH Code:
su - root *Fix before Kloxo 6.1.4 version release: Type the following commands with SSH Code:
cd / Code:
if (($_SESSION['horde_form_secrets'][$token] + $GLOBALS['conf']['urls']['token_lifetime'] * 60) < time()) { Code:
if ((($_SESSION['horde_form_secrets'][$token] + $GLOBALS['conf']['urls']['token_lifetime']) * 60) < time()) { Log-in change default password & user name (As soon as possible) Change SSH Port (As soon as possible) Change httpd to lighttpd Change bind to djbdns (tiny dns) DO NOT YET SETUP DNS DO NOT YET SETUP Domains Do not yet setup accounts Change no other setting except for above. [ALIGN=center]STEP 3[/ALIGN] Code:
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm Code:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm Code:
yum --enablerepo=webtatic update * Code:
yum --enablerepo=webtatic upgrade * Log into Kloxo Apply changes as needed & make domains as needed. [ALIGN=center]STEP 6 -Help prevent SYN flooding DOS attack[/ALIGN] Edit /etc/sysctl.conf and add: Code:
#securing tcp connections This wil create new chains Code:
iptables -N syn-flood Code:
iptables -A syn-flood -m limit --limit 10/second --limit-burst 50 -j RETURN Code:
iptables -A syn-flood -j LOG --log-prefix "SYN flood: " Code:
iptables -A syn-flood -j DROP Code:
service iptables restart [ALIGN=center]STEP 7[/ALIGN] Install memcached Code:
yum install php-pecl-memcache memcached Code:
PORT="11211" Code:
chkconfig memcached on You could try to increase mysql performance by enabling query cache feature. Edit your /etc/my.cnf and add the following under [mysqld] Code:
query-cache-size=50M (or whatever you think is enough) Code:
mysql> show status like '%qcache%'; Finally, you need to remove Qmail and IMAP. They seem not to work so well with this setup and vBulletin alone does not need it. But if you do... You can use a few alternatives. Code:
yum remove qmail courier-imap Code:
chkconfig courier-imap --level 0123456 off Code:
yum clean all DONE. You should now have the latest versions (MySQL, PHP) and all working under Kloxo. Upload and install / restore your copy of vBulletin. I recommend MySQL Dumber for backups and restores. http://www.mysqldumper.net Also if you want to learn more about server management, you may want to attempt a go with Webmin. --------------- Added [DATE]1298868625[/DATE] at [TIME]1298868625[/TIME] --------------- Someone sent me a message: Question: How would you go about installing ImageMagick? Answer: GD is already installed by default. So ImageMagick isn't truly 100% needed. But if you truly want it, please do the following. Installing ImageMagick (optional ) In SSH run the following commands: Code:
yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel Code:
yum install make Code:
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.7-10.tar.gz Code:
tar xvfz ImageMagick-6.6.7-10.tar.gz Code:
cd ImageMagick-6.6.7-10/ Code:
./configure && make && make install Code:
nano /etc/clamd.conf Code:
# Don't fork into background. Code:
# Don't fork into background. Exit ( Ctrl X ) To add ImageMagick PHP extension, run the following command: Code:
pecl install imagick Code:
extension=imagick.so If these solutions do not resolve your memory issues it is likely that your application is using all resources and you may want to consider upgrading your VPS package. |
All times are GMT. The time now is 03:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|