On Tue, 2006-04-11 at 11:29 -0400, Mark Palser wrote:
> When trying to access voicemail from the builtin webserver I get this
> message;  
>  
> Warning:
> fopen(/var/spool/asterisk/voicemail/default/999/INBOX/msg0000.wav):
> failed to open stream: Permission denied
> in /var/www/html/recordings/misc/audio.php on line 39
>  
> How would I correct this? Thanks, Mark.

That bit of code is trying to read the actual voice mail file. The Linux
permissions do not allow it.

Something is broken somewhere. Here is what I think may be at fault:

The web server is setup to run as the user "http" and asterisk is setup
to run as the user "asterisk".

As root run "ps -ef | grep http". If the httpd processes are running as
"apache" or "httpd"  (first column) then you need to
change /etc/httpd/conf/httpd.conf and set the User and Group option in
that file. This may give problems with other web sites if the server is
running other webs so make sure you test.

Alternatively we would need to change the permissions on the voice mail
files and directories. I'm not sure about this, but it may be possible
to change the permissions that Asterisk puts on these files and
directories. Although you can make manual changes to the permissions you
want new mail boxes and messages to be created with permissions that
allow the web server to continue running as "httpd" or "apache".
-- 
John Van Ostrand
         Net Direct Inc.
 
Chief Technology Officer
564 Weber St. N. Unit 12
   Waterloo, ON N2L 5C6 
 map 
[EMAIL PROTECTED]
        Ph: 519-883-1172
 ext.5102
Linux Solutions / IBM
Hardware
        Fx: 519-883-8533
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to