Permission denied in /var/www/html/admin/libraries/utility.functions.php

I also have a warning message from Cron to the root email which says:

From [email protected]… (Cron Daemon)
To [email protected]
Date 21/10/2016 16:52
Subject Cron <[email protected]…>

Message contents

PHP Warning: file_put_contents(/var/log/asterisk/freepbx.log): failed
to open stream:
Permission denied in /var/www/html/admin/libraries/utility.functions.php
on line

Which permissions do I need to set there?


fwconsole chown

In terminal it says:

fwconsole chown

-bash: fwconsole: command not found


Which version of FreePBX do you have?

Does “amportal chown” works?

Good luck and have a nice day!


It’s FreePBX Asterisk (Ver. 11.16.0)

“amportal chown” works

Did it fix your problem?

I will simply see what happens. No further warning emails for permission denied. Thanks for all your help