Skip to:
Content
Pages
Categories
Search
Top
Bottom

New install just gets 404 errors


  • Adam Turner
    Participant

    @aturner

    Installed buddypress to my wordpress successfully
    http://hanyangowl.org/blog/

    But all the links are dead and can’t even get into the admin page.

    Not Found
    The requested URL /blog/groups/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.41 Server at hanyangowl.org Port 80

    Have done nothing unusual with the install. I am a new user. Can anyone suggest where the problem might be.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ensure that you can write to / have a .htaccess file. Navigate to the WP permalinks section of the dashboard and ensure you have selected one of the options and saved, what, if any, messages do you get after saving? if none are the links now working?


    Adam Turner
    Participant

    @aturner

    This message “If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file”

    This page is not very user friendly for such a critical step in new installations for many new users. It is not clear how to allow .htaccess permision.
    https://codex.wordpress.org/Changing_File_Permissions

    Can someone give me a simple paste this text: where? type screenshot. This link is not helpful https://codex.wordpress.org/Changing_File_Permissions

    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    It seems like using the default setting https://codex.wordpress.org/Changing_File_Permissions is actually NOT an option:
    “For core WordPress files, all should be writable only by your user account. However, if you utilize mod_rewrite Permalinks or other .htaccess features you should make sure that WordPress can also write to your /.htaccess file. “

    I saved my permalink settings from the default to month and name. But that does not seem to be enough.

    Can anyone help? This seems like it would be a common problem.


    Adam Turner
    Participant

    @aturner

    Reply to:
    hnla said 5 days, 18 hours ago:
    “Ensure that you can write to / have a .htaccess file.”
    It is not clear to me and other new users how to do this. Changing the options from the default is not enough. From this link it is not clear what we actually have to do: https://codex.wordpress.org/Changing_File_Permissions

    “Navigate to the WP permalinks section of the dashboard and ensure you have selected one of the options and saved,”
    I chose the month and name option but unlike what the codex implies this is not an option and also not sufficient.

    “what, if any, messages do you get after saving? if none are the links now working?”

    This is the message I get:
    Not Found
    The requested URL /blog/groups/ was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I am completely stuck now. I think the codex needs to be revised so it is clear how to do this. “Ensure that you can write to / have a .htaccess file.”
    The dashboard instructions when installing are not clear to me. I don’t know what to do with the code.

    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    Thanks for your time.

    You take that code and paste it into a file named .htaccess if this file does not exist create it and upload it to the site root.

    As for the WP codex page, it has the essential information, sometimes that has to be read a few times to be able to digest satisfactorily sometimes one might have to do little bits of further research if certain terms and processes are unfamiliar.

    If problems persist with file permissions you may need to be looking at your server group permissions, in case the server (generally ‘Apache’) is not a member of correct group, the server must be able to write to certain files / directories and it isn’t always simply a file or folder level permission issue.

    One other aspect to check is that you are not running PHP ‘Safe Mode’ this will cause issues and need disabling.

    P.S. Apologies but I didn’t see your initial response to my comment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New install just gets 404 errors’ is closed to new replies.
Skip to toolbar