I'd prefer not to connect to FreePBX as root, so I made a regular user account and added it to the wheel group so it can use sudo. All that works, but there are errors when connecting:
PHP Warning: include_once(/etc/asterisk/freepbx.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/fwconsole on line 13
PHP Warning: include_once(): Failed opening '/etc/asterisk/freepbx.conf' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/bin/fwconsole on line 13
PHP Fatal error: Class 'Symfony\Component\Console\Application' not found in /var/www/html/admin/libraries/FWApplication.class.php on line 11
and it can't connect to asterisk either:
$ asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
I'd normally just fix this by changing permissions or whatever, I'd expect some of that to be undone by the update scripts, so what's the correct way to allow a new user to connect in this way?