I am using php5 with apache 2 on Ubuntu.
I set the error_log
in the php.ini to where I want php errors logged, and removed the ErrorLog
directive from the apache virtual host configuration file.
PHP creates the file and logs to that file only when I use error_log()
with the 3 argument version, adding the path to the log file as the third argument.
But, when I use error_log()
with a single string argument, it logs to the apache2 default error log.
Permissions seem to be fine.
That is the only php.ini file used according to php -i
.
Any idea what am I missing?
Thanks.