• Resolved ethaseo

    (@ethaseo)


    After i install wordpress successfully i get a 403 instantly on wp-admin as soons a i try to login

    enabling or disabling htaccess does not work.

    wp-admin works finde while the setup runs.

    • This topic was modified 6 years, 9 months ago by ethaseo.
Viewing 10 replies - 1 through 10 (of 10 total)
  • This sounds like a permissions issue. Please take a look at this article and see if any of the fixes mentioned in it help you resolve the problem. https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-403-forbidden-error-in-wordpress/

    Hope this helps. Once you find a fix please mark the thread resolved.

    Thread Starter ethaseo

    (@ethaseo)

    I already found that post when researching before.

    – clean install
    – no other themes
    – no other plugins
    – deleting or renaming htaccess does not work and i cant refresh the file as i cant login in the first place
    – hoster says no errors on their side. i had an other issue last time that was due to the new editor but it went away after installing the classic editor https://wordpress.org/support/topic/updating-pages-or-posts-fails/ and it was also wordpresses fault. My hoster hasnt made any trouble so far.
    – changing file permissions seems not to work but im not 100% percent sure what im doing so i reinstalled wp as i figured out it changed nothing
    – no more options left to try there

    403 errors are permissions issues. I would suggest asking your host for help changing the permissions to be correct. If you are still having issues once you can confirm the permissions are correct according the the article I shared then let us know and myself or someone else here will do our best to help you in this thread. Also, when talking you your host make sure they do not have any firewalls that could be causing the permissions error.

    Thread Starter ethaseo

    (@ethaseo)

    when i create the folder manually or while installing i can access wp-admin without problems so there seem to be no host problems.

    i tried every point in the article by now.

    my hoster replied that everything seems like it is supposed to. they said for Wp specific stuff i should ask here on the community but there are no general issues regarding my webspace and no other customers with trouble about this topic

    I know you said you’ve deleted the htaccess already… make sure that there are not any htaccess files anywhere on your hosting space. then try to access the wp-admin. If there are any rename them to old.htaccess, do not delete them!

    Quick and dirty temporary fix which should help find the issue is to set all the permissions to 777. If it works then it was a permissions thing which could have been an ownership problem also.

    If it still doesn’t work then it’s probably either an htaccess file (might be one sitting in the admin directory), httpd.conf, or a server issue. Possibly a banned IP by CIDR can cause that. It might even be a residual problem from the previous owner where they didn’t reprovision that server.

    You also might need to consider any other of your own sites on that box might have your IP locked out (WordFence comes to mind and I like WordFence).

    Or maybe the Control Panel has that certain range of IP addresses banned.

    These things can happen.

    If you do the ‘777’ permissions thing you’ll need to either go back in and set the permissions properly or else run WordFence to force you to fix them. I think WordFence will do that. Maybe it’s Sucuri or iThemes Security.

    Just don’t leave it that way!!!

    Dion

    (@diondesigns)

    A recent update to the mod_security rules has broken a large number of sites. One of the new rules is incorrectly flagging certain types of site cookies as a threat.

    Ask your hosting company whether they have installed mod_security. If they have, ask them to (in order of preference) remove the new offending rule, revert the recent rules update, or disable mod_security.

    Thread Starter ethaseo

    (@ethaseo)

    @jnashhawkins does not seem to work

    @diondesigns do you have further reading about it so i can specify what exactly i need to do?

    If setting to 777 didn’t work then it’s not file and directory permissions unless you missed that one particular directory and file set. Do set those back if you haven’t done so already.

    So, it might be an htaccess issue, an httpd.conf issue, server issue, or an IP block.

    That mod_security that @diondesigns mentioned might be blocking something from the server-side.

    Have you considered picking the whole site up and placing it on another server? That would be my next move after ruling out any of the simpler server-side issues mentioned above.

    I realize that might be some expense to you and a bit of work but sometimes you need to try that.

    I’d suggest a ‘one button’ install first to find out if everything works then overlay your present site on that or modify that new site to match what you have done so far.

    One more choice might be to provide the URL to the site where someone can take a quick look for any glaring errors. Don’t provide any login info here. We can’t accept that and you don’t want just anyone accessing your site.


    At this point, we’ve reached the limits of what most in the community here are willing to offer in their spare time (everyone here is a volunteer). You should consider hiring someone so that you can give them direct access to the site for a far more efficient fix than we can provide here.

    Please try https://jobs.wordpress.net/ or https://jetpack.pro/ and do not accept any hire offers posted to these forums.

    The moderators here will probably keep this thread open, unless it veers too far off course, in case someone from the community is willing to provide further help here for free.

    • This reply was modified 6 years, 9 months ago by JNashHawkins.
    • This reply was modified 6 years, 9 months ago by JNashHawkins.
    Thread Starter ethaseo

    (@ethaseo)

    for now i changed the hoster but i keep my account on the old one for further investigation as i am curious now. thanks for the help though.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘403 after install’ is closed to new replies.