• Resolved magnus13

    (@magnus13)


    I have installed WordPress many times in the past but have never encountered this problem before.

    I installed 3.01 on my server (linux hosted through 1&1) and ran the install script without problems. I got the confirmation screen that said it worked, and the email with my login information.

    When I try to run [my blog]/wp-admin/, however, or even just view my blog, I get the following error:

    “Error 403 – Forbidden
    You tried to access a document for which you don’t have privileges.”

    I have checked the permissions for the files and they are correct. I ran wp-admin/index.php through my hosts’s CGI output monitor and received this message:

    “Result:
    – 126 CGI returned nonzero status
    /usr/bin/nice: [my site]/wp-admin/index.php: Permission denied
    STDOUT OK STDERR OK”

    Can anyone help me figure this out?

Viewing 15 replies - 1 through 15 (of 15 total)
  • govpatel

    (@govpatel)

    did you check you database see if you allowed all privileges

    Thread Starter magnus13

    (@magnus13)

    did you check you database see if you allowed all privileges

    No, I don’t really know what you mean. Do you mean a setting in phpMyAdmin..?

    Moderator t-p

    (@t-p)

    perhaps govpatel means checking your wp-config.php file settings for the database and host names.

    also, here are some threads for you to review.

    govpatel

    (@govpatel)

    I mean is when you created a database and create user you have to allow all privileges as you are admin to access database.

    Thread Starter magnus13

    (@magnus13)

    perhaps govpatel means checking your wp-config.php file settings for the database and host names.

    I double-checked the wp-config.php file and everything was correct. Just to see, I changed the password for my database and updated the wp-config.php file.

    Now all of a sudden I can access the WordPress system, make new posts, etc., but when I go to view my blog, I still get the same 403 error. Any idea why the dashboard would start working but not the actual displayed blog??

    also, here are some threads for you to review.

    I did that very search before posting here. I couldn’t find anyone who had this particular problem.

    Thread Starter magnus13

    (@magnus13)

    I mean is when you created a database and create user you have to allow all privileges as you are admin to access database.

    I don’t know how to do that. The only options I see when I make a new database are “Description” and “Password.”

    Thread Starter magnus13

    (@magnus13)

    Also, in case this helps figure it out:

    When I go to “[my blog]/wp-admin/”, I get the 403 error. However, when I go to “[my blog]/wp-admin/index.php”, I get the login screen and the WordPress dashboard functions properly.

    I tried the same thing for viewing my blog (went to “[my blog]/index.php” instead of just “[my blog]/”) but it didn’t change anything there, I still get the 403 for both URLs.

    Moderator t-p

    (@t-p)

    have you tried:

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem . If the problem goes away, activate them individually to find the culprit?

    If you don’t have access to your admin area, try deactivating them manually via FTP or phpMyAdmin.

    -switching to the default theme (Twenty Ten) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue?

    If you don’t have access to your admin area, then access your server via FTP or SFTP or whatever file management application your host provides.

    Thread Starter magnus13

    (@magnus13)

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem . If the problem goes away, activate them individually to find the culprit?

    There are no plugins activated. There aren’t any plugins even installed besides what comes with the installation package – I haven’t been able to log into the dashboard after installing until just now (see above) so there’s no way I could have any plugins…

    -switching to the default theme (Twenty Ten) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue?

    Again, haven’t been able to access WordPress before now so there is literally nothing there besides the default package.

    As of right now, the WordPress dashboard works but visiting the blog itself still returns a 403. Help!

    Moderator t-p

    (@t-p)

    -try clearing cache in your browser before viewing the blog. To clear cache in your browser, press clrl+f5 keys simultaneously.

    If that does not resolve the issue, Download WordPress again and replace your copies of everything EXCEPT the wp-config.php file and the /wp-content/ directory with fresh copies. This should replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory.

    Note that some uploaders may not overwrite files reliably, so delete the original files before replacing them.

    First backup.

    Thread Starter magnus13

    (@magnus13)

    If that does not resolve the issue, Download WordPress again and replace your copies of everything EXCEPT the wp-config.php file and the /wp-content/ directory with fresh copies. This should replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory.

    I did this – no change.

    Visiting the URLs on a completely separate computer returns the same results, also.

    Any other ideas?

    Moderator t-p

    (@t-p)

    Are you using permslinks? If yes, check if mod-rewrite is enabled.

    Thread Starter magnus13

    (@magnus13)

    Are you using permslinks? If yes, check if mod-rewrite is enabled.

    No, permalinks settings are currently to Default.

    Thread Starter magnus13

    (@magnus13)

    Well, I finally figured it out. Thanks to everyone who tried to help. The solution proved to be quite simple.

    I had to edit my .htaccess file to allow “index.php” as a valid default index page.

    My .htaccess file for the top level of my domain only had this line:
    DirectoryIndex index.html

    I just had to change it to
    DirectoryIndex index.html index.php

    And then everything worked.

    Moderator t-p

    (@t-p)

    Glad you got it working. ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘"Error 403 – Forbidden" after installing’ is closed to new replies.