SSH login warning/fatal error

Hello,

Running the Beta.

[root@pbx admininstrator]# cat /etc/schmooze/pbx-version
10.13.66-6

[root@pbx admininstrator]# fwconsole ma list
No repos specified, using: [commercial,standard] from last GUI settings

+----------------------+--------------+----------+
| Module               | Version      | Status   |
+----------------------+--------------+----------+
| accountcodepreserve  | 13.0.2       | Enabled  |
| announcement         | 13.0.4       | Enabled  |
| areminder            | 13.0.4       | Enabled  |
| arimanager           | 13.0.3       | Enabled  |
| asterisk-cli         | 13.0.3       | Enabled  |
| asteriskinfo         | 13.0.6       | Enabled  |
| backup               | 13.0.16      | Enabled  |
| blacklist            | 13.0.7       | Enabled  |
| bria                 | 13.0.11      | Enabled  |
| broadcast            | 13.0.7       | Enabled  |
| builtin              |              | Enabled  |
| bulkdids             | 13.0.2       | Enabled  |
| bulkextensions       | 13.0.2       | Enabled  |
| bulkhandler          | 13.0.11      | Enabled  |
| callback             | 13.0.1alpha1 | Enabled  |
| callerid             | 13.0.2       | Enabled  |
| callforward          | 13.0.4       | Enabled  |
| calllimit            | 13.0.3       | Enabled  |
| callrecording        | 13.0.6       | Enabled  |
| callwaiting          | 13.0.1       | Enabled  |
| campon               | 13.0.3       | Enabled  |
| cdr                  | 13.0.18      | Enabled  |
| cel                  | 13.0.10      | Enabled  |
| certman              | 13.0.12      | Enabled  |
| cidlookup            | 13.0.6       | Enabled  |
| conferences          | 13.0.11      | Enabled  |
| conferencespro       | 13.0.5       | Enabled  |
| contactmanager       | 13.0.11      | Enabled  |
| core                 | 13.0.9       | Enabled  |
| cos                  | 13.0.8       | Enabled  |
| customappsreg        | 13.0.4.4     | Enabled  |
| cxpanel              | 4.1.10       | Enabled  |
| dahdiconfig          | 13.0.4       | Enabled  |
| dashboard            | 13.0.15.2    | Enabled  |
| daynight             | 13.0.6       | Enabled  |
| dictate              | 13.0.2       | Enabled  |
| digium_phones        | 2.11.2.9     | Enabled  |
| digiumaddoninstaller | 2.11.0.12    | Enabled  |
| directory            | 13.0.7       | Enabled  |
| disa                 | 13.0.5       | Enabled  |
| donotdisturb         | 13.0.3       | Enabled  |
| endpoint             | 13.0.0.14    | Enabled  |
| extensionroutes      | 13.0.4.1     | Enabled  |
| fax                  | 13.0.22      | Enabled  |
| faxpro               | 13.0.24      | Enabled  |
| featurecodeadmin     | 13.0.5       | Enabled  |
| findmefollow         | 13.0.20      | Enabled  |
| firewall             | 13.0.4       | Enabled  |
| framework            | 13.0.10      | Enabled  |
| freepbx_ha           | 13.0.5       | Enabled  |
| fw_ari               | 12.0.7       | Disabled |
| fw_langpacks         | 12.0.7       | Enabled  |
| hotelwakeup          | 13.0.7       | Enabled  |
| iaxsettings          | 13.0.3       | Enabled  |
| infoservices         | 13.0.1       | Enabled  |
| irc                  | 2.11.0.5     | Enabled  |
| ivr                  | 13.0.9       | Enabled  |
| javassh              | 2.11.2       | Enabled  |
| languages            | 13.0.5       | Enabled  |
| logfiles             | 13.0.5       | Enabled  |
| manager              | 13.0.2.5     | Enabled  |
| miscapps             | 13.0.2.1     | Enabled  |
| miscdests            | 13.0.2       | Enabled  |
| music                | 13.0.8       | Enabled  |
| outroutemsg          | 13.0.2       | Enabled  |
| paging               | 13.0.9       | Enabled  |
| pagingpro            | 13.0.8       | Enabled  |
| parking              | 13.0.8       | Enabled  |
| parkpro              | 13.0.8       | Enabled  |
| pbdirectory          | 2.11.0.3     | Enabled  |
| phonebook            | 13.0.5.2     | Enabled  |
| phpinfo              | 13.0.2       | Enabled  |
| pinsets              | 13.0.4       | Enabled  |
| pinsetspro           | 13.0.3       | Enabled  |
| presencestate        | 13.0.4       | Enabled  |
| printextensions      | 13.0.3       | Enabled  |
| queueprio            | 13.0.2       | Enabled  |
| queues               | 13.0.10      | Enabled  |
| qxact_reports        | 13.0.5       | Enabled  |
| recording_report     | 13.0.9       | Enabled  |
| recordings           | 13.0.4       | Enabled  |
| restapi              | 13.0.13      | Enabled  |
| restapps             | 13.0.3.4     | Enabled  |
| restart              | 13.0.3       | Enabled  |
| ringgroups           | 13.0.7       | Enabled  |
| setcid               | 13.0.4       | Enabled  |
| sipsettings          | 13.0.14.5    | Enabled  |
| sipstation           | 13.0.13.2    | Enabled  |
| sms                  | 13.0.2       | Enabled  |
| sng_mcu              | 13.0.2       | Enabled  |
| soundlang            | 13.0.5       | Enabled  |
| speeddial            | 2.11.0.3     | Enabled  |
| superfecta           | 13.0.3.2     | Enabled  |
| sysadmin             | 13.0.26      | Enabled  |
| timeconditions       | 13.0.11.1    | Enabled  |
| tts                  | 13.0.5       | Enabled  |
| ttsengines           | 13.0.4.1     | Enabled  |
| ucp                  | 13.0.10      | Enabled  |
| ucpnode              | 13.0.9       | Enabled  |
| userman              | 13.0.34      | Enabled  |
| vmblast              | 13.0.5       | Enabled  |
| vmnotify             | 13.0.7       | Enabled  |
| voicemail            | 13.0.22      | Enabled  |
| voicemail_report     | 13.0.3       | Enabled  |
| vqplus               | 13.0.11      | Enabled  |
| weakpasswords        | 13.0.1alpha1 | Enabled  |
| webcallback          | 13.0.6       | Enabled  |
| webrtc               | 13.0.5       | Enabled  |
| xmpp                 | 13.0.3       | Enabled  |
+----------------------+--------------+----------+

