404 Not Found error
Hi lads,
accidentally, I have removed some accounts from our CPanel but luckily could restore them from backup.
Now I am getting 500 internal server error. Weird!
Once I have checked the Apache error log, I found the following error:
SoftException in Application.cpp:602: Could not execute script "/home/****/public_html/index.php"
Caused by SystemException in API_Linux.cpp:465: chdir() failed: No such file or directory
Premature end of script headers: index.php
File does not exist: /home/****/public_html/500.shtml
just for letting you know that I have changed the permission and all that stuff but no luck!
Please help as they going to kill me.
Cheers
-
just for letting you know that I have changed the permission and all that stuff but no luck!
A similar thread here: suPHP 500 Internal Error File permissions and owner of the files and directories should be checked.0 -
A similar thread here: suPHP 500 Internal Error File permissions and owner of the files and directories should be checked.
Hi Peter, Yes, I have read that thread but didn't help at all. as I have changed all the permission on PHP files. but no luck. would you please give more information to be specific that how can I rectify this issue. Thanks I have done the following as well but ... 1. logged in as root type chown -R username:username /home/USERNAME/public_html/ 2. stil as root type: chmod -R 0755 /home/USERNAME/public_html0 -
Hello, Run these: chown -R username: /home/username/public_html find /home/username/public_html/ -type f -exec chmod 644 {} \; find /home/username/public_html/ -type d -exec chmod 755 {} \; chmod 755 /home/username/public_html
Just make sure to replace username with the cPanel username If the problem persists, please:tail -f /usr/local/apache/logs/error_log
then refresh the page in your browser and provide the error0 -
Hello, Run these:
chown -R username: /home/username/public_html find /home/username/public_html/ -type f -exec chmod 644 {} \; find /home/username/public_html/ -type d -exec chmod 755 {} \; chmod 755 /home/username/public_html
Just make sure to replace username with the cPanel username If the problem persists, please:tail -f /usr/local/apache/logs/error_log
then refresh the page in your browser and provide the error
Hi Jcats, Thanks for your response. I have tried all the recommendations but still no luck: as requested please find the following: Sun Jul 16 09:11:47 2017] [error] [client 124.181] SoftException in Application.cpp:602: Could not execute script "/home/advances/public_html/index.php" [Sun Jul 16 09:11:47 2017] [error] [client 124.181] Caused by SystemException in API_Linux.cpp:465: chdir() failed: No such file or directory [Sun Jul 16 09:11:47 2017] [error] [client 124.181] Premature end of script headers: index.php [Sun Jul 16 09:11:47 2017] [error] [client 124.181] File does not exist: /home/advances/public_html/500.shtml0 -
Can you provide output: ls -lah /home/advances/public_html/0
Please sign in to leave a comment.
Comments
5 comments