EasyApache PHP config file not found: /etc/cpanel/ea4/php.conf

opt2bout

Well-Known Member
Nov 10, 2006
69
1
158
After the 54 current release update on our servers cronjobs are not running that run PHP scripts...we get:

EasyApache PHP config file not found: /etc/cpanel/ea4/php.conf

However, if we run the script from the command line, it runs fine.
 

DavidN.

Active Member
Mar 19, 2013
42
3
83
cPanel Access Level
DataCenter Provider
Hello,

Would you mind opening a support ticket about this? cPanel Customer Portal

My first guess is that the affected user is using jailshell (or no shell access) or is under CloudLinux' CageFS, and don't have access to that file. It could also be that there is some difference in the environment; the environment of cron jobs is substantially different from that of the command line. It could also be something totally different.

As a workaround, you might have your user execute the cron job via web request rather than from the command line, with wget -O https://domain.tld/path/to/cron.php. For security, you should configure .htaccess for the directory containing the php cron script so that it can't be accessed by IP addresses other than 127.0.0.1 or ::1.

David Nielson
 

opt2bout

Well-Known Member
Nov 10, 2006
69
1
158
Hello,

Would you mind opening a support ticket about this? cPanel Customer Portal

My first guess is that the affected user is using jailshell (or no shell access) or is under CloudLinux' CageFS, and don't have access to that file. It could also be that there is some difference in the environment; the environment of cron jobs is substantially different from that of the command line. It could also be something totally different.

As a workaround, you might have your user execute the cron job via web request rather than from the command line, with wget -O https://domain.tld/path/to/cron.php. For security, you should configure .htaccess for the directory containing the php cron script so that it can't be accessed by IP addresses other than 127.0.0.1 or ::1.

David Nielson
Okay, I'll open up a ticket. One account is a jailed shell, the others have their shell disabled. We are not using cloudlinux. These jobs worked before the 54 update.
 

chrisgrigg

Registered
Jan 20, 2013
2
0
1
cPanel Access Level
Root Administrator
This is a huge issue and has caused a big issue with billing and a lot of other problems on my server with WHMCS and my clients are having issues as well.