Page 1 of 1

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

Posted: 22 Feb 2018, 23:41
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

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

Posted: 23 Feb 2018, 11:37
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?

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

Posted: 23 Feb 2018, 14:50
by seechiller
I use suphp with CL's alt-php