genesis Posted January 23, 2018 Posted January 23, 2018 Hi there!I'm trying to run a simple php file (see attachment), but I'm getting the following:_____ Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at webmaster@mojica.heliohost.org 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._____ Please help.index.php
genesis Posted January 23, 2018 Author Posted January 23, 2018 Is your php file permissions 644? No, it wasn't... Just updated and it's OK.Shame on me. Thank you!
Bailey Posted January 23, 2018 Posted January 23, 2018 For future reference @genesis, most 500 errors are caused by either file permissions or .htaccess errors. If you upload over SFTP, the file permissions are changed from 644 to something else. You must change these back to 644. After you have done this, if you still get a 500 error, rename your .htaccess to something else. If the website then works, you know it's a problem with your .htaccess.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now