madhodor Posted July 6, 2018 Posted July 6, 2018 (edited) Hi there, after uploading wordpress I receive the following error: Internal Server ErrorThe 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 July 6, 2018 by madhodor
madhodor Posted July 6, 2018 Author Posted July 6, 2018 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.
wolstech Posted July 6, 2018 Posted July 6, 2018 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.
madhodor Posted July 6, 2018 Author Posted July 6, 2018 (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. 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 July 6, 2018 by madhodor
wolstech Posted July 7, 2018 Posted July 7, 2018 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.
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