First of all:
- The logs for apache are set in the
- And the logs for PHP (if any) are set in the
For the case of PHP, you have to look at the
php.ini file, and look for
error_log variables, that must have these values:
log_errors = On
error_log = /tmp/php_error.log
the last value (/tmp/php_error.log) is just an example. It must be a path to a secure location where you want to store the logs.
Make sure that:
- these two lines are not commented, i.e.: they cannot have any
; before them.
- after the edit is done, restart apache to load these values.