VirtualMin is not logging php errors, log file is totally blank.

Operating system Ubuntu Linux 10.10
Webmin version 1.530
Virtualmin version 3.84.gpl GPL

Hello All,

It seems like my server is not capturing php errors to the error.log file. I look in this folder and the file is totally blank:
lrwxrwxrwx 1 root root 45 2011-07-20 14:38 error_log -> /var/log/virtualmin/servicequote.us_error_log

What is the problem? Why is my server not logging any errors? I know errors do occur since I intentionally wrote bad php code to make it return a 500 error.

Howdy,

Hmm… well, the distro version you’re using isn’t one Virtualmin’s supported distros, and the Virtualmin version on there is 2 years old… so it’s possible something odd is going on.

However, it’s the job of Apache to handle logging, so it may be a matter of looking at the log definitions within Apache for that domain to see where things are being logged to.

You can see the Apache config for that particular domain in /etc/apache2/sites-enabled/domain.tld.conf. In there, what is ErrorLog set to?

Also, are there any errors showing up in the system error log in /var/log/apache2/error_log?

-Eric

this is a tail from /var/log/apache2/error_log:

[Sun May 05 06:29:03 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:03 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:08 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:08 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:13 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:13 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:18 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:19 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:24 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:24 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:29 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:29 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:34 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:34 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:39 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:39 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:44 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:45 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:50 2013] [notice] Graceful restart requested, doing restart
[Sun May 05 06:29:50 2013] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured – resuming normal operations
[Sun May 05 06:29:55 2013] [notice] Graceful restart requested, doing restart

this is the cat of the domain.tld.conf file

li256-19 /etc/apache2/sites-enabled: cat dentalcenterofredondobeach.com.conf
<VirtualHost :80>
ServerName dentalcenterofredondobeach.com
ServerAlias www.dentalcenterofredondobeach.com
ServerAlias webmail.dentalcenterofredondobeach.com
ServerAlias admin.dentalcenterofredondobeach.com
DocumentRoot /home/dentalcenterofredondobeach/public_html
ErrorLog /var/log/virtualmin/dentalcenterofredondobeach.com_error_log
CustomLog /var/log/virtualmin/dentalcenterofredondobeach.com_access_log combined
ScriptAlias /cgi-bin/ /home/dentalcenterofredondobeach/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/dentalcenterofredondobeach/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
AllowOverride All

<Directory /home/dentalcenterofredondobeach/cgi-bin>
allow from all

RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.dentalcenterofredondobeach.com
RewriteRule ^(.
) http://dentalcenterofredondobeach.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.dentalcenterofredondobeach.com
RewriteRule ^(.*) https://dentalcenterofredondobeach.com:10000/ [R]

li256-19 /etc/apache2/sites-enabled:

What should I do?

Hmm, so is the website otherwise working properly? The issue is just that the logs aren’t showing up? Or is the website also not correct?

-Eric

yes, site is working properly. Everything works just fine except I see no logs recorded.