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?
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.
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âŚ
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:
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.
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
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).
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.