Jump to content

500 Error trying to access admin login page


RobG64
 Share

Recommended Posts

Hello!

As the title says, I'm getting the error, below, when I try to access the login page (the website displays fine). This is a new install on IONOS hosting and the .htaccess file is being read (I've posted that file below as well.

I've tried commenting out the .htaccess line by line, removing the file, even tried throwing one in from one of my Wordpress sites :), but nothing helped.

I appreciate any suggestions!

Thanks - Rob

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

 

# Start ProcessWire:pwbphp (update 17)
# block all PHP files (optional fallback if root .htaccess missing)
<FilesMatch "\.(php|module|inc)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>
# End ProcessWire:pwbphp
 

Link to comment
Share on other sites

If that's all you have in your /.htaccess then there is something wrong with it.

The full PW .htaccess should look something like that: https://github.com/processwire/processwire/blob/master/htaccess.txt

So please double check that first. 

If that's fine try to change the rewrite base in your /.htaccess which is necessary sometimes.

Another thing could be wrong read/write/execute permissions on files and folders.

There are already a few guides and tips for this error even on IONOS/1&1. Try either the forum search or Google search for that.

 

Last but not least... welcome to the forum!

Link to comment
Share on other sites

 

3 hours ago, RobG64 said:

# Start ProcessWire:pwbphp (update 17)
# block all PHP files (optional fallback if root .htaccess missing)
<FilesMatch "\.(php|module|inc)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>
# End ProcessWire:pwbphp
 

This looks like the .htaccess file found from /site/. You should check the one in your websites root directory (one folder above /site/) instead.

As @wbmnfktr mentioned, similar issues have been covered here before. This one could be related (though I'm kind of guessing here). It's a bit old so there have been some changes to the root .htaccess file since then as well:

 

  • Like 1
Link to comment
Share on other sites

Thank you both - I thought the file looked wrong but that was what was in my /site folder after the installation completed.

Sorry if I was being repetitive but I didn't find any answers doing a search, in the forums, that helped.

I'll post an update after I resolve!

Link to comment
Share on other sites

1 minute ago, RobG64 said:

in my /site folder

Don't change anything in your /site/.htaccess that's fine how it looks.
Check the one in your web root. That's the one that needs to be complete and which might need some tweaks.

For a better understanding where to look:

2021-05-20_19-14.png.684e9ac82e7cf7f30dce2c76dbb3805d.png

The important files and folders are:

site, wire, .htaccess and index.php

Link to comment
Share on other sites

Mea culpa! You were both right! I thought it was the .htaccess file within the /site directory - once I realized it was the file at the root I simply uncommented out "RewriteBase /" and all is good ?

Thanks both!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...