If I SSH into my server using my administrator login, I get the following messages;

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

I don’t allow SSH as root, so I can’t tell if it happens when doing that. But if I su to root, I don’t see any warning.

Could this be something wrong or just a permissions issue for the administrator user?

That shouldn’t be a file - just delete /etc/asterisk/freepbx.conf, as it should be using /etc/freepbx.conf

Look at the warning/error messages again. It is complaining that it failed to open the /etc/asterisk/freepbx.conf file. It fails because there already is NO such file in that location.

The error appears to be coming from /var/lib/asterisk/bin/fwconsole (line 13) which is referencing freepbx.conf at the wrong location.

There is also the fatal error under Symfony which I’m not sure what that relates to.

Not, that’s not what it says.

include_once(/etc/asterisk/freepbx.conf): failed to open stream: Permission denied

Permission denied. Not ‘file not found’. Permission denied.

I can assure you 100% that there is NO freepbx.conf file at that location. Yet the warning still shows.
According to you it should NOT be in /etc/asterisk/freepbx.conf. And it isn’t…

[root@pbx administator]# ls -al /etc/asterisk/
total 488
drwxr-x---.  3 asterisk asterisk  12288 Nov  4 13:58 .
drwxr-xr-x. 93 root     root       4096 Nov  4 21:49 ..
-rw-r-----.  1 asterisk asterisk    665 Nov  5 16:08 ari_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 ari_additional_custom.conf
lrwxrwxrwx.  1 asterisk asterisk     51 Sep 14 21:08 ari.conf -> /var/www/html/admin/modules/arimanager/etc/ari.conf
-rw-r-----.  1 asterisk asterisk    684 Nov  5 16:08 ari_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 ari_general_custom.conf
-rw-r-----.  1 asterisk asterisk    337 Sep 14 21:00 asterisk.conf
lrwxrwxrwx.  1 asterisk asterisk     48 Sep 14 21:08 ccss.conf -> /var/www/html/admin/modules/campon/etc/ccss.conf
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 ccss_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 ccss_general_custom.conf
-rw-r-----.  1 asterisk asterisk     91 Sep 14 21:13 cdr_adaptive_odbc.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 cdr.conf
-rw-r-----.  1 asterisk asterisk    699 Sep 14 21:08 cdr_mysql.conf
-rw-r-----.  1 asterisk asterisk    699 Sep 14 21:08 cdr_mysql.conf.bak
lrwxrwxrwx   1 asterisk asterisk     44 Oct 28 17:56 cel.conf -> /var/www/html/admin/modules/cel/etc/cel.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:13 cel_custom_post.conf
-rw-r-----.  1 asterisk asterisk    783 Nov  5 16:08 cel_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:13 cel_general_custom.conf
lrwxrwxrwx   1 asterisk asterisk     49 Oct 28 17:56 cel_odbc.conf -> /var/www/html/admin/modules/cel/etc/cel_odbc.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 cel_odbc_custom.conf
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 chan_dahdi_additional.conf
-rw-r-----.  1 asterisk asterisk    766 Feb 27  2011 chan_dahdi.conf
-rw-r-----.  1 asterisk asterisk    715 Sep 14 21:00 chan_dahdi.conf.template
-rw-r-----.  1 asterisk asterisk   2254 Nov  5 16:08 confbridge_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     59 Sep 14 21:08 confbridge.conf -> /var/www/html/admin/modules/conferences/etc/confbridge.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 confbridge_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 dahdi-channels.conf
-rw-r-----.  1 asterisk asterisk     50 Sep 14 21:00 enum.conf
-rw-r-----.  1 asterisk asterisk 199560 Nov  5 16:08 extensions_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     52 Sep 14 21:08 extensions.conf -> /var/www/html/admin/modules/core/etc/extensions.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 extensions_custom.conf
-rw-r-----.  1 asterisk asterisk   2671 Sep 14 21:00 extensions_custom.conf.sample
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 extensions_override_freepbx.conf
-rw-r-----.  1 asterisk asterisk    708 Nov  5 16:08 features_applicationmap_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 features_applicationmap_custom.conf
lrwxrwxrwx.  1 asterisk asterisk     50 Sep 14 21:08 features.conf -> /var/www/html/admin/modules/core/etc/features.conf
-rw-r-----.  1 asterisk asterisk    701 Nov  5 16:08 features_featuremap_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 features_featuremap_custom.conf
-rw-r-----.  1 asterisk asterisk    679 Nov  5 16:08 features_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 features_general_custom.conf
-rw-r-----.  1 asterisk asterisk   1494 Sep 14 21:00 freepbx_featurecodes.conf.template
-rw-r-----.  1 asterisk asterisk    965 Sep 14 21:00 freepbx_menu.conf.template
-rw-r-----.  1 asterisk asterisk    730 Sep 14 21:00 freepbx_module_admin.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 globals_custom.conf
-rw-r-----.  1 asterisk asterisk    741 Nov  5 16:08 http_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     46 Sep 14 21:08 http.conf -> /var/www/html/admin/modules/core/etc/http.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 http_custom.conf
-rw-r-----.  1 asterisk asterisk    889 Nov  5 16:08 iax_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Sep 14 21:08 iax.conf -> /var/www/html/admin/modules/core/etc/iax.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 iax_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 iax_custom_post.conf
-rw-r-----.  1 asterisk asterisk    842 Nov  5 16:08 iax_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 iax_general_custom.conf
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 iax_registrations.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 iax_registrations_custom.conf
-rw-r-----.  1 asterisk asterisk    841 Nov  5 16:08 indications.conf
drwxr-x---.  2 asterisk asterisk   4096 Sep 14 21:05 keys
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 localprefixes.conf
lrwxrwxrwx   1 asterisk asterisk     52 Sep 14 21:14 logger.conf -> /var/www/html/admin/modules/logfiles/etc/logger.conf
-rw-r-----.  1 asterisk asterisk    735 Nov  5 16:08 logger_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 logger_general_custom.conf
-rw-r-----.  1 asterisk asterisk    789 Nov  5 16:08 logger_logfiles_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 logger_logfiles_custom.conf
-rw-r-----.  1 asterisk asterisk    960 Nov  5 16:08 manager_additional.conf
-rw-r-----   1 asterisk asterisk    947 Oct 14 10:30 manager.conf
-rw-r-----.  1 asterisk asterisk    951 Sep 14 21:01 manager.conf.12.0.1.bak
-rw-r-----   1 asterisk asterisk    947 Oct 14 10:30 manager.conf.bak
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 manager_custom.conf
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 meetme_additional.conf
-rw-r-----.  1 asterisk asterisk    126 Sep 14 21:00 meetme.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 meetme_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 meetme_general_custom.conf
-rw-r-----.  1 asterisk asterisk   1774 Sep 14 21:00 modem.conf
-rw-r-----.  1 asterisk asterisk   2407 Nov  5 16:08 modules.conf
-rw-r-----.  1 asterisk asterisk    760 Nov  5 16:08 musiconhold_additional.conf
-rw-r-----.  1 asterisk asterisk    208 Sep 14 21:00 musiconhold.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 musiconhold_custom.conf
-rw-r-----.  1 asterisk asterisk   1418 Sep 14 21:00 phone.conf
-rw-r-----.  1 asterisk asterisk     90 Sep 14 21:00 phpagi.conf
-rw-r-----.  1 asterisk asterisk    696 Nov  5 16:08 pjsip.aor.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.aor_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.aor_custom_post.conf
-rw-r-----.  1 asterisk asterisk    697 Nov  5 16:08 pjsip.auth.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.auth_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.auth_custom_post.conf
-rw-r-----.  1 asterisk asterisk   1161 Nov  5 16:08 pjsip.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip_custom.conf
-rw-r-----.  1 asterisk asterisk    701 Nov  5 16:08 pjsip.endpoint.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.endpoint_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.endpoint_custom_post.conf
-rw-r-----.  1 asterisk asterisk    701 Nov  5 16:08 pjsip.identify.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.identify_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.identify_custom_post.conf
-rw-r-----.  1 asterisk asterisk    733 Nov  5 16:08 pjsip_notify.conf
-rw-r-----.  1 asterisk asterisk    705 Nov  5 16:08 pjsip.registration.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.registration_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.registration_custom_post.conf
-rw-r-----.  1 asterisk asterisk    891 Nov  5 16:08 pjsip.transports.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.transports_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 pjsip.transports_custom_post.conf
-rw-r-----.  1 asterisk asterisk     81 Sep 14 21:00 privacy.conf
-rw-r-----   1 asterisk asterisk   1021 Oct  8 13:51 prosody_additional.conf
-rw-r-----   1 asterisk asterisk      0 Sep 14 21:24 queuerules_additional.conf
lrwxrwxrwx   1 asterisk asterisk     54 Sep 14 21:24 queuerules.conf -> /var/www/html/admin/modules/vqplus/etc/queuerules.conf
-rw-r-----   1 asterisk asterisk      0 Sep 14 21:24 queuerules_custom.conf
-rw-r-----.  1 asterisk asterisk   1235 Nov  5 16:08 queues_additional.conf
-rw-r-----.  1 asterisk asterisk    522 Sep 14 21:00 queues.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 queues_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 queues_custom_general.conf
-rw-r-----.  1 asterisk asterisk    743 Nov  5 16:08 queues_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:01 queues_post_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_digium_phone_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_digium_phone_applications.conf
lrwxrwxrwx.  1 asterisk asterisk     67 Sep 14 21:08 res_digium_phone.conf -> /var/www/html/admin/modules/digium_phones/etc/res_digium_phone.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_digium_phone_devices.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_digium_phone_firmware.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_digium_phone_general.conf
-rw-r-----   1 asterisk asterisk    733 Nov  5 16:08 res_fax.conf
-rw-r-----   1 asterisk asterisk      0 Sep 14 21:14 res_fax_custom.conf
-rw-r-----   1 asterisk asterisk    720 Nov  5 16:08 res_fax_digium.conf
-rw-r-----   1 asterisk asterisk      0 Sep 14 21:14 res_fax_digium_custom.conf
-rw-r-----.  1 asterisk asterisk    802 Nov  5 16:08 res_odbc_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     50 Sep 14 21:08 res_odbc.conf -> /var/www/html/admin/modules/core/etc/res_odbc.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 res_odbc_custom.conf
-rw-r-----   1 asterisk asterisk    906 Nov  5 16:08 res_parking.conf
-rw-r-----.  1 asterisk asterisk    735 Nov  5 16:08 rtp_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Sep 14 21:08 rtp.conf -> /var/www/html/admin/modules/core/etc/rtp.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 rtp_custom.conf
-rw-r-----.  1 asterisk asterisk   4028 Nov  5 16:08 sip_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Sep 14 21:08 sip.conf -> /var/www/html/admin/modules/core/etc/sip.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_custom_post.conf
-rw-r-----.  1 asterisk asterisk   1465 Nov  5 16:08 sip_general_additional.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_general_custom.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_nat.conf
-rw-r-----.  1 asterisk asterisk   1798 Nov  5 16:08 sip_notify_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     52 Sep 14 21:08 sip_notify.conf -> /var/www/html/admin/modules/core/etc/sip_notify.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_notify_custom.conf
-rw-r-----.  1 asterisk asterisk    664 Nov  5 16:08 sip_registrations.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 sip_registrations_custom.conf
lrwxrwxrwx   1 asterisk asterisk     47 Sep 14 21:14 udptl.conf -> /var/www/html/admin/modules/core/etc/udptl.conf
-rw-r-----.  1 asterisk asterisk      0 Sep 14 21:08 udptl_custom.conf
-rw-r-----.  1 asterisk asterisk     16 Sep 14 21:00 version
-rw-r--r--   1 asterisk asterisk      0 Nov  4 13:58 vm_general.inc
-rw-r-----   1 asterisk asterisk   1391 Nov  4 20:42 voicemail.conf
-rw-r-----.  1 asterisk asterisk     67 Sep 14 21:00 voicemail.conf.template
-rw-r-----   1 asterisk asterisk    246 Oct  8 13:02 xmpp.conf
-rw-r-----.  1 asterisk asterisk    699 Sep 14 21:00 zapata.conf.templat

