I'm running XAMPP on Windows 7. error_log("test")
doesn't output to the my error_log specified in my vhost config (although the access log specified in the same config) does work.
Any ideas?
<VirtualHost *:80>
DocumentRoot "c:\Users\User\Example"
ServerName example.local
CustomLog "C:\Users\User\Program\logs\local_access.log" combined
ErrorLog "C:\Users\User\Program\logs\local_error.log"
<Directory "C:\Users\User\Program">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I don't use XAMPP a lot, but a quick look at the included php.ini file (php/php.ini) shows that
error_log
(the path to the log file, not the function used log an error) is set (to php/logs/php_error.log).Having this value set would override the default error logging behaviour, and log to the specified file instead of sending the error to mod_php/Apache.
As per the documentation: