1 – trocar o diretorio padrao do cgi par o /var/www/cgi-bin
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
para
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
na linha onde esta
para
2 – Restartar o apache:
/etc/init.d/apache restart
3 – Criar o diretorio /var/www/cgi-bin
cd /var/www
mkdir cgi-bin html
4 – ir no diretorio do asterisk.. geralmetne /usr/src/asterisk-versao/ e dar um make webvmail
5 – Editar line 18 “$context=””; # (em /var/ww/cgi-bin/vmail.cgi)
Define here your by default context (so you don’t need to put voicemail@context in the login” as needed and save.
6 – Dar permissao ao vmail.cgi com:
chmod 777 /var/www/cgi-bin/vmail.cgi
7 – Acessar http://your.ip.address/cgi-bin/vmail.cgi e logar
8 – Scritp vmail.cgi disponivel clicando aqui
LEMBRAR DE DEIXAR O CGI COMO EXECUTAVEL CHMOD +X
CENTOS
1. Install Apache:
yum install httpd
2. Start Apache:
service httpd start
3. To start Apache at boot automatically:
chkconfig httpd on
4. Compile webvmail form the /usr/src/asterisk directory:
make webvmail
5. Install webvmail:
make install webvmail
6. Perl needed to run above:
yum install perl-suidperl
7. DBI needed for Perl:
perl -MCPAN -e ‘install DBI’