MESSENGERV2 - wrong permissions for /var/log/lfd_messenger.log

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
seechiller
Junior Member
Posts: 6
Joined: 22 Jan 2010, 12:55

MESSENGERV2 - wrong permissions for /var/log/lfd_messenger.log

Post by seechiller »

I've just enabled MESSENGERV2 on two servers and tested it, I get this php error: "Warning: file_put_contents(/var/log/lfd_messenger.log) [function.file-put-contents]: failed to open stream: Permission denied in /home/csf/public_html/index.php on line 69"

File permissions:
-rw------- 1 csf csf 0 Feb 18 03:51 /var/log/lfd_messenger.log

I think the problem is that php runs under the user of the domain on which the error pops up and this user can't write into the file. If I change the permissions to 777 unblocking works but the entry is NOT written into it,

Thanks
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: MESSENGERV2 - wrong permissions for /var/log/lfd_messenger.log

Post by ForumAdmin »

Can you state what PHP handler you are using as we're unable to recreate a problem with those that we have used against this?
seechiller
Junior Member
Posts: 6
Joined: 22 Jan 2010, 12:55

Re: MESSENGERV2 - wrong permissions for /var/log/lfd_messenger.log

Post by seechiller »

I use suphp with CL's alt-php
Post Reply