SOLVED One of our customer face Could not execute script "/home/lespriva/public_html/index.php"

ridhoswasta

Registered
Oct 3, 2019
2
0
1
Indonesia
cPanel Access Level
DataCenter Provider
Hello, I am a system administrator in one of webhosting company.

One of our customer face this issue when I try to check apache log :

[Sun Nov 03 17:07:20.353601 2019] [:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] SoftException in Application.cpp:624: Could not execute script "/home/lespriva/public_html/index.php"
[Sun Nov 03 17:07:20.355152 2019] [:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] Caused by SystemException in API_Linux.cpp:479: chdir() failed: No such file or directory
[Sun Nov 03 17:07:20.368208 2019] [core:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] End of script output before headers: index.php
[Sun Nov 03 17:07:20.353601 2019] [:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] SoftException in Application.cpp:624: Could not execute script "/home/lespriva/public_html/index.php"
[Sun Nov 03 17:07:20.355152 2019] [:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] Caused by SystemException in API_Linux.cpp:479: chdir() failed: No such file or directory
[Sun Nov 03 17:07:20.368208 2019] [core:error] [pid 303920:tid 47038315312896] [client 103.6.196.115:62047] End of script output before headers: index.php

I already change the file permission , but it still keep this issue.
I am frustrated since my manager can not be called.


Could someone help me?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,739
302
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
It looks to me like it's the code in the index.php that is causing the issue. Error around the chdir portion implies that something in the code it trying to change into a non existent directory.

If index.php is calling other files as on includes the actual error could be in a different file.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,254
313
Houston
This is almost always a permissions issue with public_html or the index.php file you'd need to go through and ensure everything has standard permissions - files:644 folders:755
 
  • Like
Reactions: Spirogg

ridhoswasta

Registered
Oct 3, 2019
2
0
1
Indonesia
cPanel Access Level
DataCenter Provider
Hello thank you guys for all of your replies. I have fixed this issue. The issue is regarding to public_html permission, I already tried to change permission to 755 for public_html but seems there was a glitch so the folder permission became like "drwSr-Sr-- " then I use this command "chmod ug-s " and it worked.

THank you!