rivas0x Posted December 1, 2017 Posted December 1, 2017 The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@tsj.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the 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.
wolstech Posted December 1, 2017 Posted December 1, 2017 Well, it's hard to know what caused that one because there's about 1000 reasons for that message and you didn't provide a specific page that's erroring. The most common reasons are:PHP files with their permissions set to 664 (the default when uploaded over SFTP). They need to be 644 to work (note that second number...Apache and suphp do not like PHP files being writable by the group).Invalid .htaccess files. Rename it so its ignored and try visiting your site again.Python files with invalid shebang lines or DOS line endings. Fixes vary, if you're using Python, let us know.Server is overloaded. Try again later.
rivas0x Posted December 1, 2017 Author Posted December 1, 2017 It's the index.php page, i just put my proyect in the public_html folder, and that come out...
wolstech Posted December 1, 2017 Posted December 1, 2017 Did you try the things listed in my previous post? The file permissions and invalid .htaccess issue are the most common reasons.
rivas0x Posted December 1, 2017 Author Posted December 1, 2017 Did you try the things listed in my previous post? The file permissions and invalid .htaccess issue are the most common reasons.My project doesn't have .htaccess files so, I don't know what I should do.
wolstech Posted December 1, 2017 Posted December 1, 2017 Then that’s not the problem. Did you check the file permissions of your index.php to be sure they’re 644?
Krydos Posted December 1, 2017 Posted December 1, 2017 PHP files with their permissions set to 664 (the default when uploaded over SFTP). They need to be 644 to work (note that second number...Apache and suphp do not like PHP files being writable by the group).Ding ding ding! We have a winner. root@johnny [/home/rivas0x/public_html]# ls -la total 28 drwxr-x---. 3 rivas0x nobody 4096 Dec 1 09:40 . drwx--x--x. 12 rivas0x rivas0x 4096 Nov 30 17:01 .. -rw-rw-r--. 1 rivas0x rivas0x 7245 Dec 1 11:01 index.php ^ \----- This needs to be changed to 644 not 664.
rivas0x Posted December 2, 2017 Author Posted December 2, 2017 (edited) Then that’s not the problem. Did you check the file permissions of your index.php to be sure they’re 644? Yes it's is 644: https://prnt.sc/hhxqhk PHP files with their permissions set to 664 (the default when uploaded over SFTP). They need to be 644 to work (note that second number...Apache and suphp do not like PHP files being writable by the group).Ding ding ding! We have a winner. root@johnny [/home/rivas0x/public_html]# ls -la total 28 drwxr-x---. 3 rivas0x nobody 4096 Dec 1 09:40 . drwx--x--x. 12 rivas0x rivas0x 4096 Nov 30 17:01 .. -rw-rw-r--. 1 rivas0x rivas0x 7245 Dec 1 11:01 index.php ^ \----- This needs to be changed to 644 not 664. Thank you very much, that was the problem, I didn't see it. But now I'm between 2 problems, or 500 or 403. http://prntscr.com/hhycsm Edited December 2, 2017 by rivas0x
Krydos Posted December 2, 2017 Posted December 2, 2017 Permissions again. root@johnny [/home/rivas0x/public_html]# ls -la total 28 drwxr-x---. 3 rivas0x nobody 4096 Dec 1 09:40 . drwx--x--x. 12 rivas0x rivas0x 4096 Nov 30 17:01 .. -rw-r--r--. 1 rivas0x rivas0x 7245 Dec 1 11:01 index.php drwxr--rwx. 25 rivas0x rivas0x 4096 Dec 1 15:18 page Directories should be 755, not 707 like you have.
Luigi123 Posted December 2, 2017 Posted December 2, 2017 Glad it's working. Let us know if you have any questions.
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