Search code examples
phpapache.htaccesserror-handling

Specify a relative path to 'php_value error_log'


Rather than put the absolute path to an error_log in my .htaccess, I would like to find a way to specify it relative to the .htaccess file (or similar):

php_value error_log %{DOCUMENT_ROOT}/libs/log/error/PHP_errors.log

It would be something like I would want to do, but this doesn't seem to work. If I specify the absolute, it does work.


Solution

  • You can set it to ./path/error.log.