LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » [FORK] Nginx, Nginx-proxy and Lighttpd-proxy
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96502 is a reply to message #96500] Tue, 13 March 2012 12:07 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
No i use your version... 6.2.0

I make a re-install for the 2nd time and now it works..

The problem maybe was that i didn't deleted the tmp/kloxo folder in the first install...

I did a delete in kloxo folder followed step 1 and 3 and now its working fine...

Thank you very much for your help..

[Updated on: Tue, 13 March 2012 12:23]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96505 is a reply to message #96502] Tue, 13 March 2012 12:36 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@marid,

Try changing /etc/httpd/conf.d/rpaf.conf and /usr/local/lxlabs/kloxo/files/apache/rpaf.conf to:

### MR -- read /usr/local/lxlabs/kloxo/file/apache/rpaf.conf.original for full description ###

LoadModule rpaf_module modules/mod_rpaf-2.0.so

RPAFenable      On
RPAFsethostname On
RPAFproxy_ips   127.0.0.1:30080
RPAFheader      X-Forwarded-For


and then read http://dev.mybb.com/issues/1316


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Tue, 13 March 2012 12:59]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96530 is a reply to message #96505] Tue, 13 March 2012 18:46 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Use mod_extract_forwarded

[Updated on: Tue, 13 March 2012 18:48]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96543 is a reply to message #96530] Tue, 13 March 2012 22:07 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@Spacedust,

Look like mod_extract_forwarded is early stage products. mod_rpaf is mature enough.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96550 is a reply to message #96543] Wed, 14 March 2012 04:58 Go to previous messageGo to next message
rechy2k is currently offline rechy2k  Mexico
Messages: 8
Registered: March 2012
Member
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 #96551 is a reply to message #96550] Wed, 14 March 2012 05:18 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

My fork will be ready for centos 6. But not now (say it my current fork as 6.2.0). Maybe at 6.2.1 or 6.2.2

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96618 is a reply to message #96551] Thu, 15 March 2012 06:26 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Can I use mod_evasive with reverse-proxy ?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96622 is a reply to message #96618] Thu, 15 March 2012 07:40 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

No need mod_evasive for nginx/nginx-proxy. My latest upload, access limiting to 25 sessions for every remote_addr (for every domain).

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96634 is a reply to message #96622] Thu, 15 March 2012 11:25 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
How about Apache 2.4.1 rpm ? Any progress on this ? Caching is not enough when we have old web server software.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96635 is a reply to message #96634] Thu, 15 March 2012 11:46 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Not testing yet. I hope still on shedule.

Php-fpm with fastcgi has big problem (conflict with .htaccess). I hope mod_proxy_fcgi (including from Apache 2.4.1) is answering this situation.

Next week for implementing Apache 2.4.1 .


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96636 is a reply to message #96635] Thu, 15 March 2012 12:11 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Is there even a single Linux distro with a stable release that includes httpd 2.4? I just want one single stable release named.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96637 is a reply to message #96636] Thu, 15 March 2012 12:22 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Just build by myself for Apache 2.4.1. Only atomic have Apache 2.4.1 rpm but only for Centos 6.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 15 March 2012 12:23]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96639 is a reply to message #96637] Thu, 15 March 2012 13:53 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
Nothing has changed. In wordpress also users's ips are 127.0.0.1

[Updated on: Thu, 15 March 2012 13:54]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96640 is a reply to message #96637] Thu, 15 March 2012 14:07 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
mustafaramadhan wrote on Thu, 15 March 2012 12:22
Just build by myself for Apache 2.4.1. Only atomic have Apache 2.4.1 rpm but only for Centos 6.


Just wanted to point it out that is all. Latest and greatest isn't all it is cracked up to be.


https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96643 is a reply to message #96640] Thu, 15 March 2012 15:02 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@marid,

Need modified (it's work on my wordpress multisite):

1. for '/home/nginx/conf/globals/proxy.conf' and '/usr/local/lxlabs/kloxo/file/nginx/globals/proxy.conf'

from:
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


to:
   #     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-For $remote_addr;


2. for 'wp-config.php' add at bottom with:
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  $ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
  $_SERVER['REMOTE_ADDR'] = $ips[0];
}


Reference: http://mattkirman.com/2011/06/01/how-to-speed-up-wordpress-w ith-nginx/


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 15 March 2012 15:09]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96663 is a reply to message #96643] Fri, 16 March 2012 00:09 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Nginx have new version on CentAlt repo where this fork using nginx from Centalt. So, update with running 'yum update nginx -y'.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96673 is a reply to message #96663] Fri, 16 March 2012 06:05 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
So do not use nginx-proxy for shared hosting.

I can't create backup - failed_due_to__could_not_zip_dir____invalid_domain_name_
fixweb, cleanup not help
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96674 is a reply to message #96673] Fri, 16 March 2012 06:14 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@marid,

Kloxo using 'special' lighttpd and php. This issue not related to using nginx-proxy or not.

But, will investigate about it.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96675 is a reply to message #96674] Fri, 16 March 2012 06:22 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@marid,

