Forums

403 Forbidden accessing wp-login.php (7 posts)

  1. ftfoi
    Member
    Posted 1 year ago #

    I had a testinstall of wp2.5.1, working perfectly.

    Downloaded the 2.6 today, installed it, amended my wp-config.php with the new security keys, ran upgrade.php and the site works perfectly. But when I try to access /wp-admin/ I get a "403 Forbidden. You don't have permission to access /wp/wp-login.php on this server"

    Nothing has changed with the permissions, the owner of the files are the same, just new files. Have tried both Opera, FF2 and IE6, but same error.

    The one thing that I didn't do according to the upgrade instructions is to overwrite the files in root, I deleted them at the same time as I deleted the old wp-includes and wp-admin directories.

    wp-login.php has permissons 644, wp-admin 755, same as all the other files and folders.

    I am frankly confused. Anybody else experencing this?

  2. ftfoi
    Member
    Posted 1 year ago #

    Can't really see this as a WordPress error myself, but since I'm out of ideas I hope any of you nice people might be able to help.

  3. aheckler
    Member
    Posted 1 year ago #

    The one thing that I didn't do according to the upgrade instructions is to overwrite the files in root, I deleted them at the same time as I deleted the old wp-includes and wp-admin directories.

    I don't think this caused the problem, as I did my install this way and it worked flawlessly.

  4. dolemite
    Member
    Posted 1 year ago #

    I'm running into something similar where I can't login to the admin panel after an upgrade. The login URL re-directs from /wp-admin/ to /wp-login.php in the root. I reverted to the previous version for now.

  5. ftfoi
    Member
    Posted 1 year ago #

    Tried something now. I went directly to wp-login.php in stead of wp-admin, and then it worked OK.

    Seems like it's something with the redirect.

  6. fbeshox
    Member
    Posted 1 year ago #

    Hi guys. I have the same problem. When i open the wp-login.php i can log in but i don't see the panel control and I see the 403 Error.

    Did you resolve this problem?

  7. alexdunae
    Member
    Posted 9 months ago #

    I just ran into this and thought I'd post my resolution for posterity.

    Our client's host had a mod_security rule that matched on =http. Going to example.com/wp-admin/ redirects you to example.com/wp-login.php?redirect_to=http://... triggering a 403 from mod_security.

    To work around it, add

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^redirect_to=http
    RewriteRule ^wp-login.php http://example.com/wp-login.php? [R=301,L]
    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic