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 #97168 is a reply to message #97163] Wed, 28 March 2012 22:59 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

djscooby wrote on Thu, 29 March 2012 04:05
Hi mustafaramadhan,

I have a problem with maping ip to domain/subdomain...

I tried updating the fork so i have latest version but still can make it work..
I map the ip with no erros in a domain/subdomain but the kloxo page keeps appearing.. ("If you are seeing this page, it means that web has not been configured for this domain on this server.")
Tried with apache only/apache+nginx proxy &(suphp worker/mod php / mod php ruid)but still no luck
Tried adding manually the ip & domain in etc/hosts - Still no luck

My subdomains pings to my ip so its ok (* i want to setup a subdomain with VPS ip so i can install ssl certificate)

Can you please verify if its a problem on the Fork or only in my VPS ?

Thank you in advance


Centos 5.7 x86
Kloxo 6.2.0
Solus Vm management panel.
My testing servers using solusvm also. Using djbdns as dns servers.

I don't know what you mean 'mapping' ip.

In latest fork, djdns set to '0.0.0.0' ip as listen ip and webserver set to '*' ip. So, with this approach no issue again related to ip.


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 #97177 is a reply to message #97168] Thu, 29 March 2012 05:29 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
mustafaramadhan wrote on Thu, 29 March 2012 05:59
djscooby wrote on Thu, 29 March 2012 04:05
Hi mustafaramadhan,

I have a problem with maping ip to domain/subdomain...

I tried updating the fork so i have latest version but still can make it work..
I map the ip with no erros in a domain/subdomain but the kloxo page keeps appearing.. ("If you are seeing this page, it means that web has not been configured for this domain on this server.")
Tried with apache only/apache+nginx proxy &(suphp worker/mod php / mod php ruid)but still no luck
Tried adding manually the ip & domain in etc/hosts - Still no luck

My subdomains pings to my ip so its ok (* i want to setup a subdomain with VPS ip so i can install ssl certificate)

Can you please verify if its a problem on the Fork or only in my VPS ?

Thank you in advance


Centos 5.7 x86
Kloxo 6.2.0
Solus Vm management panel.
My testing servers using solusvm also. Using djbdns as dns servers.

I don't know what you mean 'mapping' ip.

In latest fork, djdns set to '0.0.0.0' ip as listen ip and webserver set to '*' ip. So, with this approach no issue again related to ip.


I mean I can't assign an IP to a domain so I can then apply an SSL certificate to it.. (from kloxo cp->IP defaults ->domains)

I click apply for *already working* sub domain but when I hit http://"my IP" instead of showing me the sudomains root folder it shows me the kloxo page..
If I ping my sub domain it properly resolves to my IP address . This problem is also happening for a domain too..
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97181 is a reply to message #97167] Thu, 29 March 2012 07:25 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 04:49
Viking wrote on Wed, 28 March 2012 21:37
mustafaramadhan wrote on Wed, 28 March 2012 16:12

So, better using suphp_worker/suphp_event at this moment.

In conjunction with the nginx-proxy?

Yes

If I change the suphp_worker / suphp_event and it will matter if apache or nginx-proxy is always an error results 500 Internal Server Error and in no way can this be fixed.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97182 is a reply to message #97181] Thu, 29 March 2012 07:38 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Viking wrote on Thu, 29 March 2012 18:25
mustafaramadhan wrote on Thu, 29 March 2012 04:49
Viking wrote on Wed, 28 March 2012 21:37
mustafaramadhan wrote on Wed, 28 March 2012 16:12

So, better using suphp_worker/suphp_event at this moment.

In conjunction with the nginx-proxy?

Yes

If I change the suphp_worker / suphp_event and it will matter if apache or nginx-proxy is always an error results 500 Internal Server Error and in no way can this be fixed.

Because suphp very tight, need running 'fix ownership and permissions' on kloxo or running 'sh /script/fix-chownchmod'. I think we must know 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

[Updated on: Thu, 29 March 2012 07:38]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97183 is a reply to message #97177] Thu, 29 March 2012 07:39 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

