| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97168 is a reply to message #97163] |
Wed, 28 March 2012 22:59   |
|
djscooby wrote on Thu, 29 March 2012 04:05Hi 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.
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97177 is a reply to message #97168] |
Thu, 29 March 2012 05:29   |
|
mustafaramadhan wrote on Thu, 29 March 2012 05:59djscooby wrote on Thu, 29 March 2012 04:05Hi 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 #97182 is a reply to message #97181] |
Thu, 29 March 2012 07:38   |
|
Viking wrote on Thu, 29 March 2012 18:25mustafaramadhan wrote on Thu, 29 March 2012 04:49Viking wrote on Wed, 28 March 2012 21:37mustafaramadhan 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.
[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   |
|
djscooby wrote on Thu, 29 March 2012 16:29mustafaramadhan wrote on Thu, 29 March 2012 05:59djscooby wrote on Thu, 29 March 2012 04:05Hi 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?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97199 is a reply to message #97183] |
Thu, 29 March 2012 10:44   |
|
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 #97216 is a reply to message #97204] |
Thu, 29 March 2012 23: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'?
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97225 is a reply to message #97216] |
Fri, 30 March 2012 07:53   |
Viking  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   |
|
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.
|
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97288 is a reply to message #97266] |
Sun, 01 April 2012 07:44   |
|
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 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 #97342 is a reply to message #97341] |
Mon, 02 April 2012 15:20   |
|
ptimo3 wrote on Tue, 03 April 2012 02:09Maybe intresting to add the option Nginx proxy cache ?
If we backproxy to apache.
And then realy go nuts, allow tmpfs for proxy cache .. 
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;
# }
...
[Updated on: Mon, 02 April 2012 15:21] Report message to a moderator
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97363 is a reply to message #97346] |
Wed, 04 April 2012 06:28   |
|
Ok I manage to solve it, The IP problem
go to etc/httpd/conf.d/rpaf.conf
and change as it below 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 
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 #97406 is a reply to message #97365] |
Thu, 05 April 2012 13:43   |
|
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 #97416 is a reply to message #95665] |
Fri, 06 April 2012 04:14   |
|
[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
|
|
|