PHP-FPM error_log location
Sorry, I'm a noob. I would like the reverse setup of what the OP describes in this post:
Right now my php error_logs are getting generated in the same directory as the PHP file that generated the error, but I would prefer having them in the following path for all domains (VirtualHosts?) hosted on the server:
/home/username/logs/domain_tld.php.error.log
The OP in the post I linked to stated that this is the default error_log location for PHP_FPM. As far as I can tell, I have php-fpm enabled (well, at least PHP-FPM service for Apache is checked of as enabled in the Service Manager in WHM, not sure if that is enough? phpinfo() shows CGI/FastCGI as the Server API).
For what it's worth, I do not have any .yaml files in /var/cpanel/userdata/user/
-
As far as I can tell, I have php-fpm enabled (well, at least PHP-FPM service for Apache is checked of as enabled in the Service Manager in WHM, not sure if that is enough? phpinfo() shows CGI/FastCGI as the Server API).
Hello, You need to enable PHP-FPM for each domain name via "WHM >> MultiPHP Manager" or use the "System PHP-FPM Status" option in MultiPHP Manager to turn it on for all accounts. Thank you.0 -
Thanks so much! That is exactly what I needed to do. 0
Please sign in to leave a comment.
Comments
2 comments