error_log [% homedir %]/logs/[% scrubbed_domain %].php.error.log without php-fpm

ttremain

Well-Known Member
Feb 16, 2003
287
8
243
cPanel Access Level
Root Administrator
Is it possible to get error_log location like:

[% homedir %]/logs/[% scrubbed_domain %].php.error.log


Without php-fpm ???

I've tried putting this directly into php.ini and it didn't work.
 
Last edited:

ttremain

Well-Known Member
Feb 16, 2003
287
8
243
cPanel Access Level
Root Administrator
Hey there! I see that log location on a test domain on my personal server that has PHP-FPM disabled. Is there a specific error you're looking for?
I guess what I'm trying to ask is, is there one place in a single php.ini file I can set the default php error logs to a similar dynamic location like php-fpm uses.

HOMEDIR/logs/DOMAIN.php.error.log

Without php-fpm I seem to only have the option for the filename in the current folder.

PHP-FPM automatically sets a location PER domain without having to create a file in each document_root