Jump to content

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...