Thanks, looks a little beyond my capabilities and this box is in production, a
little scary for me. It's running @Home 2.7 and was working just fine, I'm not
sure what changed. If anyone would be brave enough to take a look I'll supply
the details, thanks, Mark.
----- Original Message -----
From: John Van Ostrand
To: [email protected]
Sent: Thursday, May 11, 2006 12:07 PM
Subject: **SPAM: [>>> SPAM <<<] - Re: [on-asterisk] Voicemail permission
problem - Email found in subject
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