Jump to content

Recommended Posts

Posted (edited)

Hi there, after uploading wordpress I receive the following error:

 

Internal Server Error

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

Please contact the server administrator at "email" 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.

 

 

----------------

 

Now whatever I do, I get the same error.

Even when there's nothing uploaded on the server, it's still coming back with an error.

 

Thanks for your time.

Edited by madhodor
Posted

Did you change the file permissions to 644?

For the entire folder?

Which of the files?

 

I have to mention that even after I delete all the files and only create a blank index, same error prompts.

Posted

Any PHP file will produce that error if its permissions are not 644, even if the file is completely empty. All PHP files inside public_html need to be 644. Folders inside of public_html should be 755. The public_html folder itself should be left at its default (750).

 

When you upload files over SFTP, they default to 664, note the center 6. Change that to 644 and it'll work.

Posted (edited)

Any PHP file will produce that error if its permissions are not 644, even if the file is completely empty. All PHP files inside public_html need to be 644. Folders inside of public_html should be 755. The public_html folder itself should be left at its default (750).

 

When you upload files over SFTP, they default to 664, note the center 6. Change that to 644 and it'll work.

 

I couldn't have expected a better explanation.

Thanks so much, now it makes sense.

 

In case that I still might encounter problems, I'll be back with a reply, but I doubt it. :ph34r:

 

Edit: Works like a charm, is there any shortcut to change a massive amount of files to 644? Except multiple selection -> Right click.

Something that would dig in all folders.

Edited by madhodor
Posted

FileZilla has a recursive permissions set option if you use that client. Right click the *folder containing the files*, then pick file permissions. Specify the 644, and pick "apply to files only" to recursively change the files without affecting the directories. Then repeat for directories only to make those 755.

 

You can also use unencrypted ftp to upload the whole structure and it'd be 644 by default and not need fixing. The 664 issue is specific to SFTP.

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...