Jump to content

[Solved] Internal Server Error


rivas0x

Recommended Posts

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.

 

Link to comment
Share on other sites

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

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

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

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