Why no errors in my error.log
Posted: 08. January 2015 11:51
Please help me solve this mystery.
XAMMP on Windows 7. Installed on C: with all "Web" data on D: otherwise pretty normal.
Apache, MySQL and PHP running (as far as I can tell) without a problem
Virtual host defined thus:
browsers (Firefox/IE/Safari) open web page myweb.localhost/index.php and display it correctly (heavy on php code and dynamic database)
All images and files correctly logged in the access.log (conclude that the above .conf is functioning correctly)
replace index.php with simple
The browser correctly displays:
Parse error: syntax error, unexpected ';' in D:\WEB\diabdata_info\htdocs\test1.php on line 2
However, the error.log (which does exist) remains stubbornly empty.
Is there some setting in the default install that is preventing all errors being written to the error.log file?
Oh, and just for the record I have checked in C:/XAMPP/apache/logs/error.log the above php error was not written there. The only entries in that error log are the same at apache startup each day (meaningless to me)
XAMMP on Windows 7. Installed on C: with all "Web" data on D: otherwise pretty normal.
Apache, MySQL and PHP running (as far as I can tell) without a problem
Virtual host defined thus:
- Code: Select all
<VirtualHost *:80>
ServerName myweb.localhost
DocumentRoot "D:/WEB/myweb_info/htdocs"
ServerAlias www.myweb.localhost www.myweb_info.localhost www.myweb_uk.localhost www.myweb_co_uk,localhost
ErrorLog "D:/WEB/myweb_info/htdocs/logs/error.log"
CustomLog "D:/WEB/myweb_info/htdocs/logs/access.log" common
ServerAdmin admin@myweb.info
</VirtualHost>
#
<Directory D:/WEB/myweb_info/htdocs>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
browsers (Firefox/IE/Safari) open web page myweb.localhost/index.php and display it correctly (heavy on php code and dynamic database)
All images and files correctly logged in the access.log (conclude that the above .conf is functioning correctly)
replace index.php with simple
- Code: Select all
<?php
echo ("hello";
?>
The browser correctly displays:
Parse error: syntax error, unexpected ';' in D:\WEB\diabdata_info\htdocs\test1.php on line 2
However, the error.log (which does exist) remains stubbornly empty.
Is there some setting in the default install that is preventing all errors being written to the error.log file?
Oh, and just for the record I have checked in C:/XAMPP/apache/logs/error.log the above php error was not written there. The only entries in that error log are the same at apache startup each day (meaningless to me)
- Code: Select all
[Thu Jan 08 09:49:21.284584 2015] [ssl:warn] [pid 1704:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 08 09:49:24.030189 2015] [ssl:warn] [pid 1704:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 08 09:49:29.802199 2015] [mpm_winnt:notice] [pid 1704:tid 516] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Thu Jan 08 09:49:29.802199 2015] [mpm_winnt:notice] [pid 1704:tid 516] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Thu Jan 08 09:49:29.802199 2015] [core:notice] [pid 1704:tid 516] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/XAMPP/apache'
[Thu Jan 08 09:49:30.114200 2015] [mpm_winnt:notice] [pid 1704:tid 516] AH00418: Parent: Created child process 1960
[Thu Jan 08 09:49:32.142203 2015] [ssl:warn] [pid 1960:tid 412] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 08 09:49:32.766204 2015] [ssl:warn] [pid 1960:tid 412] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 08 09:49:33.015805 2015] [mpm_winnt:notice] [pid 1960:tid 412] AH00354: Child: Starting 150 worker threads.