Jump to content

[Solved] 500 Internal Server Error - PHP is not interpreted


Recommended Posts

Posted

Hi there!

I'm trying to run a simple php file (see attachment), but I'm getting the following:

_____

Internal Server Error

The 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

Posted

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.

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
×
×
  • Create New...