{"id":107,"date":"2011-04-17T15:29:14","date_gmt":"2011-04-17T18:29:14","guid":{"rendered":"http:\/\/blog.abratel.com.br\/2011\/04\/17\/instalar-vmailcgi-asterisklinux\/"},"modified":"2013-02-22T16:01:38","modified_gmt":"2013-02-22T19:01:38","slug":"instalar-vmailcgi-asterisklinux","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=107","title":{"rendered":"Instalar Vmail.cgi asterisk\/linux"},"content":{"rendered":"<p>1 &#8211; trocar o diretorio padrao do cgi par o \/var\/www\/cgi-bin<br \/>\n<IfModule mod_alias.c><br \/>\n   ScriptAlias \/cgi-bin\/ \/usr\/lib\/cgi-bin\/<br \/>\npara<br \/>\n<IfModule mod_alias.c><br \/>\n   ScriptAlias \/cgi-bin\/ \/var\/www\/cgi-bin\/<\/p>\n<p>na linha onde esta <Directory \/usr\/lib\/cgi-bin\/><br \/>\npara<br \/>\n<Directory \/var\/www\/cgi-bin\/><\/p>\n<p>2 &#8211; Restartar o apache:<br \/>\n\/etc\/init.d\/apache restart<\/p>\n<p>3 &#8211; Criar o diretorio \/var\/www\/cgi-bin<br \/>\ncd \/var\/www<br \/>\nmkdir cgi-bin html <\/p>\n<p>4 &#8211; ir no diretorio do asterisk.. geralmetne \/usr\/src\/asterisk-versao\/ e dar um make webvmail<\/p>\n<p>5 &#8211; Editar line 18 &#8220;$context=&#8221;&#8221;; #       (em \/var\/ww\/cgi-bin\/vmail.cgi)<br \/>\nDefine here your by default context (so you don&#8217;t need to put voicemail@context in the login&#8221; as needed and save.<\/p>\n<p>6 &#8211; Dar permissao ao vmail.cgi com:<br \/>\nchmod 777 \/var\/www\/cgi-bin\/vmail.cgi<\/p>\n<p>7 &#8211; Acessar http:\/\/your.ip.address\/cgi-bin\/vmail.cgi e logar<\/p>\n<p>8 &#8211; Scritp vmail.cgi disponivel <a href=\"http:\/\/www.digavoip.com.br\/downloads\/vmail.cgi\">clicando aqui<\/a><\/p>\n<p><strong>LEMBRAR DE DEIXAR O CGI COMO EXECUTAVEL CHMOD +X<\/strong><\/p>\n<p><strong>CENTOS<\/strong><\/p>\n<p>1.\tInstall Apache:<br \/>\nyum install httpd<\/p>\n<p>2. Start Apache:<br \/>\nservice httpd start<\/p>\n<p>3. To start Apache at boot automatically:<br \/>\nchkconfig httpd on<\/p>\n<p>4.\tCompile webvmail form the \/usr\/src\/asterisk directory:<br \/>\nmake webvmail<\/p>\n<p>5.\tInstall webvmail:<br \/>\nmake install webvmail<\/p>\n<p>6.\tPerl needed to run above:<br \/>\nyum install perl-suidperl<\/p>\n<p>7.\tDBI needed for Perl:<br \/>\nperl -MCPAN -e &#8216;install DBI&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 &#8211; 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 &#8211; Restartar o apache: \/etc\/init.d\/apache restart 3 &#8211; Criar o diretorio \/var\/www\/cgi-bin cd \/var\/www mkdir cgi-bin html 4 &#8211; ir no&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":0,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}