error_log location when using MultiPHP?

chrismfz

Well-Known Member
Jul 4, 2007
127
1
68
Greece
cPanel Access Level
DataCenter Provider
When using Cloudlinux php selector I know that in every folder that something went wrong there is an error_log with the errors waiting there for me to debug.

Switching recently to MultiPHP I've noticed error_log files stopped "functioning".
What I mean, for example one user had memory limits,
PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes) .... The typical 40MB wordpress limit, but this error was no-where to see.

No error_log in public_html, no /var/log/apache or /usr/local/apache/logs/error_log nothing.

I had to switch by mistake back to php selector and when I did, the memory limit error magically appeared in error_log and saved my day.

So, where are the error logs when using multiphp ?

I've checked for example php.ini of /opt/cpanel/ea-php56/root/etc/ and it seems OK
error_log = "error_log"
log_errors = On

but for some reason it didn't worked.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Can you verify which PHP handler is assigned to the account you are testing this with? Do any custom php.ini files exist for the account? Are you using PHP-FPM?

Thank you.
 

rojer_31

Member
Jul 8, 2011
9
0
51
I've got the same issue. Running latest stable version of cpanel (v66.0.25), affects sites running using php-fpm & those that are not. php handler for php54 is dso, other versions are cgi. The handler doesn't seem to make a difference in this issue.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I've got the same issue. Running latest stable version of cpanel (v66.0.25), affects sites running using php-fpm & those that are not. php handler for php54 is dso, other versions are cgi. The handler doesn't seem to make a difference in this issue.
Feel free to open a support ticket using the link in my signature so we can take a closer look.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Has this issue ever been solved? I'm running into it as well.
Can you verify if PHP-FPM is enabled for the account? If so, you will find the error_log at the following location:

/home/username/logs/domain_tld.php.error.log

Thank you.