One of my production servers using nginx-proxy with mod_php_ruid2. Testing for backup data for 3 clients (small data enough) without error like you found. Also data look like normal.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Fri, 16 March 2012 06:24]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96702 is a reply to message #96673] Fri, 16 March 2012 15:56 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
marid wrote on Fri, 16 March 2012 11:05
So do not use nginx-proxy for shared hosting.

I can't create backup - failed_due_to__could_not_zip_dir____invalid_domain_name_
fixweb, cleanup not help


This is not related to proxy.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96704 is a reply to message #96637] Fri, 16 March 2012 16:57 Go to previous messageGo to next message
rechy2k is currently offline rechy2k  Mexico
Messages: 8
Registered: March 2012
Member
pkgs.org/centos-6-rhel-6/remi-testing-x86_64/php-5.4.0-1.el6 .remi.x86_64.rpm.html
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96706 is a reply to message #96467] Fri, 16 March 2012 17:16 Go to previous messageGo to next message
pats is currently offline pats  India
Messages: 23
Registered: March 2012
Member
i tried the steps today...

facing same errors as @DaveMurray

How to resolve this?

DaveMurray wrote on Tue, 13 March 2012 02:18
unfortunately 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 #96708 is a reply to message #96706] Fri, 16 March 2012 19:58 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@pats,

Don't copy-paste all lines, but copy-paste line-by-line.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96724 is a reply to message #96708] Sat, 17 March 2012 04:32 Go to previous messageGo to next message
pats is currently offline pats  India
Messages: 23
Registered: March 2012
Member
Mustafa, i copied line by line only..

i'll try again ad update u..
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96726 is a reply to message #96724] Sat, 17 March 2012 10:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

When I tried copy-paste all, I found the same problem. But, it's ok if copy-paste line-by-line.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96783 is a reply to message #95665] Sun, 18 March 2012 20:14 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

mustafaramadhan wrote on Fri, 02 March 2012 00:12
Related 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




http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96784 is a reply to message #95665] Sun, 18 March 2012 20:18 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

mustafaramadhan wrote on Fri, 02 March 2012 00:12
Related 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




http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96787 is a reply to message #96726] Sun, 18 March 2012 23:23 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
Does not work on nginx-proxy feature:
Force Redirect Domain.com To Www.domain.com
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96794 is a reply to message #96787] Mon, 19 March 2012 03:08 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Viking wrote on Mon, 19 March 2012 10:23
Does not work on nginx-proxy feature:
Force Redirect Domain.com To Www.domain.com

Thanks and fixed now.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96805 is a reply to message #96794] Mon, 19 March 2012 08:44 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Mon, 19 March 2012 08:08
Viking wrote on Mon, 19 March 2012 10:23
Does not work on nginx-proxy feature:
Force Redirect Domain.com To Www.domain.com

Thanks and fixed now.

Unfortunately still not working.
"Invalid redirect".
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96809 is a reply to message #96805] Mon, 19 March 2012 08:58 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Viking wrote on Mon, 19 March 2012 19:44
mustafaramadhan wrote on Mon, 19 March 2012 08:08
Viking wrote on Mon, 19 March 2012 10:23
Does 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' ?.




http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96817 is a reply to message #96809] Mon, 19 March 2012 09:14 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@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.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96830 is a reply to message #96809] Mon, 19 March 2012 09:51 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Mon, 19 March 2012 13:58
Viking wrote on Mon, 19 March 2012 19:44
mustafaramadhan wrote on Mon, 19 March 2012 08:08
Viking wrote on Mon, 19 March 2012 10:23
Does 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 #96836 is a reply to message #96830] Mon, 19 March 2012 11:05 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

My 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.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Mon, 19 March 2012 11:07]

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 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Mon, 19 March 2012 16:05
My 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 #96840 is a reply to message #96838] Mon, 19 March 2012 11:25 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
Today I do fresh install kloxo. Nginx-proxy + Joomla

Rewrite rule not work- 'Page not found'. This problem is when enable adds sufix to url in Joomla settings.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96841 is a reply to message #96840] Mon, 19 March 2012 11:55 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

We can see day-by-day what I am doing at https://github.com/mustafaramadhan/kloxo/commits/dev/

About redirect, see https://github.com/mustafaramadhan/kloxo/commit/55db0f9aae22 5b00b03b12d80942043cbce40e2a


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96842 is a reply to message #96841] Mon, 19 March 2012 12:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

In my fork, bug fix (for webserver config) without change kloxo core code but enough in template files in many cases. By design, template is very flexible to customize.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #96848 is a reply to message #96842] Mon, 19 March 2012 13:54 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
I mean the approximate timing for the stable version.

EDIT
The /home/nginx/conf/domains/mydomain.conf does not need redirection on the www. This redirection is done in apache.

[Updated on: Mon, 19 March 2012 15:12]

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 Go to previous messageGo to previous message
rechy2k is currently offline rechy2k  Mexico
Messages: 8
Registered: March 2012
Member
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?
Previous Topic:Password Protected Directory & Awstats Problems
Next Topic:Apache driver testers needed
Goto Forum:
  


Current Time: Sat May 25 12:30:11 EDT 2013

Total time taken to generate the page: 0.01972 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software