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 ''
### wget ''
### wget ''
### wget ''
### wget ''
wget ''
mv index*

# 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=$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


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


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.