I recently switched from Mandrake to Redhat and I noticed that vmail.cgi does not work with the default apache installation that comes with Redhat. Here is what I get in my error logs: [Thu Dec 04 11:59:57 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Dec 04 11:59:58 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 04 11:59:58 2003] [notice] Digest: done [Thu Dec 04 11:59:59 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 04 12:00:08 2003] [error] [client 192.168.10.12] Directory index forbidden by rule: /var/www/html/ [Thu Dec 04 12:00:15 2003] [error] [client 192.168.10.12] Premature end of script headers: vmail.cgi [Thu Dec 04 12:00:15 2003] [error] [client 192.168.10.12] Can't do setuid Does anybody know how I could fix this problem? Thank you for your time. __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/
jerk face wrote:> I recently switched from Mandrake to Redhat and I > noticed that vmail.cgi does not work with the default > apache installation that comes with Redhat. > Here is what I get in my error logs: > > [Thu Dec 04 11:59:57 2003] [notice] suEXEC mechanism > enabled (wrapper: /usr/sbin/suexec) > [Thu Dec 04 11:59:58 2003] [notice] Digest: generating > secret for digest authentication ... > [Thu Dec 04 11:59:58 2003] [notice] Digest: done > [Thu Dec 04 11:59:59 2003] [notice] Apache/2.0.40 (Red > Hat Linux) configured -- resuming normal operations > [Thu Dec 04 12:00:08 2003] [error] [client > 192.168.10.12] Directory index forbidden by rule: > /var/www/html/ > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Premature end of script headers: > vmail.cgi > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Can't do setuid > > > Does anybody know how I could fix this problem?"Premature end of script headers" means that there was an error in the script. Check the error log of the Apache server for more information. You can also try to run the script from the UNIX prompt and see if you get any error messages. Regards, /Olle
RedHat's PERL doesn't allow suid. You'll have to turn of the "s" flag on vmail.cgi (chmod -s /var/www/cgi-bin/vmail.cgi) and fiddle with permissions. -wade -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Olle E. Johansson Sent: Thursday, December 04, 2003 1:36 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] vmail.cgi with Redhat 9.0 jerk face wrote:> I recently switched from Mandrake to Redhat and I > noticed that vmail.cgi does not work with the default > apache installation that comes with Redhat. > Here is what I get in my error logs: > > [Thu Dec 04 11:59:57 2003] [notice] suEXEC mechanism > enabled (wrapper: /usr/sbin/suexec) > [Thu Dec 04 11:59:58 2003] [notice] Digest: generating > secret for digest authentication ... > [Thu Dec 04 11:59:58 2003] [notice] Digest: done > [Thu Dec 04 11:59:59 2003] [notice] Apache/2.0.40 (Red > Hat Linux) configured -- resuming normal operations > [Thu Dec 04 12:00:08 2003] [error] [client > 192.168.10.12] Directory index forbidden by rule: > /var/www/html/ > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Premature end of script headers: > vmail.cgi > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Can't do setuid > > > Does anybody know how I could fix this problem?"Premature end of script headers" means that there was an error in the script. Check the error log of the Apache server for more information. You can also try to run the script from the UNIX prompt and see if you get any error messages. Regards, /Olle _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
-----Original Message----- From: jerk face [mailto:jerkface2098@yahoo.com] Sent: Thursday, December 04, 2003 9:02 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] vmail.cgi with Redhat 9.0> I recently switched from Mandrake to Redhat and I > noticed that vmail.cgi does not work with the default > apache installation that comes with Redhat. > Here is what I get in my error logs: > > [Thu Dec 04 11:59:57 2003] [notice] suEXEC mechanism > enabled (wrapper: /usr/sbin/suexec) > [Thu Dec 04 11:59:58 2003] [notice] Digest: generating > secret for digest authentication ... > [Thu Dec 04 11:59:58 2003] [notice] Digest: done > [Thu Dec 04 11:59:59 2003] [notice] Apache/2.0.40 (Red > Hat Linux) configured -- resuming normal operations > [Thu Dec 04 12:00:08 2003] [error] [client > 192.168.10.12] Directory index forbidden by rule: > /var/www/html/ > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Premature end of script headers: > vmail.cgi > [Thu Dec 04 12:00:15 2003] [error] [client > 192.168.10.12] Can't do setuid > > > Does anybody know how I could fix this problem? > > Thank you for your time.You need to install the perl 'perl-suidperl' rpm package to enable execution of suid perl scripts. -Evan
Steven Critchfield
2003-Dec-04 12:35 UTC
[Asterisk-Users] Web Page initiated phone to phone
On Thu, 2003-12-04 at 13:21, Todd Wallace wrote:> Is it possible to initiate 2 outbound calls from a web page and conference > them together in a bridge on an asterisk server?Yes, sample.call. The first part is the phone number to dial, and the application is dial with the other phone number. -- Steven Critchfield <critch@basesys.com>
>>I've patched app_voicemail.c to >>create everything as 777. As this is a >>dedicated Asterisk box, I don't see >>the harm in giving everyone on the >>system full access.>Would you be willing to share this patch?It was a simple patch. Just search for 0700 in app_voicemail.c and change them all to 0777 -wade