djscooby wrote on Thu, 29 March 2012 16:29
mustafaramadhan wrote on Thu, 29 March 2012 05:59
djscooby wrote on Thu, 29 March 2012 04:05
Hi mustafaramadhan,

I have a problem with maping ip to domain/subdomain...

I tried updating the fork so i have latest version but still can make it work..
I map the ip with no erros in a domain/subdomain but the kloxo page keeps appearing.. ("If you are seeing this page, it means that web has not been configured for this domain on this server.")
Tried with apache only/apache+nginx proxy &(suphp worker/mod php / mod php ruid)but still no luck
Tried adding manually the ip & domain in etc/hosts - Still no luck

My subdomains pings to my ip so its ok (* i want to setup a subdomain with VPS ip so i can install ssl certificate)

Can you please verify if its a problem on the Fork or only in my VPS ?

Thank you in advance


Centos 5.7 x86
Kloxo 6.2.0
Solus Vm management panel.
My testing servers using solusvm also. Using djbdns as dns servers.

I don't know what you mean 'mapping' ip.

In latest fork, djdns set to '0.0.0.0' ip as listen ip and webserver set to '*' ip. So, with this approach no issue again related to ip.


I mean I can't assign an IP to a domain so I can then apply an SSL certificate to it.. (from kloxo cp->IP defaults ->domains)

I click apply for *already working* sub domain but when I hit http://"my IP" instead of showing me the sudomains root folder it shows me the kloxo page..
If I ping my sub domain it properly resolves to my IP address . This problem is also happening for a domain too..

IP from dns and web is the same?


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 #97184 is a reply to message #97182] Thu, 29 March 2012 08:03 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 13:38

Because suphp very tight, need running 'fix ownership and permissions' on kloxo or running 'sh /script/fix-chownchmod'. I think we must know it.

Unfortunately, it does not help. I have to manually change the chmod on some directories and files to 777 to 666, but will not change even as it does not help.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97185 is a reply to message #97184] Thu, 29 March 2012 08:51 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Directory permissions is 755 and files is 644. Beside permissions, suphp want ownership must be match.

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 #97187 is a reply to message #97185] Thu, 29 March 2012 09:14 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 14:51
Directory permissions is 755 and files is 644. Beside permissions, suphp want ownership must be match.

Unfortunately, it does not help anything. I always have a 500 Internal Server Error. At the same apache also the same error.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97189 is a reply to message #97187] Thu, 29 March 2012 09:23 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

I don't know what's wrong of your system. My http://mr2ovz.hostspectra.com/wp/ using nginx-proxy with suphp_worker

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 #97190 is a reply to message #97189] Thu, 29 March 2012 09:32 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 15:23
I don't know what's wrong of your system. My http://mr2ovz.hostspectra.com/wp/ using nginx-proxy with suphp_worker


The new installation. According to http://forum.lxcenter.org/index.php?t=msg&th=18106&p revloaded=1&&start=0
Step 1 and 2a. Installed on a test script. Installed 2-3 days ago.
Anyway, on 6.1.2 it is the same situation.

[Updated on: Thu, 29 March 2012 09:36]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97191 is a reply to message #97190] Thu, 29 March 2012 09:49 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Viking wrote on Thu, 29 March 2012 20:32
mustafaramadhan wrote on Thu, 29 March 2012 15:23
I don't know what's wrong of your system. My http://mr2ovz.hostspectra.com/wp/ using nginx-proxy with suphp_worker


The new installation. According to http://forum.lxcenter.org/index.php?t=msg&th=18106&p revloaded=1&&start=0
Step 1 and 2a. Installed on a test script. Installed 2-3 days ago.
Anyway, on 6.1.2 it is the same situation.

