Forum Replies Created

Viewing 1 replies (of 1 total)
  • loudcanvas

    (@loudcanvas)

    Allow me to throw my hat into the ring here. My answer to the problem was not described above. We run a suPHP configuration on our server, so file/folder permissions can actually cause a redirect loop for the wordpress wp-admin folder IF the files and folders do not have the correct permissions assigned.

    To fix this I simply login to SSH and run these commands:

    cd /home/{account}/public_html
    chmod -Rf 644

    This chmods ALL files/folders (recursively) to 644–which is what FILES they should be. Then run:

    find . -type d -exec chmod 755 {}\;

    This chmods all directories to 755 (correct setting).

    Voila. This fixed any redirect issues.

    One other thing which is important if you have moved the wordpress site from another account on the server (e.g. a subdomain on a dev domain) to a primary cpanel account, the user permissions may be incorrect. Go into wp-admin dir and simply to an ls -ltr to confirm that the folder/group match that of the account.

    If not – to fix this is easy:

    chown -Rf {user}:{user} *

    Problem fixed. ??

    I should also point out that the BEST thing to do when facing a redirect loop (or any other sort of 500 error) is to tail the apache log file, i.e.:

    tail -f /usr/local/apache/logs/error_log

    Then try to hit the admin url. It’ll explain the exact error and greatly help with troubleshooting.

Viewing 1 replies (of 1 total)