Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

"The requested URL /admin was not found on this server"

Started by Muut Archive 10 years ago · 7 replies · 8615 views
10 years ago

Hey guys,

I'm getting "The requested URL /admin was not found on this server." after the admin plugin is installed. The default grav site is working fine before I execute bin/gpm install admin. After I execute the plugin install, when I visit the site's root, it automatically redirects to /admin and I get the error message above. When I install from the *-admin.zip file, I get the same error right from the start.

Is this a permissions issue or something else?

10 years ago

I have visited that page and checked things out...

The issue occurs even though I have my .htaccess file there, regardless of whether the RewriteBase is commented out or not. I also have AllowOverride in the Apache configuration set to All.

If I change permissions so pages aren't writeable, for example with chmod 755, and go to my site's home page, I get the grav error page telling me which pages need to be writeable. If I fix those with chmod 775, when I reload the home page I am immediately redirected to /admin which gives the error. Is the admin plugin trying to do some sort of configuration right away?

10 years ago

As a follow up, when I remove the admin plugin with bin/gpm uninstall admin, the main page loads fine. But reinstalling leads back to the same issue (immediate redirect to /admin with a 404).

10 years ago

The symptoms you are describing are classing rewrite issues. That '404 Page Not Found' document that @flaviocopes linked to solves 99% of all of these issues.

If you hop on Gitter.im tomorrow i'm sure myself or someone else can help you with your issues. We've done this a lot!

The admin is trying to get you to setup an admin user. That's all.

10 years ago

Ok, given what you said about setting up an admin user, I was able to create an admin user with bin/plugin login new-user and am able to load the home page fine. However, now browsing to /admin gives a 404 as well.

10 years ago

Yup, rewrite problems :)

You will also have a problem if you create a new page and try to navigate to it.

10 years ago

Ok, I'll take this issue over to gitter.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago