|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96550 is a reply to message #96543] |
Wed, 14 March 2012 04:58   |
|
I know that does not support centos kloxo 6 but could be close, as close as the fork?
statistics say that over 90% using kloxo used centos 5, for a very obvious reason, does not support centos 6
but every day thousands of sites are created that do not want to upgrade from centos 5 to 6, and seeking an alternative to centos 6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96706 is a reply to message #96467] |
Fri, 16 March 2012 17:16   |
|
i tried the steps today...
facing same errors as @DaveMurray
How to resolve this?
DaveMurray wrote on Tue, 13 March 2012 02:18unfortunately with fresh install of centos 5.8 in a vm, it seems the installations instructions not working at all...
I think, your script needs some fixings... (im guessing only)
[root@zeus setup]# sh kloxo-packer.sh --fork=mustafaramadhan --branch=dev
Start pack...
Download kloxo git from mustafaramadhan/kloxo/zipball/dev
--2012-03-13 08:22:40-- https://github.com/mustafaramadhan/kloxo/zipball/dev
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://nodeload.github.com/mustafaramadhan/kloxo/zipball/dev [following]
--2012-03-13 08:22:41-- https://nodeload.github.com/mustafaramadhan/kloxo/zipball/dev
Resolving nodeload.github.com... 207.97.227.252
Connecting to nodeload.github.com|207.97.227.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21634164 (21M) [application/octet-stream]
Saving to: `dev'
100%[=====================================================================================================================================================================>] 21,634,164 964K/s in 22s
2012-03-13 08:23:07 (973 KB/s) - `dev' saved [21634164/21634164]
kloxo-packer.sh: line 62: unzip: command not found
mv: cannot stat `./mustafaramadhan*': No such file or directory
cp: cannot stat `./current/*': No such file or directory
cp: cannot stat `./patch/*': No such file or directory
Download kloxo-install.zip from http://download.lxcenter.org/download/
--2012-03-13 08:23:07-- http://download.lxcenter.org/download/kloxo-install.zip
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49400 (48K) [application/zip]
Saving to: `kloxo-install.zip'
100%[=====================================================================================================================================================================>] 49,400 70.4K/s in 0.7s
2012-03-13 08:23:08 (70.4 KB/s) - `kloxo-install.zip' saved [49400/49400]
kloxo-packer.sh: line 79: unzip: command not found
Download kloxo-installer.php from http://download.lxcenter.org/download/kloxo/production/
--2012-03-13 08:23:08-- http://download.lxcenter.org/download/kloxo/production/kloxo-installer.php
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-13 08:23:09 ERROR 404: Not Found.
mv: cannot stat `kloxo-installer.php': No such file or directory
zip warning: name not matched: ./kloxo-install
zip error: Nothing to do! (try: zip -r9y kloxo-install.zip . -i ./kloxo-install)
mv: cannot stat `kloxo-install.zip': No such file or directory
kloxo-packer.sh: line 98: cd: ./kloxo/src: No such file or directory
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.ntua.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
Reducing kloxo-centalt - i386 to included packages only
Finished
Reducing kloxo-rpmforge - i386 to included packages only
Finished
Setting up Install Process
Package gcc-4.1.2-52.el5.i386 already installed and latest version
Package automake-1.9.6-2.3.el5.noarch already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package libtool-1.5.22-7.el5_4.i386 already installed and latest version
Package 1:make-3.81-3.el5.i386 already installed and latest version
Nothing to do
make: *** No targets specified and no makefile found. Stop.
zip warning: name not matched: ./bin
zip warning: name not matched: ./cexe
zip warning: name not matched: ./file
zip warning: name not matched: ./httpdocs
zip warning: name not matched: ./pscript
zip warning: name not matched: ./sbin
zip warning: name not matched: ./RELEASEINFO
zip warning: name not matched: ./src
zip error: Nothing to do! (kloxo-current.zip)
mv: cannot stat `kloxo-current.zip': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5 0 5 0 0 10 0 --:--:-- --:--:-- --:--:-- 0
--2012-03-13 08:23:13-- http://download.lxcenter.org/download/kloxo-thirdparty.2019.zip
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12849941 (12M) [application/zip]
Saving to: `kloxo-thirdparty.2019.zip'
100%[=====================================================================================================================================================================>] 12,849,941 1.10M/s in 12s
2012-03-13 08:23:26 (1012 KB/s) - `kloxo-thirdparty.2019.zip' saved [12849941/12849941]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5 0 5 0 0 11 0 --:--:-- --:--:-- --:--:-- 0
--2012-03-13 08:23:27-- http://download.lxcenter.org/download/kloxophp4382.tar.gz
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6843455 (6.5M) [application/x-gzip]
Saving to: `kloxophp4382.tar.gz'
100%[=====================================================================================================================================================================>] 6,843,455 1.13M/s in 7.0s
2012-03-13 08:23:34 (960 KB/s) - `kloxophp4382.tar.gz' saved [6843455/6843455]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5 0 5 0 0 11 0 --:--:-- --:--:-- --:--:-- 0
--2012-03-13 08:23:35-- http://download.lxcenter.org/download/kloxophpsixfour4392.tar.gz
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6775666 (6.5M) [application/x-gzip]
Saving to: `kloxophpsixfour4392.tar.gz'
100%[=====================================================================================================================================================================>] 6,775,666 1.13M/s in 6.9s
2012-03-13 08:23:42 (953 KB/s) - `kloxophpsixfour4392.tar.gz' saved [6775666/6775666]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5 0 5 0 0 11 0 --:--:-- --:--:-- --:--:-- 0
--2012-03-13 08:23:43-- http://download.lxcenter.org/download/lxwebmail4374.tar.gz
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32796622 (31M) [application/x-gzip]
Saving to: `lxwebmail4374.tar.gz'
100%[=====================================================================================================================================================================>] 32,796,622 1.13M/s in 32s
2012-03-13 08:24:15 (1006 KB/s) - `lxwebmail4374.tar.gz' saved [32796622/32796622]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 5 0 5 0 0 11 0 --:--:-- --:--:-- --:--:-- 0
--2012-03-13 08:24:16-- http://download.lxcenter.org/download/lxawstats4401.tar.gz
Resolving download.lxcenter.org... 66.197.145.24
Connecting to download.lxcenter.org|66.197.145.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1246184 (1.2M) [application/x-gzip]
Saving to: `lxawstats4401.tar.gz'
100%[=====================================================================================================================================================================>] 1,246,184 590K/s in 2.1s
2012-03-13 08:24:18 (590 KB/s) - `lxawstats4401.tar.gz' saved [1246184/1246184]
cp: cannot stat `./combo/kloxo-install/kloxo-installer.sh': No such file or directory
Do you delete temporal dirs (patch, current and combo)? [Y/n]: Y
Now you can run 'sh ./kloxo-installer.sh' for installing
... the end
zip rpm, is installed...
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96783 is a reply to message #95665] |
Sun, 18 March 2012 20:14   |
|
mustafaramadhan wrote on Fri, 02 March 2012 00:12Related to http://forum.lxcenter.org/index.php?t=msg&th=18021
Install to production system is your own risk.
Already on github as fork by me.
How to install this version:
1. Make Kloxo pack
# create custom repo
echo '[kloxo-centalt]' > /etc/yum.repos.d/kloxo-custom.repo
echo 'name=kloxo-centalt - $basearch' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'baseurl=http://centos.alt.ru/repository/centos/5/$basearch/' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'enabled=1' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'includepkgs=nginx mod_rpaf' >> /etc/yum.repos.d/kloxo-custom.repo
echo ' ' >> /etc/yum.repos.d/kloxo-custom.repo
echo '[kloxo-rpmforge]' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'name=kloxo-rpmforge - $basearch' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'baseurl=http://apt.sw.be/redhat/el5/en/$basearch/rpmforge' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'enabled=1' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'includepkgs=mod_fastcgi' >> /etc/yum.repos.d/kloxo-custom.repo
# delete if exist
rm -rf /tmp/kloxo
# create kloxo temp dir
mkdir /tmp/kloxo ; cd /tmp/kloxo
# get kloxo packer from github
wget https://github.com/mustafaramadhan/kloxo/raw/dev/kloxo-install/kloxo-packer.sh --no-check-certificate
2.a For fresh install (Kloxo no exist)
# get kloxo fork from github
sh kloxo-packer.sh --fork=mustafaramadhan --branch=dev
# install kloxo
sh kloxo-installer.sh --type=master
# better reboot
reboot
2.b. Or, For patch to current install (Kloxo already installed) - copy-paste line-by-line to ssh console
# not testing for older then version 6.1.11 and then run update
sh /script/upcp
# copy old kloxo for backup purpose
yes|cp -rf /usr/local/lxlabs /usr/local/lxlabs.bck
yes|cp -rf /var/lib/mysql/kloxo /var/lib/mysql/kloxo.bck
# get kloxo fork from github (just kloxo core)
sh kloxo-packer.sh --fork=mustafaramadhan --branch=dev --part=core
# create dir
mkdir ./patch ; mkdir ./patch/kloxo
# process for kloxo core
mv kloxo-current.zip ./patch/kloxo
cd ./patch/kloxo
unzip -oq kloxo-current.zip
rm -rf kloxo-current.zip
cd ..
# process for kloxo install
mv ../kloxo-install.zip ./
unzip -oq kloxo-install.zip
rm -rf kloxo-install.zip
cd ..
# copy kloxo patcher script
yes|cp -rf ./patch/kloxo-install/kloxo-patcher.sh ./
# create patch version that match with current version
# run 'sh /script/version' for to know the current version
# if your version is 6.2.0 and then want patch, 6.1.12 to 6.2.0
echo '6.1.12' > ./patch/kloxo-patch-version
# run patcher -- type is master or slave
sh kloxo-patcher.sh --type=master
# better reboot
reboot
Features:
1. Template-based config
2. Only with 2 directories (defaults and domains) instead 5 directories on old version
3. Nginx with php-fpm
4. Lighttpd with php-fpm
5. Lighttpd-proxy
6. Nginx-proxy
7. New php-type (php-fpm_worker and php-fpm_event) for Apache
8. Prepare for Apache 2.4.1
9. Add 'no fix config' on 'switch program' -- importance > 500 domains hosting
10. Minimize DDOS attack for nginx/nginx-proxy
Fixed old issues and enchanced:
1. Use php-cgi_pure (without php-fpm patch to php) for suphp transparently - [TIP] Temporary solution for Kloxo after update php to 5.1.17-13
2. Enhanced DJBdns - [FIX] DJBDNS not work
3. No need reboot when selinux not installed or status as 'on'
4. Reinstall without destroy kloxo setting
5. Fixed for awstats and webalizer config
6. Fixed for 'switch program' which no automaticly running fixweb/fixmail/fixdns
7. Fixed for 'php-type' which sometimes show 'httpd_failed_start'
8. Remove 'safecat' from package install
9. Kloxo packer change target from svn to git.
10. Fixed permalink for Lighttpd
11. Fixed awstats for httpd-itk
12. Use domain as default class on fixtraffic
13. All files inside /cgi-bin automaticly set to 755 with fix-chownchmod
14. Fixed pointing to subdirectory for redirect domain
15. Fixed blank page for 'remote mail' and 'webmail applications'
16. Implementing logrotate
17. Fixed permalink issue for wordpress multisite
18. Fixed suphp for ip/~client access
Unfinished works:
1. stats issue - fixed awstats except for 'pure' nginx
2. wildcards still not work for lighttpd (want as the same as apache and nginx)
3. Some hiddens maybe implementing (like enable cache for apache; suphp for lighttpd)
4. perl still not work for nginx (awstats use perl)
5. Fixed fix-chownchmod and fix-userlogo for slave
6. Redefine fastcgi_children of lighttpd to switch for php-fpm
7. Using php-fpm for apache not work if .htaccess exist - mod_fastcgi problem
Changed:
1. Change version identity from 6.1.11 to 6.2.0 to prevent update from next release of 6.1.x
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96784 is a reply to message #95665] |
Sun, 18 March 2012 20:18   |
|
mustafaramadhan wrote on Fri, 02 March 2012 00:12Related to http://forum.lxcenter.org/index.php?t=msg&th=18021
Install to production system is your own risk.
Already on github as fork by me.
How to install this version:
1. Make Kloxo pack
# create custom repo
echo '[kloxo-centalt]' > /etc/yum.repos.d/kloxo-custom.repo
echo 'name=kloxo-centalt - $basearch' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'baseurl=http://centos.alt.ru/repository/centos/5/$basearch/' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'enabled=1' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'includepkgs=nginx mod_rpaf' >> /etc/yum.repos.d/kloxo-custom.repo
echo ' ' >> /etc/yum.repos.d/kloxo-custom.repo
echo '[kloxo-rpmforge]' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'name=kloxo-rpmforge - $basearch' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'baseurl=http://apt.sw.be/redhat/el5/en/$basearch/rpmforge' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'enabled=1' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/kloxo-custom.repo
echo 'includepkgs=mod_fastcgi' >> /etc/yum.repos.d/kloxo-custom.repo
# delete if exist
rm -rf /tmp/kloxo
# create kloxo temp dir
mkdir -p /tmp/kloxo ; cd /tmp/kloxo
# get kloxo packer from github
wget https://github.com/mustafaramadhan/kloxo/raw/dev/kloxo-install/kloxo-packer.sh --no-check-certificate
2.a For fresh install (Kloxo no exist)
# get kloxo fork from github
sh kloxo-packer.sh --fork=mustafaramadhan --branch=dev
# install kloxo
sh kloxo-installer.sh --type=master
# better reboot
reboot
2.b. Or, For patch to current install (Kloxo already installed) - copy-paste line-by-line to ssh console
# not testing for older then version 6.1.11 and then run update
sh /script/upcp
# copy old kloxo for backup purpose
yes|cp -rf /usr/local/lxlabs /usr/local/lxlabs.bck
yes|cp -rf /var/lib/mysql/kloxo /var/lib/mysql/kloxo.bck
# get kloxo fork from github (just kloxo core)
sh kloxo-packer.sh --fork=mustafaramadhan --branch=dev --part=core
# create dir
mkdir -p ./patch/kloxo
# process for kloxo core
mv kloxo-current.zip ./patch/kloxo
cd ./patch/kloxo
unzip -oq kloxo-current.zip
rm -rf kloxo-current.zip
cd ..
# process for kloxo install
mv ../kloxo-install.zip ./
unzip -oq kloxo-install.zip
rm -rf kloxo-install.zip
cd ..
# copy kloxo patcher script
yes|cp -rf ./patch/kloxo-install/kloxo-patcher.sh ./
# create patch version that match with current version
# run 'sh /script/version' for to know the current version
# if your version is 6.2.0 and then want patch, 6.1.12 to 6.2.0
echo '6.1.12' > ./patch/kloxo-patch-version
# run patcher -- type is master or slave
sh kloxo-patcher.sh --type=master
# better reboot
reboot
Features:
1. Template-based config
2. Only with 2 directories (defaults and domains) instead 5 directories on old version
3. Nginx with php-fpm
4. Lighttpd with php-fpm
5. Lighttpd-proxy
6. Nginx-proxy
7. New php-type (php-fpm_worker and php-fpm_event) for Apache
8. Prepare for Apache 2.4.1
9. Add 'no fix config' on 'switch program' -- importance > 500 domains hosting
10. Minimize DDOS attack for nginx/nginx-proxy
Fixed old issues and enchanced:
1. Use php-cgi_pure (without php-fpm patch to php) for suphp transparently - [TIP] Temporary solution for Kloxo after update php to 5.1.17-13
2. Enhanced DJBdns - [FIX] DJBDNS not work
3. No need reboot when selinux not installed or status as 'on'
4. Reinstall without destroy kloxo setting
5. Fixed for awstats and webalizer config
6. Fixed for 'switch program' which no automaticly running fixweb/fixmail/fixdns
7. Fixed for 'php-type' which sometimes show 'httpd_failed_start'
8. Remove 'safecat' from package install
9. Kloxo packer change target from svn to git.
10. Fixed permalink for Lighttpd
11. Fixed awstats for httpd-itk
12. Use domain as default class on fixtraffic
13. All files inside /cgi-bin automaticly set to 755 with fix-chownchmod
14. Fixed pointing to subdirectory for redirect domain
15. Fixed blank page for 'remote mail' and 'webmail applications'
16. Implementing logrotate
17. Fixed permalink issue for wordpress multisite
18. Fixed suphp for ip/~client access
Unfinished works:
1. stats issue - fixed awstats except for 'pure' nginx
2. wildcards still not work for lighttpd (want as the same as apache and nginx)
3. Some hiddens maybe implementing (like enable cache for apache; suphp for lighttpd)
4. perl still not work for nginx (awstats use perl)
5. Fixed fix-chownchmod and fix-userlogo for slave
6. Redefine fastcgi_children of lighttpd to switch for php-fpm
7. Using php-fpm for apache not work if .htaccess exist - mod_fastcgi problem
Changed:
1. Change version identity from 6.1.11 to 6.2.0 to prevent update from next release of 6.1.x
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96809 is a reply to message #96805] |
Mon, 19 March 2012 08:58   |
|
Viking wrote on Mon, 19 March 2012 19:44mustafaramadhan wrote on Mon, 19 March 2012 08:08Viking wrote on Mon, 19 March 2012 10:23Does not work on nginx-proxy feature:
Force Redirect Domain.com To Www.domain.com
Thanks and fixed now.
Unfortunately still not working.
"Invalid redirect".
Have you reinstall Kloxo again (I mean my fork)?. Also copy defaults.conf.tpl and domains.conf.tpl from /usr/local/lxlabs/kloxo/file/nginx to /home/nginx/tpl after that?. And then running 'sh /script/fixweb' ?.
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96830 is a reply to message #96809] |
Mon, 19 March 2012 09:51   |
Viking  Messages: 245 Registered: July 2010 |
Senior Member |
|
|
mustafaramadhan wrote on Mon, 19 March 2012 13:58Viking wrote on Mon, 19 March 2012 19:44mustafaramadhan wrote on Mon, 19 March 2012 08:08Viking wrote on Mon, 19 March 2012 10:23Does not work on nginx-proxy feature:
Force Redirect Domain.com To Www.domain.com
Thanks and fixed now.
Unfortunately still not working.
"Invalid redirect".
Have you reinstall Kloxo again (I mean my fork)?. Also copy defaults.conf.tpl and domains.conf.tpl from /usr/local/lxlabs/kloxo/file/nginx to /home/nginx/tpl after that?. And then running 'sh /script/fixweb' ?.
Yes I did.
Quote:@Viking,
After reinstall (no matters using step 1+2a or 1+2b ; better make backup before), try switch from nginx-proxy to lighttpd and then switch back to nginx-proxy. It's the trick.
Yes I did.
Unfortunately I still have:
Firefox: "Invalid redirect"
Opera: "301 Moved Permanently"
EDIT
In nginx conf do not need redirection:
rewrite ^/(.*) http://your_domain.com/$1 permanent;
Since Apache now supports redirect.
[Updated on: Mon, 19 March 2012 10:58] Report message to a moderator
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96838 is a reply to message #96836] |
Mon, 19 March 2012 11:13   |
Viking  Messages: 245 Registered: July 2010 |
Senior Member |
|
|
mustafaramadhan wrote on Mon, 19 March 2012 16:05My modified on domains.conf.tpl to:
location / {
rewrite ^/(.*) 'http://www.<?php echo $domainname; ?>/$1' permanent;
}
and then it's work when testing on my firefox.
And exactly what to change and where?
When can I expect a stable version for production environments?
[Updated on: Mon, 19 March 2012 11:18] Report message to a moderator
|
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96852 is a reply to message #96848] |
Mon, 19 March 2012 15:10   |
|
Some benchmark vs lighttpd 2.4.1 httpd 1.4.30?
This fork will come Varnish on front revesrse proxy?
that will be better?
1.- Varnish front + httpd + php-fpm
2.- Varnish front + lighttpd + php-fpm
3.- Varnish front + nginx + php-fpm
4.- Varnish front + nginx + httpd + php-fpm
5.- Varnish Front + nginx + lighttpd + php-fpm
Or there any better combination?
|
|
|