proogammer

Member
Dec 19, 2011
23
0
51
cPanel Access Level
Root Administrator
Hi,

Some of the domains give 500 internal server error, and changing the php handler from suPHP to DSO fixes the issue. When suPHP hander is on error_log gives following error


[Thu Dec 12 14:17:49 2013] [error] [client xxx.xxx.xxx.xxx] SoftException in Application.cpp:602: Could not execute script "/home/username/public_html/index.php"
[Thu Dec 12 14:17:49 2013] [error] [client xxx.xxx.xxx.xxx] Caused by SystemException in API_Linux.cpp:465: chdir() failed: No such file or directory
[Thu Dec 12 14:17:49 2013] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php
[Thu Dec 12 14:17:49 2013] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/username/public_html/500.shtml
Any idea how to fix it?
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
Hello,

That is usually related to a permissions/ownership issue. suPHP requires that the files are owned by the user name. Permissions on php files should also be set to 644 (-rw-r-r-)

If you like, you can have one of our technical analysts investigate this for you. Just open up a ticket using the link in my signature.