One error_log per account with lsapi like PHP-FPM

MarkCanada

Member
Jan 10, 2015
20
0
1
cPanel Access Level
Root Administrator
Hi there

Switching from PHP-FPM which had all the error_log files of an account neatly tucked away into the account's /logs/ folder I am missing that under lsapi.
I don't like to have to hunt down if and where any errors occured. Just a waste of time and easy to miss something in a large program.
I know I can set it in each account's php.ini file, but is there a way to make it server wide for all existing and new accounts like PHP-FPM had it?

Thanks

EDIT - just noticed the incorrect thread title - I don't need one error_log FILE, but one error_log FOLDER (file would work too)
 

MarkCanada

Member
Jan 10, 2015
20
0
1
cPanel Access Level
Root Administrator
Hi @MarkCanada


These logs aren't combined like the php-fpm logs are. The information added was where mod_lsapi logs its data for your reference.
But I am looking at combining them. That's what I am trying to get.
php-fpm combines them nicely and supposedly setting
in htaccess: php_value error_log /home/USERNAME/logs/error_log
or php.ini: error_log = /home/USERNAME/logs/error_log
does it on an account basis (not sure if any of these works under mod_lsapi. Haven't tried since that's not what I am looking for).
I am trying to apply this somehow on a server wide setting without having to do it manually for each account.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider