One error_log per account with lsapi like PHP-FPM
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)
-
Hello, mod_lsapi utilizes either the error_log or the sulsphp_log you can read more about these here: Troubleshooting 0 -
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. 0 -
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.0 -
Hi @MarkCanada Anything you do in this respect is custom and not something specifically related to cPanel. You might look at the following on observing multiple log files: how to merge multiple files into one single file in linux " lost saloon 0
Please sign in to leave a comment.
Comments
5 comments