If you found the same problem with 6.1.12 ( especially after follow http://forum.lxcenter.org/index.php?t=msg&th=18036 ) that mean it's your system problem.


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 #97192 is a reply to message #97191] Thu, 29 March 2012 09:55 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 15:49
Viking wrote on Thu, 29 March 2012 20:32
mustafaramadhan wrote on Thu, 29 March 2012 15:23
I don't know what's wrong of your system. My http://mr2ovz.hostspectra.com/wp/ using nginx-proxy with suphp_worker


The new installation. According to http://forum.lxcenter.org/index.php?t=msg&th=18106&p revloaded=1&&start=0
Step 1 and 2a. Installed on a test script. Installed 2-3 days ago.
Anyway, on 6.1.2 it is the same situation.

If you found the same problem with 6.1.12 ( especially after follow http://forum.lxcenter.org/index.php?t=msg&th=18036 ) that mean it's your system problem.

Is this also applies to your version 6.2.0?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97193 is a reply to message #97192] Thu, 29 March 2012 10:12 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

My fork already fixed this issue.

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 #97194 is a reply to message #97193] Thu, 29 March 2012 10:13 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Maybe you need a trick. Try switch to lighttpd and then switch back to nginx-proxy.

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 #97195 is a reply to message #97193] Thu, 29 March 2012 10:15 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 16:12
My fork already fixed this issue.

OK. Today I will do a new installation of 6.2.0 and check again if it works.
What do I do if the script requires a chmod 777 on directories and files 666 to work properly?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97196 is a reply to message #97195] Thu, 29 March 2012 10:18 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

If select suphp (better choose suphp_worker), run 'sh /script/fix-chownchmod --select=all' from ssh.

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 #97197 is a reply to message #97196] Thu, 29 March 2012 10:25 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Thu, 29 March 2012 16:18
If select suphp (better choose suphp_worker), run 'sh /script/fix-chownchmod --select=all' from ssh.

OK. For 1-2 hours will do a new installation in accordance with step 1 and 2a and let you know.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97198 is a reply to message #97197] Thu, 29 March 2012 10:29 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
With new installation in accordance with step 1 and 2a can't set any limit for client and resource plans.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97199 is a reply to message #97183] Thu, 29 March 2012 10:44 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
Quote:
IP from dns and web is the same?


yes on the subdomain i want to use... Not on the subdomain's domain because i use cloudflare's name servers on that...

So to make it more clear to you...

-If i ping "example.com" it resolves to cloudflare ip because i am using cloudflare as name servers..

Now for this domain if i go to kloxo cp->ip addresses->configure domain>
and map server ip to this domain it displays me this error "To map an IP to a domain, the domain must ping to the same IP...." which is normal since the "example.com" is using cloudflares dns servers so the error is correct..

-If i ping the subdomain (i actually want to use) "cart.example.com" it resolves back to my ip-So no problem..

Now going again to kloxo cp->ip addresses->configure domain> and map servers ip to the subdomain "cart.example.com" works fine with no error - wich is normal since subdomain pings to my server's ip adress...

But then if i use http://"myipaddress" instean of showing me the root contents of subdomain's "cart.example.com" ,it just shows me the kloxo page..

Of course subdomain http://"cart.example.com" is working fine with a site on it...

So what i am asking is if its a FORK problem or my vps problem...

(*Also i am going to ask a client to change name servers for 1 domain i host and put back my vps's ns1 & 2 just to test if this is the problem.,,*)
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97200 is a reply to message #97198] Thu, 29 March 2012 11:10 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
marid wrote on Thu, 29 March 2012 16:29
With new installation in accordance with step 1 and 2a can't set any limit for client and resource plans.

Yes that's right. In a moment I'll check for new installation or already corrected.

EDIT
Affirmative. There is still no.

[Updated on: Thu, 29 March 2012 12:12]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97204 is a reply to message #97197] Thu, 29 March 2012 13:12 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
Viking wrote on Thu, 29 March 2012 16:25
mustafaramadhan wrote on Thu, 29 March 2012 16:18
If select suphp (better choose suphp_worker), run 'sh /script/fix-chownchmod --select=all' from ssh.

OK. For 1-2 hours will do a new installation in accordance with step 1 and 2a and let you know.

Does not work. The default index is OK.
After adding the script produced error 500 Internal Server Error.

EDIT
None of what is in this topic:
http://forum.lxcenter.org/index.php?t=msg&th=18036&s tart=0&
After that, it works. If the kloxo choose other settings are the problem returns.

[Updated on: Thu, 29 March 2012 23:09]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97216 is a reply to message #97204] Thu, 29 March 2012 23:28 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@Viking,

1. check inside /etc/suphp.conf file. See 'x-httpd-php="php:/usr/bin/php-cgi_pure"' or 'x-httpd-php="php:/usr/bin/php-cgi"'?
2. check inside /usr/bin dir. See php-cgi_pure and php_pure beside php-cgi and php files?
3. what happen when running 'yum update'?


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 #97225 is a reply to message #97216] Fri, 30 March 2012 07:53 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Fri, 30 March 2012 05:28
@Viking,

1. check inside /etc/suphp.conf file. See 'x-httpd-php="php:/usr/bin/php-cgi_pure"' or 'x-httpd-php="php:/usr/bin/php-cgi"'?
2. check inside /usr/bin dir. See php-cgi_pure and php_pure beside php-cgi and php files?
3. what happen when running 'yum update'?

1. check inside /etc/suphp.conf file. See 'x-httpd-php="php:/usr/bin/php-cgi_pure"' or 'x-httpd-php="php:/usr/bin/php-cgi"'?
2. check inside /usr/bin dir. See php-cgi_pure and php_pure beside php-cgi and php files?
3. The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package apr.i386 0:1.3.12-1.el5_5.1 set to be updated
---> Package pcre.i386 0:8.02-1.el5_5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================ ====================
Package Arch Version Repository Size
============================================================ ====================
Updating:
apr i386 1.3.12-1.el5_5.1 lxcenter-updates 247 k
pcre i386 8.02-1.el5_5.1 lxcenter-updates 460 k

Transaction Summary
============================================================ ====================
Install 0 Package(s)
Upgrade 2 Package(s)

Total download size: 707 k
Is this ok [y/N]:

------------
Yes
No

Kloxo:
Home (admin)>>Servers>>Server Home (localhost)>>pserver-localhost {Webserver Config}>>Php Type=suphp
The same is placed a.
If I run:
Apache Memory Optimize and Fix 'ownership'
It produced an error:
500 Internal Server Error

[Updated on: Fri, 30 March 2012 08:12]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97254 is a reply to message #97225] Fri, 30 March 2012 21:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Usually '500 Internal Server Error' on suphp because wrong ownership and or permissions. Running 'sh /script/fix-chownchmod --select=all' or select 'fix-all' in 'webserver config' will be fixed this issue.

The same issue where 'x-httpd-php="php:/usr/bin/php-cgi_pure' not exist inside /etc/suphp.conf.


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 #97256 is a reply to message #97254] Fri, 30 March 2012 21:18 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@Viking,

Have you tried suphp_worker/suphp_event instead 'pure' suhp?.


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 #97258 is a reply to message #97256] Fri, 30 March 2012 21:44 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Sat, 31 March 2012 03:18
@Viking,

Have you tried suphp_worker/suphp_event instead 'pure' suhp?.

It works only after you have taken to what is written here:
http://forum.lxcenter.org/index.php?t=msg&th=18036&s tart=0&
If I change anything in kloxo example of suphp_worker / suphp_event or suPHP or I'll Fix 'ownership' and 'permissions' to stop working and there are 500 internal server error.
Only on mod_php works if I use kloxo functions Php Type.
As if it was not included with the amendment at all.
The suphp_worker/suphp_event when executing the command service httpd status as a 500 Internal Server Error gives an answer that does not work and will not start.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97259 is a reply to message #97258] Fri, 30 March 2012 23:24 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@Viking,

Discuss with me via YM or GTalk.

I am sure there are something wrong with your system because it's nothing problem on my servers.


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 #97266 is a reply to message #97259] Sat, 31 March 2012 07:11 Go to previous messageGo to next message
Viking  Poland
Messages: 245
Registered: July 2010
Senior Member
mustafaramadhan wrote on Sat, 31 March 2012 05:24
@Viking,

Discuss with me via YM or GTalk.

I am sure there are something wrong with your system because it's nothing problem on my servers.

Test the new installation of the updated version of centos and Current Issues in step 1 and 2a.
I can do a reinstall and get you on the PM to give the data to shh. That you will see that suPHP made ​​by hand according to what you wrote here:
http://forum.lxcenter.org/index.php?t=msg&th=18036&s tart=0&
Or give me a link to OpenVZ templates that you recommend it to the check.
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97288 is a reply to message #97266] Sun, 01 April 2012 07:44 Go to previous messageGo to next message
kryptonite is currently offline kryptonite  
Messages: 7
Registered: February 2012
Member
ok with help of mustafa I managed to Run nginx proxy ! that's cool and a big load balancer for my site, thanks again mustafa Smile ur a great developer.

First after installation
1. The Web Page temporarily unavailable - ' solution ' - if ur'e on mod_php_ruid2 probably time to change to suphp(secure but not fast) I use suphp_event
2. Then my Wordpress site became defaced - ' solution ' - switch off w3 total cache, then go to minification section and change to manual mode
3. Then Wordpress sites worked like charm but not the admin panel - ' solution ' - If u use any opcode cache you will probably get this, because after installation of the fork zend optimizer resets and starts to work, so go to kloxo panel, php config, disable zend ! woha, ur ok the sites works normally !

Thanks again mustafa ! for your kloxo plus !

here is a benchmark !
[root@vps ~]# ab -n 10 -c 2 http://ecozins.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking ecozins.com (be patient).....done


Server Software:        cloudflare-nginx
Server Hostname:        ecozins.com
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      2
Time taken for tests:   0.537 seconds
Complete requests:      10
Failed requests:        0
Write errors:           0
Non-2xx responses:      10
Total transferred:      3820 bytes
HTML transferred:       0 bytes
Requests per second:    18.61 [#/sec] (mean)
Time per request:       107.497 [ms] (mean)
Time per request:       53.748 [ms] (mean, across all concurrent requests)
Transfer rate:          6.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    2   0.2      2       2
Processing:    27   82 159.1     34     535
Waiting:       27   82 159.1     33     535
Total:         30   84 159.2     35     537

Percentage of the requests served within a certain time (ms)
  50%     35
  66%     36
  75%     37
  80%     37
  90%    537
  95%    537
  98%    537
  99%    537
 100%    537 (longest request)


Bugs noticed so far,
1. Incoming IP's are same which indicate as 127.0.0.1 (localhost)
2. not yet I will report

[Updated on: Sun, 01 April 2012 14:44]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97304 is a reply to message #97288] Sun, 01 April 2012 18:54 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

haahhaa
big great for all success install this fork
but i got trouble when install
install normal and success
but after install apache won't start yet Smile
then nginx, on status is running but web cant be access Smile


ready
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97312 is a reply to message #95665] Mon, 02 April 2012 04:26 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

hello,
after installed 3times reinstall OS
my machine use kvm
first time please make sure your selinux is disable Very Happy
then after install if apache wont start try from ssh to start it
if result error on fqdn try change it to 127.0.0.1 on hostname
and work like charm
if suphp_event and suphp_worker doesnt work tr change it to lighty
and go back to nginx proxy
thanks in advace


ready
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97341 is a reply to message #97312] Mon, 02 April 2012 15:09 Go to previous messageGo to next message
ptimo3 is currently offline ptimo3  
Messages: 4
Registered: March 2012
Location: Belgium
Member
Maybe intresting to add the option Nginx proxy cache ?
If we backproxy to apache.

And then realy go nuts, allow tmpfs for proxy cache .. Very Happy

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97342 is a reply to message #97341] Mon, 02 April 2012 15:20 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

ptimo3 wrote on Tue, 03 April 2012 02:09
Maybe intresting to add the option Nginx proxy cache ?
If we backproxy to apache.

And then realy go nuts, allow tmpfs for proxy cache .. Very Happy



Default code inside '/home/nginx/conf/globals/proxy.conf':

...
   #     proxy_cache cache;
...
    location ~* ^.+\.(jpe?g|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|avi|mp3)$ {
        expires 2d;
        access_log off;
        root $rootdir;
    }
...


and then if you want using proxy cache, just modified to:
...
        proxy_cache cache;
...
#    location ~* ^.+\.(jpe?g|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|avi|mp3)$ {
#        expires 2d;
#        access_log off;
#        root $rootdir;
#    }
...



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, 02 April 2012 15:21]

Report message to a moderator

icon14.gif  Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97345 is a reply to message #97342] Mon, 02 April 2012 17:44 Go to previous messageGo to next message
ptimo3 is currently offline ptimo3  
Messages: 4
Registered: March 2012
Location: Belgium
Member
Have to Say, Nicely done Smile

The only think now, which it a bit of problem for some users is the various config files depending on the type site the user is running ..

Maybe for a future release drop config file -> Magento / Joomla / WP / concrete etc.. ?

(when using fpm) Smile

[Updated on: Mon, 02 April 2012 17:53]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97346 is a reply to message #97345] Mon, 02 April 2012 21:22 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@ptimo3,

On final release, will be have options for 'rewrite rule' and 'permalink' for nginx (where lighttpd have this options since previouse version).


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 #97363 is a reply to message #97346] Wed, 04 April 2012 06:28 Go to previous messageGo to next message
kryptonite is currently offline kryptonite  Sri Lanka
Messages: 7
Registered: February 2012
Member
Ok I manage to solve it, The IP problem
go to etc/httpd/conf.d/rpaf.conf
and change as it below Smile tada ! you have IP in your log ! and thanks again to mustafa, also Google to get some knowledge about mod rpaf. my logs are ok now Smile
LoadModule rpaf_module modules/mod_rpaf-2.0.so

RPAFenable      On
RPAFsethostname Off
RPAFproxy_ips   127.0.0.1
RPAFheader      X-Real-IP
#RPAFheader      X-Forwarded-For
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97365 is a reply to message #97363] Wed, 04 April 2012 07:59 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@kryptonite

Thanks. Will be fixed immediately.


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 #97406 is a reply to message #97365] Thu, 05 April 2012 13:43 Go to previous messageGo to next message
marid is currently offline marid  United States
Messages: 69
Registered: November 2011
Valuable Member
with nginxproxy dosn't write log files in /home/httpd/domain.com/stats/
write only in /var/log/httpd/ but with 127.0.0.1
also awstats not work.
With apache write log files but awstats still not work.
I install yesterday freshh kloxo but diferent- first install 6.1.12 and then do steps for fresh install kloxo fork. Possibility reason this issues?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97408 is a reply to message #97406] Thu, 05 April 2012 14:27 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@marid,

Awstats still not work for nginx because using perl that not implementing yet. Webalizer is work.


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 #97416 is a reply to message #95665] Fri, 06 April 2012 04:14 Go to previous messageGo to previous message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

[root@joglo jwembut]#
[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
;zend_extension = /usr/lib/php/modules/xcache.so
; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
;; For windows users, replace xcache.so with php_xcache.dll
zend_extension_ts = c:/php/extensions/php_xcache.dll
;; or install as extension, make sure your extension_dir setting is correct
; extension = xcache.so
;; or win32:
; extension = php_xcache.dll

[xcache.admin]
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = ""

[xcache]
; ini only settings, all the values here is default unless explained

; select low level shm/allocator scheme implemenation
xcache.shm_scheme =        "mmap"
; to disable: xcache.size=0
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size  =               32M
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count =                 1
; just a hash hints, you can always store count(items) > slots
xcache.slots =                8K
; ttl of the cache item, 0=forever
xcache.ttl   =                 0
; interval of gc scanning expired items, 0=no scan, other values is in seconds
xcache.gc_interval =           0

; same as aboves but for variable cache
xcache.var_size  =            0M
xcache.var_count =             1
xcache.var_slots =            8K
; default ttl
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300

xcache.test =                Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path =    "/tmp/xcache"


; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory =   ""

; per request settings
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =            On

[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
xcache.coverager =          Off

; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""
[root@joglo jwembut]#


why after change some line it will back again to default ??


ready
Previous Topic:Password Protected Directory & Awstats Problems
Next Topic:Apache driver testers needed
Goto Forum:
  


Current Time: Sat May 18 05:10:45 EDT 2013

Total time taken to generate the page: 0.02152 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