web analytics


Error log fails to get update in Virtualmin

Tags: log file update failurerepquotaVirtualmin

Published on: October 5, 2014 by Sachu Sugunan

Error log fails to get update in Virtualmin



Let us consider the case with domain my-domain.com. The domain shows a blank page while accessing .

To investigate the issue let us check the apache error log via terminal.

Firstly check the error log path of my-domain.com in http configuration file.

vi /etc/http/conf/httpd.conf
 <VirtualHost xxx.76.212.106:80>
 SuexecUserGroup "#518" "#505"
 ServerName my-domain.com
 ServerAlias www.my-domain.com
 ServerAlias webmail.my-domain.com
 ServerAlias admin.my-domain.com
 DocumentRoot /home/my-domain/public_html
 ErrorLog /var/log/virtualmin/my-domain.com_error_log
 CustomLog /var/log/virtualmin/my-domain.com_access_log combined
 ScriptAlias /cgi-bin/ /home/my-domain/cgi-bin/
 ScriptAlias /awstats/ /home/my-domain/cgi-bin/
 DirectoryIndex index.html index.htm index.php index.php4 index.php5
 Directory /home/my-domain/public_html
 Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCG
 allow from all
 AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
 AddHandler fcgid-script .php
 AddHandler fcgid-script .php5
 FCGIWrapper /home/my-domain/public_html/fcgi-bin/php5.fcgi .php
 FCGIWrapper /home/my-domain/public_html/fcgi-bin/php5.fcgi .php5
 <Directory /home/my-domain/cgi-bin

The Virtualmin error log path is /var/log/virtualmin/my-domain.com_error_log

Now let us check the Virtualmin error log 

# tail -f /var/log/virtualmin/my-domain.com_error_log
 Mon Jan 27 05:56:33 2014] [alert] [client xxx.92.64.16] /home/my-domain/public_html/.htaccess: Option All not allowed here
 Mon Jan 27 05:56:47 2014 [alert] [client xxx.92.64.16] /home/my-domain/public_html/.htaccess: Option All not allowed here</span></pre>

The server time being displayed is

$ date
 Mon Jan 27 10:57:44

If you compare the time shown in the logs with the current one, it is evident that the error log is not getting updated.

The most possible cause for this issue is that the quota for the account may be full. Let us check the quota.  For the ease of convenience I am extracting only the relevant entries here

# repquota -a
 my-domain +- 85289512 1048576 1048576 6days 45967 0 0

The Quota for my-domain is full. So you need to edit the quota.

# edquota my-domain
Disk quotas for user my-domain (uid 518):
 Filesystem blocks soft hard inodes soft hard
 /dev/xvda1 85289704 0 0 45976 0

The quota has been increased for the account my-domain.com. Now let us check whether error log is writing by accessing my-domain.com again.

 [alert] [client xx.17.17.141] /home/my-domain/public_html/img/.htaccess: Option All not allowed here
[Mon Jan 27 11:21:51 2014 [alert] [client xx.17.17.141] /home/my-domain/public_html/img/.htaccess: Option All not allowed here

Now check the time in the logs, it shows the current time. The error log started to update 🙂

Category : Linux, Troubleshooting

Sachu Sugunan

Sachu Sugunan

You may also read:


Add new commentSIGN IN

Let's Connect

Get new updates


$0.000 items