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.