Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Horde writing to log file error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
vcihon
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2003
Posts: 107

PostPosted: Thu Apr 22, 2004 8:38 pm    Post subject: Horde writing to log file error Reply with quote

I am trying to set up Horde-IMP using the the Qmail/Horde docs on the Gentoo main site.

No issues with the install however when I log in to the webmail, I get the following error:

Code:
Warning: fopen(/var/log/apache2/horde.log): failed to open stream: Permission denied in /usr/lib/php/Log/file.php on line 202

Warning: Cannot modify header information - headers already sent by (output started at /usr/lib/php/Log/file.php:202) in /var/www/localhost/htdocs/horde/imp/redirect.php on line 106


If I navigate back one page (I thought to go back to the logon prompt), my email comes up! When I log out, it goes back to the logon prompt with a similar message on the top of the page:

Code:
Warning: fopen(/var/log/apache2/horde.log): failed to open stream: Permission denied in /usr/lib/php/Log/file.php on line 202


It appears that Horde accesses IMAP fine however is having issues with writing to the log. I checked the permisions of the /var/log/apache2/horde.log and it is the same as the other ones in that directory (root access rw, everyone else r only).

Thoughts?
Back to top
View user's profile Send private message
rwallace
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 107
Location: Phoenix, AZ US

PostPosted: Thu Apr 22, 2004 9:26 pm    Post subject: Reply with quote

Check the user your httpd damon is running as. It should be as apache. That is the user the log file should be owned by. The other logs in that directory are written to using syslog I believe. But the PEAR Logger writes directly to the file so needs to be owned by the user the web server is running as.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum