Jump to content

Recommended Posts

Posted

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.

 

Posted

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

Did you try the things listed in my previous post? The file permissions and invalid .htaccess issue are the most common reasons.

Posted

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.

Posted

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.
Posted (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 by rivas0x
Posted

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.

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