Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2007, 16:51
Hotwire Hotwire is offline
Junior Member
 
Join Date: Sep 2006
Location: Petawawa Ontario Canada
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hotwire
Default Not writing to error.log

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?
Reply With Quote
Sponsored Links
  #2  
Old 1st April 2007, 05:54
mlz mlz is offline
Senior Member
 
Join Date: Dec 2006
Posts: 189
Thanks: 16
Thanked 9 Times in 9 Posts
Default

Have you restarted apache? This needs to be done if you change or truncate it's log files.
Reply With Quote
  #3  
Old 6th June 2007, 22:03
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Hotwire
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?
Hotwire did you find the solution to this?
Reply With Quote
  #4  
Old 7th June 2007, 09:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,260 Times in 4,124 Posts
Default

Jou must restart the apache webserver as mlz posted.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 7th June 2007, 16:22
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Jou must restart the apache webserver as mlz posted.
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

Last edited by safoo; 7th June 2007 at 21:18.
Reply With Quote
  #6  
Old 7th June 2007, 17:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,260 Times in 4,124 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 7th June 2007, 21:16
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till
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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help for writing shell script chris_87 Programming/Scripts 7 4th April 2007 15:50
Need help writing simple copy script z3cka Programming/Scripts 3 26th August 2006 22:56
Need help for writing shell script erez Programming/Scripts 4 16th June 2006 14:23
ispconfig not writing out bind files chrno Installation/Configuration 1 8th May 2006 17:57
favicon.ico eating my error.log danf.1979 General 4 10th March 2006 01:37


All times are GMT +2. The time now is 06:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.