MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2015-07-01, 10:16:33
-
Please see: http://www.webmama.com.pl/
-
It happens only on one Wordpress on the same customer. Others are fine.
-
Maybe related to site_url in wp database.
-
Maybe related to site_url in wp database.
It looks like this:
Pe?ne teksty option_id option_name option_value autoload
Edytuj Edytuj Kopiuj Kopiuj Usu? Usu? 1 siteurl http://www.webmama.com.pl yes
-
More customers are reporting troubles with Wordpress.
All have redirect loop ;(
-
No issue I found for Wordpress (including Multisite version) under hiawatha-proxy. For me, more prefer hiawatha instead nginx for proxy.
-
No issue I found for Wordpress (including Multisite version) under hiawatha-proxy. For me, more prefer hiawatha instead nginx for proxy.
It was working well with apache 2.2 and nginx.
-
Try disable cache plugins and then enable again.
-
Try disable cache plugins and then enable again.
Does not help - still redirect loop. We have 4 Wordpress pages down right now ;(
-
See example:
Non working:
[root@online /]# curl -s --head http://webmama.com.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 01 Jul 2015 19:34:23 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.webmama.com.pl/xmlrpc.php
Set-Cookie: PHPSESSID=292587601a466394a15445b74c356880; path=/
Location: http://www.webmama.com.pl/
X-Micro-Cache: MISS
Working:
[root@online /]# curl -s --head http://kuchennefrykasy.pl
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jul 2015 19:34:33 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://kuchennefrykasy.pl/xmlrpc.php
Set-Cookie: PHPSESSID=fcb72da88cfc16216a4b7c9e3b35f0fa; path=/
X-Micro-Cache: MISS
-
Different is 'HTTP/1.1 301 Moved Permanently' and 'HTTP/1.1 200 OK'
-
Different is 'HTTP/1.1 301 Moved Permanently' and 'HTTP/1.1 200 OK'
Yes, but see the same for www - non-working:
curl -s --head http://www.webmama.com.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 01 Jul 2015 19:42:15 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.webmama.com.pl/xmlrpc.php
Set-Cookie: PHPSESSID=83af7779567b99953a26eee3e999735b; path=/
Location: http://www.webmama.com.pl/
X-Micro-Cache: MISS
and working:
curl -s --head http://www.kuchennefrykasy.pl
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jul 2015 19:42:44 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://kuchennefrykasy.pl/xmlrpc.php
Set-Cookie: PHPSESSID=82a2c027e4187578e8bf88a68872e7e1; path=/
X-Micro-Cache: MISS
-
Maybe https://wordpress.org/support/topic/fetch-as-google-returns-301-moved-permanently and http://infoheap.com/handle-redirects-in-wordpress/ related for your issue.
-
Maybe https://wordpress.org/support/topic/fetch-as-google-returns-301-moved-permanently and http://infoheap.com/handle-redirects-in-wordpress/ related for your issue.
Something is wrong in http24 config ;( It happens also when trying to lynx to port 30080.
-
I have to restore Apache 2.2 from backup - too many bugs for me.
- non-working some Wordpress installations
- non-working secondary PHP
+ improved speed
-
I've changed customer website from www to non-www and it started working !
http://webmama.com.pl/
Also some interesting logs:
httpd[24340]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d896aab08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
httpd[24456]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d8aaaca18 error 14
httpd[24458]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d896aab08 error 14
httpd[24457]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d8a0abb08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
in mod_mime.so[7f3d948d3000+1ff000]
in mod_mime.so[7f3d948d3000+1ff000]
httpd[25237]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d80df9a18 error 14 in mod_mime.so[7f3d948d3000+1ff000]
httpd[25397]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d7d1f3b08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
-
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
-
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
The code inside .htaccess is non-www to www. After change ownership of .htaccess, redirect is work.
-
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
The code inside .htaccess is non-www to www. After change ownership of .htaccess, redirect is work.
I use the same code here and it works as it should: http://www.test.internet.az.pl (under Apache 2.2 of course).
-
Original ownership of your .htaccess is 471:root and then change to admin:admin make it's work!.
-
Original ownership of your .htaccess is 471:root and then change to admin:admin make it's work!.
I've tested on many domains on my server. I'm sure they got proper permissions.
I will make a copy of some troubleshooting Wordpress to your server in order to investigate these redirections again.
-
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
-
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
Why it works well with apache 2.2 and suphp ?
-
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
Why it works well with apache 2.2 and suphp ?
Did you try change ownership to root:root in your apache 2.2?.
-
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
Why it works well with apache 2.2 and suphp ?
Did you try change ownership to root:root in your apache 2.2?.
I mean I got proper permissions on my server and they only work with apache 2.2. Throws Internal Server Error on 2.4. Running /script/fix-chownchmod does not help as well ;(
-
Suphp has the same setting for httpd 2.2 and 2.4.
-
Suphp has the same setting for httpd 2.2 and 2.4.
Permissions are not changed for .htaccess here:
Fixing Chown and Chmod
- chown admin:apache FOR /home/admin/
- chmod 751 FOR /home/admin/
- chown admin:admin FOR INSIDE /home/admin/kloxoscript/
- chown admin:apache FOR /home/admin/kloxoscript/
- chmod 644 FOR *.php* INSIDE /home/admin/kloxoscript/
- chmod 755 FOR /home/admin/kloxoscript/ AND INSIDE
- chown admin:admin FOR INSIDE /home/admin/test.com/
- chmod 644 FOR *.php* INSIDE /home/admin/test.com/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/admin/test.com/
- chmod 755 FOR /home/admin/test.com/ AND INSIDE
- chmod 777 FOR /home/httpd/test.com/stats AND INSIDE
- chown admin:admin FOR /home/admin/test.com/
- chown admin:admin FOR /home/lxadmin/mail/domains/test.com/
- chown admin:admin FOR INSIDE /home/lxadmin/mail/domains/test.com/
- chmod 600 FOR * INSIDE /home/lxadmin/mail/domains/test.com/
- chmod 700 FOR /home/lxadmin/mail/domains/test.com/ AND INSIDE
-
Got it working on my server !
[root@localhost test.com]# ls -al
razem 16
drwxr-xr-x. 2 admin admin 4096 07-01 19:51 .
drwxr-x--x. 5 admin apache 4096 07-01 14:18 ..
-rw-r--r--. 1 admin admin 624 07-01 13:20 .htaccess
-rw-r--r--. 1 admin admin 17 07-01 13:13 index.php
curl -s --head http://test.com
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 16:24:45 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17
X-Micro-Cache: EXPIRED
Now testing Wordpress on your server.
-
It should be redirected to www and it's not :( http://xl3.mratwork.com/
-
It's redirect to www in my firefox browser.
Remove or modified in your ws-config.php for '<?php if (!in_array($_SERVER["REMOTE_ADDR"], array("62.21.44.49")) && file_exists('/home/gatek89/webmama.com.pl/wp-content/plugins/gotmls/safe-load/wp-login.php')) require_once('/home/gatek89/webmama.com.pl/wp-content/plugins/gotmls/safe-load/wp-login.php'); // Load Brute-Force Protection by GOTMLS.NET before the WordPress bootstrap. ?>'
-
Wait I will try another one which didn't worked yesterday.
-
Not working for me see: http://xl3.mratwork.com/ it should be redirected to www
-
Also redirect from non-www to www in my browser.
So, look like something wrong with your browser and ISP cache. Try clear browser cache.
-
Also redirect from non-www to www in my browser.
So, look like something wrong with your browser and ISP cache. Try clear browser cache.
Main page is not working with www. Rest is from my server. Tried 3 different browsers and 2 ISP's.
-
Also redirect from non-www to www in my browser.
So, look like something wrong with your browser and ISP cache. Try clear browser cache.
Main page is not working with www. Rest is from my server. Tried 3 different browsers and 2 ISP's.
Try using zenMate as Firefox plugin.
-
It's NOT working anywhere. My ISP isn't blocking anything...
When you go to samsungforum.pl it instantly has www before.
-
Please not this domain does not have www redirect inside Kloxo panel so it must be pure mod_rewrite...
-
I am testing my xl3.mratwork.com and when access to http://xl3.mratwork.com always redirect to http://www.xl3.mratwork.com.
-
Panel in xl3.mratwork.com also not enable 'Force Redirect Domain.com To Www.domain.com' in 'admin > www redirect'.
-
Access to http://webmama.com.pl and then redirect to http://www.webmama.com.pl/ smoothly.
-
Access to http://webmama.com.pl and then redirect to http://www.webmama.com.pl/ smoothly.
It's back on Apache 2.2 ;(
-
Panel in xl3.mratwork.com also not enable 'Force Redirect Domain.com To Www.domain.com' in 'admin > www redirect'.
It does not work on all my devices so you've got probably some cache...
-
No. browser cache already cleared and also execute 'ipconfig /flushdns' in windows's command prompt.
-
No. browser cache already cleared and also execute 'ipconfig /flushdns' in windows's command prompt.
What about other browsers Chrome, IE etc. ?
-
From my desktop:
C:\Users\Marek\Desktop>curl -s --head http://xl3.mratwork.com/
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:27:56 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
X-Micro-Cache: MISS
The same for Apache 2.2:
C:\Users\Marek\Desktop>curl -s --head http://samsungforum.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Thu, 02 Jul 2015 19:29:26 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
Location: http://www.samsungforum.pl/
Vary: Accept-Encoding,User-Agent
X-Micro-Cache: MISS
-
Same from your server:
[root@xl3 ~]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:32:35 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
X-Micro-Cache: EXPIRED
-
Your samsungforum.pl already redirect to their www in my firefox.
-
Your samsungforum.pl already redirect to their www in my firefox.
Wait I will try to redirect to your server.
-
Bingo - now we have redirect loop :D
[root@xl3 globals]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:34 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED
[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:38 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED
-
It seems it properly redirecting from non-www to www, but then tries to go back to non-www and that's not possible ;(
-
I think something work with nginx-proxy. I didn't found this issue when using hiawatha-proxy.
-
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).
-
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).
Works fine. So we need to investigate nginx now.
-
Something is wrong in Apache 2.4 when running with nginx:
[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:18 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8
[root@xl3 globals]# curl -s --head http://xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:25 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8
Without nginx:
[root@xl3 /]# curl -s --head http://xl3.mratwork.com
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:45:40 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8
[root@xl3 /]# curl -s --head http://www.xl3.mratwork.com
HTTP/1.1 200 OK
Date: Thu, 02 Jul 2015 22:45:44 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Connection: close
Content-Type: text/html; charset=UTF-8
-
I've changed in switch_standard.conf:
proxy_set_header X-Host $var_domain;
to
proxy_set_header X-Host $host;
and it works.
Now need to test dedicated IP: http://serverfault.com/questions/394983/nginx-proxying-to-multiple-ip-addresses-for-cms-website-preview
-
Also secondary PHP stopped working again.
-
Does it work now ?
-
No issue I found in xl3.mratwork.com. Check .httaccess where I add 'SetHandler x-httpd-php54' and then access phpinfo.php.
-
Yes. It works well now, so we can upgrade ;)