Ok, wrong choice of words, but the fact is there is no file in that location for it to have a “permission issue”.It says;
PHP Warning: include_once(/etc/asterisk/freepbx.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/fwconsole on line 13

It is a PHP warning on line 13 of the fwconsole PHP file, which if you look at references the WRONG location if you are correct and freepbx.conf shouldn’t be in /etc/asterisk/.

[root@pbx administrator]# vim /var/lib/asterisk/bin/fwconsole

#!/usr/bin/env php
<?php
$options = getopt("", array("fix_zend"));
/* Optional. It’s better to do it in the php.ini file */
date_default_timezone_set('America/Los_Angeles');

//Bootstrap to give access to FreePBX internals
$bootstrap_settings['freepbx_auth'] = false;
$bootstrap_settings['fix_zend'] = isset($options['fix_zend']);
//Wrapped in a global try catch incase of zend errors
try {
        if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {
                include_once('/etc/asterisk/freepbx.conf');
        }
} catch(\Exception $e) {
        if(!isset($options['fix_zend']) && function_exists('SPLAutoloadBroken') && SPLAutoloadBroken()) {
                modgettext::push_textdomain("amp");
                echo _("Autoloader is damaged")."\n";
                $name = isset($argv[0]) ? basename($argv[0]) : "fwconsole";
                echo sprintf(_("Please run: %s --fix_zend"),$name)."\n";
                exit(5);
        } else {
                 throw $e;
        }
}

See that line in the try block? It says include_once(’/etc/asterisk/freepbx.conf’). That is what is causing the first warning. So either you are wrong and the file SHOULD be there (and have permission set correctly) or the fwconsole PHP file is wrong and should be changed to reference the right path on line 13.

You’re getting fixated on the filename. The problem is ‘Permission Denied’.

That code says:

  • Is there a FREEPBX_CONF environment variable? If so, try to load that file.
  • If not, try to load /etc/freepbx.conf
  • If that fails, try to load /etc/asterisk/freepbx.conf

That last one shouldn’t be there, and I wanted to remove it for 13, but we never got around to it. It’ll probably go in 14, it’s a legacy configuration file that isn’t used any more.

However. Permission Denied. That’s your problem. Really, it is. Your machine has something severely wrong with it.

If you try to load a file that doesn’t exist, it should say ‘No such File or Directory’. Try it yourself:

<?php

error_reporting(E_ALL);
include("/non/existing/file");

OK. Well you initially said to remove the file, which doesn’t exist, so you can understand why I responded.

I said in my post perhaps there is some sort of permission issue.

This is straight from the freepbx distro download. It was installed literally less than a month ago. I’ve done nothing but install the distro, mess with user manager active directory authentication, and create a handful of extensions. And activate commercial modules (I know u should wait for stable release but they need testing in 13 and already found at least 1 bug in EPM which I’ll report and I don’t believe they are causing this issue).

So I don’t know how the install would be severely messed up (and not show in other users installs). Basically it sound like you are saying my install is borked, other installs don’t show this issue and this isn’t a bug?

Also the permissions are listed above. ETC is owned by root. Asterisk folder by asterisk. All files owned by asterisk with rw only to asterisk. The user I use to ssh in with is the created freepbx administer, that I created in place of the default login (through the GUI). Is that user supposed to be able to look at the /ETC/asterisk folder? Because it can’t.

That’s what it sounds like. You didn’t say it was a Distro machine at the start, so I assumed it was a machine you’d built yourself.

… Oh, bugger, you did. The very first line in your first post. Sorry about that, I missed it totally, I was just looking for the error.

However, re-reading it, now your problem is obvious:

[root@pbx administator]# ls -al /etc/asterisk/
total 488
drwxr-x---.  3 asterisk asterisk  12288 Nov  4 13:58 .

You’ll need to fix the permissions on /etc/asterisk so that whatever user you’re logging in as can read that folder, or, add that user to the ‘asterisk’ group.

Sorry for the misunderstanding!

Thanks!

I just logged into the machine locally as root and everything works correctly.

So I think it is clearly just an issue with the user account that I’m using to SSH with. Now thinking about it more rationally, it makes sense. The folders that I’m getting permission errors with are those that are asterisk/asterisk and the account isn’t apart of that group. This explains why the MOTD banner wasn’t showing either.

I was afraid something was wrong because I have another Stable 12 Distro installation that I use a non-root account to SSH in with, passwords off and only accept connections using key based authentication. I had never seen those errors before. However I set it up years ago so maybe I added it to the asterisk group and forgot.

EDIT:
I just checked my FreePBX 12 server. Something must have changed with permissions moving to 13? My SSH account on that server is NOT a member of the asterisk group. HOWEVER /etc/asterisk shows different permission on that server (particularly read/execute permissions for Other). Either they changed from 12 to 13, or I changed them on this 12 server and don’t remember.

[jayg30@pbx1 ~]$ ls -al /etc/asterisk/
total 632
drwxrwxr-x.  3 asterisk asterisk  12288 Aug 10 09:58 .
drwxr-xr-x. 93 root     root      12288 Nov  4 19:42 ..
-rwxrwxr-x   1 asterisk asterisk    665 Nov  4 22:27 ari_additional.conf
-rwxrwxr-x   1 asterisk asterisk      0 Aug 20 17:09 ari_additional_custom.conf
lrwxrwxrwx   1 asterisk asterisk     51 Aug 20 17:09 ari.conf -> /var/www/html/admin/modules/arimanager/etc/ari.conf
-rwxrwxr-x   1 asterisk asterisk    684 Nov  4 22:27 ari_general_additional.conf
-rwxrwxr-x   1 asterisk asterisk      0 Aug 20 17:09 ari_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    335 Feb 27  2014 asterisk.conf
lrwxrwxrwx.  1 asterisk asterisk     48 Feb 27  2014 ccss.conf -> /var/www/html/admin/modules/campon/etc/ccss.conf
-rwxrwxr-x.  1 asterisk asterisk    664 Nov  4 22:27 ccss_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 ccss_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk     91 Feb 27  2014 cdr_adaptive_odbc.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 cdr.conf
-rwxrwxr-x.  1 asterisk asterisk    699 Feb 27  2014 cdr_mysql.conf
-rwxrwxr-x.  1 asterisk asterisk    699 Feb 27  2014 cdr_mysql.conf.bak
lrwxrwxrwx.  1 asterisk asterisk     44 Feb 27  2014 cel.conf -> /var/www/html/admin/modules/cdr/etc/cel.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 cel_custom_post.conf
-rwxrwxr-x.  1 asterisk asterisk    712 Nov  4 22:27 cel_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 cel_general_custom.conf
lrwxrwxrwx.  1 asterisk asterisk     49 Feb 27  2014 cel_odbc.conf -> /var/www/html/admin/modules/cdr/etc/cel_odbc.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 cel_odbc_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    664 Nov  4 22:27 chan_dahdi_additional.conf
-rwxrwxr-x.  1 asterisk asterisk    766 Feb 27  2011 chan_dahdi.conf
-rwxrwxr-x.  1 asterisk asterisk    715 Feb 27  2014 chan_dahdi.conf.template
-rwxrwxr-x.  1 asterisk asterisk    664 Nov  4 22:27 confbridge_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     59 Feb 27  2014 confbridge.conf -> /var/www/html/admin/modules/conferences/etc/confbridge.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 confbridge_custom.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 dahdi-channels.conf
lrwxrwxrwx   1 asterisk asterisk     57 Feb 26  2014 directorypro -> /var/www/html/admin/modules/directorypro/etc/directorypro
-rwxrwxr-x.  1 asterisk asterisk     50 Feb 27  2014 enum.conf
-rwxrwxr-x.  1 asterisk asterisk 277755 Nov  4 22:27 extensions_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     52 Feb 27  2014 extensions.conf -> /var/www/html/admin/modules/core/etc/extensions.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 extensions_custom.conf
-rwxrwxr-x.  1 asterisk asterisk   2671 Feb 27  2014 extensions_custom.conf.sample
-rwxrwxr-x   1 asterisk asterisk  10445 May 14 17:56 extensions_override_fop2.conf
-rwxrwxr-x.  1 asterisk asterisk     53 May 14 17:56 extensions_override_freepbx.conf
-rwxrwxr-x   1 asterisk asterisk      0 May 14 17:56 extensions_override_freepbx.conf.bak
-rwxrwxr-x.  1 asterisk asterisk    708 Nov  4 22:27 features_applicationmap_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 features_applicationmap_custom.conf
lrwxrwxrwx.  1 asterisk asterisk     50 Feb 27  2014 features.conf -> /var/www/html/admin/modules/core/etc/features.conf
-rwxrwxr-x.  1 asterisk asterisk    701 Nov  4 22:27 features_featuremap_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 features_featuremap_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    679 Nov  4 22:27 features_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 features_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk   1494 Feb 27  2014 freepbx_featurecodes.conf.template
-rwxrwxr-x.  1 asterisk asterisk    965 Feb 27  2014 freepbx_menu.conf.template
-rwxrwxr-x.  1 asterisk asterisk    730 Feb 27  2014 freepbx_module_admin.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 globals_custom.conf
-rwxrwxr-x   1 asterisk asterisk    741 Nov  4 22:27 http_additional.conf
lrwxrwxrwx   1 asterisk asterisk     46 Feb 26  2014 http.conf -> /var/www/html/admin/modules/core/etc/http.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 http_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    846 Nov  4 22:27 iax_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Feb 27  2014 iax.conf -> /var/www/html/admin/modules/core/etc/iax.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 iax_custom.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 iax_custom_post.conf
-rwxrwxr-x.  1 asterisk asterisk    830 Nov  4 22:27 iax_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 iax_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    664 Nov  4 22:27 iax_registrations.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 iax_registrations_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    844 Nov  4 22:27 indications.conf
lrwxrwxrwx   1 asterisk asterisk     45 Feb 26  2014 ivrpro -> /var/www/html/admin/modules/ivrpro/etc/ivrpro
drwxrwxr-x   2 asterisk asterisk   4096 Dec  5  2014 keys
-rwxrwxr-x.  1 asterisk asterisk    664 Nov  4 22:27 localprefixes.conf
lrwxrwxrwx   1 asterisk asterisk     52 Feb 26  2014 logger.conf -> /var/www/html/admin/modules/logfiles/etc/logger.conf
-rwxrwxr-x.  1 asterisk asterisk    735 Nov  4 22:27 logger_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 logger_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    789 Nov  4 22:27 logger_logfiles_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 logger_logfiles_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    773 Nov  4 22:27 manager_additional.conf
-rwxrwxr-x   1 asterisk asterisk   1013 Sep 27  2014 manager.conf
-rwxrwxr-x   1 asterisk asterisk    997 Aug 23  2014 manager.conf.12.0.1.bak
-rwxrwxr-x.  1 asterisk asterisk    930 Feb 27  2014 manager.conf.bak
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 manager_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    686 Nov  4 22:27 meetme_additional.conf
-rwxrwxr-x.  1 asterisk asterisk     40 Feb 27  2014 meetme.conf
-rwxrwxr-x.  1 asterisk asterisk   1774 Feb 27  2014 modem.conf
-rwxrwxr-x.  1 asterisk asterisk   2527 Nov  4 22:27 modules.conf
-rwxrwxr-x.  1 asterisk asterisk   2393 Feb 27  2014 modules.conf.2.8.0-1.bak
-rwxrwxr-x   1 asterisk asterisk    691 Nov  4 22:27 motif.conf
-rwxrwxr-x   1 asterisk asterisk    691 Sep 27  2014 motif.conf.bak
-rwxrwxr-x   1 asterisk asterisk      0 Sep 27  2014 motif_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    808 Nov  4 22:27 musiconhold_additional.conf
-rwxrwxr-x.  1 asterisk asterisk    208 Feb 27  2014 musiconhold.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 musiconhold_custom.conf
-rwxrwxr-x.  1 asterisk asterisk   1418 Feb 27  2014 phone.conf
-rwxrwxr-x.  1 asterisk asterisk     90 Feb 27  2014 phpagi.conf
-rwxrwxr-x   1 asterisk asterisk    696 Nov  4 22:27 pjsip.aor.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.aor_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.aor_custom_post.conf
-rwxrwxr-x   1 asterisk asterisk    697 Nov  4 22:27 pjsip.auth.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.auth_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.auth_custom_post.conf
-rwxrwxr-x   1 asterisk asterisk   1163 Nov  4 22:27 pjsip.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Sep 27  2014 pjsip.custom.conf
-rwxrwxr-x   1 asterisk asterisk    701 Nov  4 22:27 pjsip.endpoint.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.endpoint_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.endpoint_custom_post.conf
-rwxrwxr-x   1 asterisk asterisk    701 Nov  4 22:27 pjsip.identify.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.identify_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.identify_custom_post.conf
-rwxrwxr-x   1 asterisk asterisk      0 Sep 27  2014 pjsip.manualtrunks.conf
-rwxrwxr-x   1 asterisk asterisk    733 Nov  4 22:27 pjsip_notify.conf
-rwxrwxr-x   1 asterisk asterisk    705 Nov  4 22:27 pjsip.registration.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.registration_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.registration_custom_post.conf
-rwxrwxr-x   1 asterisk asterisk    915 Nov  4 22:27 pjsip.transports.conf
-rwxrwxr-x   1 asterisk asterisk      0 Nov 18  2014 pjsip.transports_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Jul 28 09:38 pjsip.transports_custom_post.conf
-rwxrwxr-x.  1 asterisk asterisk     81 Feb 27  2014 privacy.conf
-rwxrwxr-x   1 asterisk asterisk   1021 May 13 19:19 prosody_additional.conf
-rwxrwxr-x   1 asterisk asterisk    664 Mar 27  2015 queuerules_additional.conf
lrwxrwxrwx   1 asterisk asterisk     54 Feb 26  2014 queuerules.conf -> /var/www/html/admin/modules/vqplus/etc/queuerules.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 queuerules_custom.conf
-rwxrwxr-x.  1 asterisk asterisk   1326 Nov  4 22:27 queues_additional.conf
-rwxrwxr-x.  1 asterisk asterisk    522 Feb 27  2014 queues.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 queues_custom.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 queues_custom_general.conf
-rwxrwxr-x.  1 asterisk asterisk    743 Nov  4 22:27 queues_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 queues_post_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_digium_phone_additional.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_digium_phone_applications.conf
lrwxrwxrwx   1 asterisk asterisk     67 Feb 26  2014 res_digium_phone.conf -> /var/www/html/admin/modules/digium_phones/etc/res_digium_phone.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_digium_phone_devices.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_digium_phone_firmware.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_digium_phone_general.conf
-rwxrwxr-x   1 asterisk asterisk    733 Nov  4 22:27 res_fax.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_fax_custom.conf
-rwxrwxr-x   1 asterisk asterisk    720 Nov  4 22:27 res_fax_digium.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 res_fax_digium_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    802 Nov  4 22:27 res_odbc_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     50 Feb 27  2014 res_odbc.conf -> /var/www/html/admin/modules/core/etc/res_odbc.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 res_odbc_custom.conf
-rwxrwxr-x   1 asterisk asterisk    884 Nov  4 22:27 res_parking.conf
-rwxrwxr-x.  1 asterisk asterisk    768 Nov  4 22:27 rtp_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Feb 27  2014 rtp.conf -> /var/www/html/admin/modules/core/etc/rtp.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 rtp_custom.conf
-rwxrwxr-x.  1 asterisk asterisk  14833 Nov  4 22:27 sip_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     45 Feb 27  2014 sip.conf -> /var/www/html/admin/modules/core/etc/sip.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_custom.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_custom_post.conf
-rwxrwxr-x.  1 asterisk asterisk   1491 Nov  4 22:27 sip_general_additional.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_nat.conf
-rwxrwxr-x.  1 asterisk asterisk   1798 Nov  4 22:27 sip_notify_additional.conf
lrwxrwxrwx.  1 asterisk asterisk     52 Feb 27  2014 sip_notify.conf -> /var/www/html/admin/modules/core/etc/sip_notify.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_notify_custom.conf
lrwxrwxrwx   1 asterisk asterisk     71 Feb 26  2014 sip_notify_endpointman.conf -> /var/www/html/admin/modules/endpointman/etc/sip_notify_endpointman.conf
-rwxrwxr-x.  1 asterisk asterisk    754 Nov  4 22:27 sip_registrations.conf
-rwxrwxr-x.  1 asterisk asterisk      0 Feb 27  2014 sip_registrations_custom.conf
lrwxrwxrwx   1 asterisk asterisk     47 Feb 26  2014 udptl.conf -> /var/www/html/admin/modules/core/etc/udptl.conf
-rwxrwxr-x   1 asterisk asterisk      0 Feb 26  2014 udptl_custom.conf
-rwxrwxr-x.  1 asterisk asterisk     15 Feb 27  2014 version
-rwxrwxr-x.  1 asterisk asterisk    543 Nov  4 22:27 vm_email.inc
-rwxrwxr-x.  1 asterisk asterisk   1048 Nov  4 22:27 vm_general.inc
-rwxrwxr-x   1 asterisk asterisk   3530 Oct  7 09:19 voicemail.conf
-rwxrwxr-x.  1 asterisk asterisk     67 Feb 27  2014 voicemail.conf.template
-rwxrwxr-x   1 asterisk asterisk    736 Nov  4 22:27 xmpp.conf
-rwxrwxr-x   1 asterisk asterisk    736 Sep 27  2014 xmpp.conf.bak
-rwxrwxr-x   1 asterisk asterisk      0 Sep 27  2014 xmpp_custom.conf
-rwxrwxr-x   1 asterisk asterisk      0 Sep 27  2014 xmpp_general_custom.conf
-rwxrwxr-x.  1 asterisk asterisk    699 Feb 27  2014 zapata.conf.template
1 Like

Try fwconsole chown and see if it changes…

Mine changed from what you have now to what you had by doing “fwconsole chown”…

As to which permissions are the right ones, @xrobau?

Have a nice day!

Nick

With the tightening of security in 13, 750 is the correct permission. I’d forgotten they used to be looser, sorry about that!

So, just add your ‘admin’ user to the asterisk group, and your problem will go away.

Hi Rob!

Thank you! That means that “fwconsole chown” correctly restored it to what they should be now…

I somewhat wondered if I had done something wrong by doing it (ie “fwconsole chown”) because I had some problem installing 10.13.66-6 (I will open a new thread about it but possibly not tonight).

Thank you and have a nice day!

Nick

1 Like

Thanks guys! Cheers. :beers:

1 Like

I was getting similar error when logging in as standard user.

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

Following this thread, I added user to asterisk group. I then logged out and ssh’d in again. Now I get the following error.

Whoops\Exception\ErrorException: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied in file /var/www/html/admin/libraries/utility.functions.php on line 131
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/utility.functions.php:131
  2. Whoops\Run->handleError() :0
  3. file_put_contents() /var/www/html/admin/libraries/utility.functions.php:131
  4. freepbx_log() /var/www/html/admin/libraries/modulefunctions.legacy.php:7
  5. _module_backtrace() /var/www/html/admin/libraries/modulefunctions.legacy.php:53
  6. module_getinfo() /var/www/html/admin/modules/cxpanel/functions.inc.php:52
  7. require_once() /var/www/html/admin/bootstrap.php:333
  8. require_once() /etc/freepbx.conf:9
  9. include_once() /var/lib/asterisk/bin/fwconsole:12

I’m running a fresh install of FreePBX distro 13.

I don’t get any errors when logging in as root. I just prefer to disallow logging in as root as a security measure.