Web Comedian mail


#1

I have tried to setup web Comedian mail on Fedora Core 4 but I was unable to.

On FC4 i have installed Zaptel, Libpri, Asterisk, Asterisk-sounds and Asterisk-addons. I have started httpd and mysqld. Then I extracted vmail.cgi in /var/www/cgi-bin.

When I in Internet Explorer open web page
10.0.0.82/cgi-bin/vmail.cgi
This error I get.

Software error:
Can’t locate Time/HiRes.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at /var/www/cgi-bin/vmail.cgi line 22.
BEGIN failed–compilation aborted at /var/www/cgi-bin/vmail.cgi line 22.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

What have I done wrong?


#2

It looks like you are missing a perl module. Try running:

yum -y install perl-Time-HiRes


#3

[quote=“zmanea”]It looks like you are missing a perl module. Try running:

yum -y install perl-Time-HiRes[/quote]

Thank you! That was it. In instructions, they have newer say that I need that packet.

Now I have another problem. I log into mailbox that has two mesages waiting. And web mail doesn’t show me any voicemail waiting. I have checked /var/spool/asterisk/voicemail/default/2026/INBOX and there are two messages waiting.

Funny.


#4

Check the permissions on the directories. Does the apache user have read access to the voicemail directories?


#5

I need a litle explanation about this.

I have running apache (httpd) server under user1 (I’ll use those expresions to make it understandible for everybody’s future use). He needs to execute cgi script that was createt by user2. That cgi script is looking for files in dir that was created by user3.

What permissions do I have to give on script and on voicemail dirs?

As I can se it, user1 needs to have execude permission on script, and user2 (who has createt a script) needs to have permission on voicemail dirs. E’m I right?

What is the best way to do this? Shuld I put user1, user2 and user3 in same group and grant full permission for group on cgi script and voicemail dirs?