My error log was absolutly full, so I deleted everything in it. I then noticed that the errors were no longer being written in it, so I deleted the file completely. Then I set the permissions, owner and group. And the site errors are still not being written to the error.log file. Can any one help me with this?
Actually my problem is that one of my domain's error.log is not being updated. The apache2 error.log is just fine. Is it a permissions issue? This user's error.log works: Code: # ls -l total 576 drwxr-xr-x 3 webXX_ webXX 4096 2006-12-22 00:30 2006 drwxr-xr-x 8 webXX_ webXX 4096 2007-06-02 00:30 2007 -rw-r--r-- 1 webXX_ webXX 574112 2007-06-07 07:14 error.log lrwxrwxrwx 1 webXX_ webXX 46 2007-06-02 00:30 web.log -> /home/www/www.----.com/log/2007/06/web.log This user's doesn't: Code: root@server:/home/www/webXX/log# ls -l total 8 drwxr-xr-x 5 webXX_ webXX 4096 2006-12-02 00:30 2006 drwxr-xr-x 8 webXX_ webXX 4096 2007-06-02 00:30 2007 -rw-r--r-- 1 webXX_ webXX 0 2007-06-06 10:13 error.log lrwxrwxrwx 1 webXX_ webXX 49 2007-06-02 00:30 web.log -> /home/www/www.----2.net/log/2007/06/web.log
It does not matter if one or more error logs are not working. If you deleted a logfile, you must resatrt apache afterwards. Also you created the error log as root user, so the apache webserver can not update it. Delete the error logfile and let apache recreate it.
That seems to have worked. Even though apache created the error.log as root user, it is still writing the php errors and such to the file. Thanks again.