Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 18:53:34

Author Topic: Wordpress redirect loop after upgrade to httpd24  (Read 18548 times)

0 Members and 2 Guests are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #15 on: 2015-07-01, 23:19:11 »
I've changed customer website from www to non-www and it started working !

http://webmama.com.pl/

Also some interesting logs:

Quote
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]

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #16 on: 2015-07-01, 23:38:55 »
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #17 on: 2015-07-02, 08:46:11 »
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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #18 on: 2015-07-02, 11:40:38 »
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).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #19 on: 2015-07-02, 12:00:32 »
Original ownership of your .htaccess is 471:root and then change to admin:admin make it's work!.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #20 on: 2015-07-02, 12:58:07 »
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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #21 on: 2015-07-02, 13:55:37 »
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #22 on: 2015-07-02, 17:11:35 »
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 ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #23 on: 2015-07-02, 17:24:53 »
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?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #24 on: 2015-07-02, 18:05:47 »
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 ;(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #25 on: 2015-07-02, 18:17:16 »
Suphp has the same setting for httpd 2.2 and 2.4.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #26 on: 2015-07-02, 18:18:44 »
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

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #27 on: 2015-07-02, 18:20:18 »
Got it working on my server !

Quote
[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

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

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #28 on: 2015-07-02, 18:52:44 »
It should be redirected to www and it's not :( http://xl3.mratwork.com/

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #29 on: 2015-07-02, 19:00:10 »
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. ?>'
« Last Edit: 2015-07-02, 19:11:33 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.074 seconds with 21 queries.

web stats analysis