How To Install Nginx On Kloxo

# update system
yum update

# update kloxo - repeat until version 6.1.10 when running 'sh /script/version'
sh /script/upcp

# download the code
mkdir /tmp/kloxo-test
cd /tmp/kloxo-test
rm -rf index*
### wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1587'
### wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1588'
### wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1591'
### wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1592'
### wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1593'
wget 'http://forum.lxcenter.org/index.php?t=getfile&id=1596'
mv index* kloxo.zip
unzip kloxo.zip

# backup original kloxo
yes | cp -rf /usr/local/lxlabs/kloxo /usr/local/lxlabs/kloxo.bck

# overrite the code
yes | cp -rf ./kloxo /usr/local/lxlabs

# fix the code
sh /script/cleanup

# create custom repo (based-on centalt) because nginx and rpaf taken from here
echo '[centalt]' > /etc/yum.repos.d/kloxo-centalt.repo
echo 'name=centalt - $basearch' >> /etc/yum.repos.d/kloxo-centalt.repo
echo 'baseurl=http://centos.alt.ru/repository/centos/5/$basearch/' >> /etc/yum.repos.d/kloxo-centalt.repo
echo 'enabled=1' >> /etc/yum.repos.d/kloxo-centalt.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/kloxo-centalt.repo
echo 'includepkgs=nginx mod_rpaf' >> /etc/yum.repos.d/kloxo-centalt.repo

sh /script/fix-chownchmod

reboot

Unfinish job:

1. Swith program not automaticly fix config. Need run 'sh /script/fixweb' when switch (say it) apache to nginx-proxyfixed

2. select fastcgi for lighttpd/nginx and suphp for apache not work. Need more times for fixed this issues - fixed

3. Add domain will be appear options for fastcgi. This is wrong. Need more times for fixed this issues

4. fixed wildcards subdomains on lighttpd

Advices:

1. don't use on production server
2. select 'mod_php_ruid2' for apache when testing nginx/lighttpd-proxy
3. select 'optimize' on 'webserver config' when select apache and nginx/lighttpd-proxy. Different setting for 'pure' apache and proxy.


  • 20 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Setting up a Linux Streaming Server

Linux, streaming server Linux, allows you to stream video, audio or other media on your website....

How to Install LiteSpeed on a WHM/cPanel Server

Here’s how you install LiteSpeed on a WHM/cPanel Server – it should take about 25minutes from...

Change the default SSH port

The Secure Shell (SSH) Protocol by default uses port 22. Accepting this value does not make your...

Using VI Text Editor

Text editors are programs used to create or edit files. One of the most popular editors on...

Reset a MySQL root password

So you've managed to misplace your root login for a MySQL database? Not to worry, the following...