vcomp
April 28, 2006, 7:36pm
1
I have a fresh install of 2.1 beta 1. When adding an extension I get the folowing errors:
Warning: fopen(/etc/asterisk/vm_general.inc): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Warning: fopen(/etc/asterisk/vm_email.inc): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Warning: fopen(/etc/asterisk/voicemail.conf): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Warning: fopen(/etc/asterisk/vm_general.inc): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Warning: fopen(/etc/asterisk/vm_email.inc): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Warning: fopen(/etc/asterisk/voicemail.conf): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 710
Anyone have a fix?
Thanks,
vcomp
Do those voicemail files exist in your /etc/asterisk directory. If so, who owns them?
Try this from the command prompt:
[code:1]ls -al /etc/asterisk[/code:1]
vcomp
April 28, 2006, 11:23pm
3
-rwxrwxrwx 1 asterisk asterisk 8363 Jan 3 20:47 a2billing.conf
-rwxrwxrwx 1 asterisk asterisk 1695 Jan 3 20:47 agents.conf
-rwxrwxrwx 1 asterisk asterisk 2222 Jan 3 20:47 alarmreceiver.conf
-rwxrwxrwx 1 asterisk asterisk 8504 Apr 27 04:13 applications.conf
-rwxrwxrwx 1 asterisk asterisk 250 Jan 3 20:47 asterisk.conf
-rwxrwxrwx 1 asterisk asterisk 695 Apr 28 12:44 cdr_mysql.conf
-rwxrwxrwx 1 asterisk asterisk 1653 Jan 3 20:47 codecs.conf
drwxrwxrwx 2 asterisk asterisk 4096 Apr 27 04:13 default
-rwxrwxrwx 1 asterisk asterisk 190 Jan 3 20:47 dnsmgr.conf
-rwxrwxrwx 1 asterisk asterisk 7743 Jan 3 20:47 dundi.conf
-rwxrwxrwx 1 asterisk asterisk 50 Apr 28 12:44 enum.conf
-rwxrwxrwx 1 asterisk asterisk 1367 Jan 3 20:47 extconfig.conf
-rw-rw-r-- 1 asterisk asterisk 129 Apr 28 12:44 extensions_additional.conf
-rwxrwxrwx 1 asterisk asterisk 31741 Apr 28 12:44 extensions.conf
-rwxrwxrwx 1 asterisk asterisk 4153 Apr 12 22:50 extensions_custom.conf
-rw-r–r-- 1 asterisk asterisk 1077 Apr 28 12:44 extensions_custom.conf.sample
-rwxrwxrwx 1 asterisk asterisk 450 Apr 28 12:44 features.conf
-rwxrwxrwx 1 asterisk asterisk 929 Jan 3 20:47 festival.conf
-rw-rw-r-- 1 asterisk asterisk 196 Apr 28 12:44 iax_additional.conf
-rwxrwxrwx 1 asterisk asterisk 257 Apr 28 12:44 iax.conf
-rwxrwxrwx 1 asterisk asterisk 2446 Jan 3 20:47 iaxprov.conf
-rwxrwxrwx 1 asterisk asterisk 6320 Apr 28 12:44 indications.conf
-rwxrwxrwx 1 asterisk asterisk 844 Apr 28 12:44 logger.conf
-rwxrwxrwx 1 asterisk asterisk 302 Apr 28 12:44 manager.conf
-rwxrwxrwx 1 asterisk asterisk 742 Jan 3 20:47 manager_custom.conf
-rwxrwxrwx 1 asterisk asterisk 40 Apr 28 12:44 meetme.conf
-rwxrwxrwx 1 asterisk asterisk 2180 Jan 3 20:47 mgcp.conf
-rwxrwxrwx 1 asterisk asterisk 1774 Apr 28 12:44 modem.conf
-rwxrwxrwx 1 asterisk asterisk 1259 Apr 28 12:44 modules.conf
-rwxrwxrwx 1 asterisk asterisk 231 Apr 28 12:44 musiconhold.conf
-rwxrwxrwx 1 asterisk asterisk 1206 Jan 3 20:47 oss.conf
-rwxrwxrwx 1 asterisk asterisk 1418 Apr 28 12:44 phone.conf
-rwxrwxrwx 1 asterisk asterisk 90 Apr 28 12:44 phpagi.conf
-rwxrwxrwx 1 asterisk asterisk 81 Apr 28 12:44 privacy.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 12:44 queues_additional.conf
-rwxrwxrwx 1 asterisk asterisk 413 Apr 28 12:44 queues.conf
-rw-r–r-- 1 asterisk asterisk 14974 Apr 27 04:13 rates.inc
-rwxrwxrwx 1 asterisk asterisk 416 Jan 3 20:47 res_mysql.conf
-rwxrwxrwx 1 asterisk asterisk 124 Apr 28 12:44 rtp.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 12:44 sip_additional.conf
-rwxrwxrwx 1 asterisk asterisk 891 Apr 28 12:44 sip.conf
-rwxrwxrwx 1 asterisk asterisk 1 Jan 3 20:47 sip_nat.conf
-rwxrwxrwx 1 asterisk asterisk 315 Jan 3 20:47 sip_notify.conf
-rwxrwxrwx 1 asterisk asterisk 1281 Jan 3 20:47 skinny.conf
-rwxrwxrwx 1 asterisk asterisk 396 Apr 28 12:44 vm_email.inc
-rwxrwxrwx 1 asterisk asterisk 828 Apr 28 12:44 vm_general.inc
-rwxrwxrwx 1 asterisk asterisk 67 Jan 3 20:47 voicemail.conf
-rw-r–r-- 1 asterisk asterisk 67 Apr 28 12:44 voicemail.conf.template
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 12:44 zapata_additional.conf
-rwxrwxrwx 1 asterisk asterisk 760 Feb 3 01:29 zapata.conf
-rwxrwxrwx 1 asterisk asterisk 699 Apr 28 12:44 zapata.conf.template
vcomp
April 29, 2006, 1:10am
4
I modified the permissions to match those on a working system but no change.
plindheimer
(Philippe Lindheimer)
April 29, 2006, 2:23am
5
do you have selinux enabled? I’ve seen that kind of problem even when all files were set correctly. Take a look at:
/etc/selinux/config
at best it should be set to targeted and if that is problematic, try it at disabled (although targetted should work). Strict will cause problems.
p
vcomp
April 29, 2006, 3:43am
6
Thanks much for the suggestion. It seems to be working now.
I guess I should read all of the directions huh.
plindheimer
(Philippe Lindheimer)
April 29, 2006, 4:25am
7
I’m not sure that is anywhere in the directions. Did you have to completely disable it or just set it to targetted?
p
xrobau
(Rob Thomas)
April 29, 2006, 5:08am
8
http://aussievoip.com.au/wiki/freePBX-Centos
It’s definately there, with a screenshot and everything.
–Rob
vcomp
April 29, 2006, 6:08am
9
Disabled.
BTW, many FreePBX users are using A@H and may not see that screen.
Thanks for everyone’s help. This new forum is working much more smoothly that SoundForge. Great move!
I just tried a fresh install of 2.1b1 on top of an fresh Asterisk@Home 2.8 install and I’m getting all kinds of SQL errors when I try to view certain modules.
my selinux config looks like this:
This file controls the state of SELinux on the system.
SELINUX= can take one of these three values:
enforcing - SELinux security policy is enforced.
permissive - SELinux prints warnings instead of enforcing.
disabled - SELinux is fully disabled.
SELINUX=disabled
SELINUXTYPE= type of policy in use. Possible values are:
targeted - Only targeted network daemons are protected.
strict - Full SELinux protection.
SELINUXTYPE=targeted
Should SELINUX=targeted but set to disabled?