Mail log error

When someone on the website submits the contact form the following warning appears:

Warning: mail(/var/log/php.log): failed to open stream: Permission denied in /home/httpd/vhosts/harmonyrooms.gr/private/includes/classes/Controller/Page.php on line 132

Line 132 holds the following PHP Mail function:

$sending   = mail ($to, $subject, $message->render(), $headers);

The mail function is working only I keep getting this error

I don’t have access to /var/log/php.log. What are my options?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.