I want to set php_value
(error_log
) based on the host server. If it is a local server:
php_value error_log ./PHP_errors.log
and if it is the remote server:
php_value error_log /home/user_id/public_html/PHP_errors.log
I tried using
SetEnvIf Host "localhost"
php_value error_log ./PHP_errors.log
but it returns error. How can I do that?