Prezados.
É possível executar VBscript no Apache?
Tenho o mod_perl2 instalado e ativado:
mike:/var/www# dpkg -l | grep libapache2-mod-perl
ii libapache2-mod-perl2 2.0.4-5
Integration of perl with the Apache2 web server
O libapache-asp-perl instalado e ativado:
mike:/var/www# dpkg -l | grep libapache-asp
ii libapache-asp-perl 2.59-2.1 perl
Apache::ASP - Active Server Pages for Apache with mod_per
Adicionei as configurações para arquivos .asp no meu httpd.conf:
mike:/var/www# cat /etc/apache2/httpd.conf
PerlModule Apache::ASP
<Files ~ (\.asp)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp
</Files>
Apliquei o patch no /usr/share/perl5/Apache/ASP.pm:
for my $module ( @load_modules ) {
eval "use $module ();";
}
# if($ENV{MOD_PERL}) {
# $ModPerl2 = ($mod_perl::VERSION >= 1.99);
# if($ModPerl2) {
# eval "use Apache::ASP::ApacheCommon ();";
# die($@) if $@;
if(exists $ENV{MOD_PERL_API_VERSION}) {
if($ModPerl2 = ($ENV{MOD_PERL_API_VERSION} >= 2)) {
if($ModPerl2) {
eval "use Apache::ASP::ApacheCommon ();";
die($@) if $@;
}
}
}
}
Criei o arquivo teste.asp com o seguinte conteúdo:
<% Response.Write("Hello World!") %>
Ao entrar no browser, tenho o seguinte erro no meu log:
[Tue Sep 08 15:15:52 2009] [error] [asp] [29114] [error] Undefined
subroutine &Apache::ASP::Compiles::__ASP__var_www__x::Write called at
/var/www/teste.asp line 1. <--> , /usr/share/perl5/Apache/ASP.pm line 1528
Conteúdo da linha 1528 do /usr/share/perl5/Apache/ASP.pm:
$self->Error($@);
Já pesquisei mas ainda não consegui encontrar nenhuma solução, alguém
poderia me dar uma ajuda?
Agradeço desde já.
--
Atenciosamente,
Allan Carvalho
Atenção: Este e-mail pode conter anexos no formato ODF (Open Document
Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os
anexos em outro formato, você pode instalar gratuita e livremente o
BrOffice (http://www.broffice.org) ou o seguinte Plugin para Microsoft
Office (http://www.sun.com/software/star/odf_plugin/get.jsp).
http://allandc.wordpress.com/
Linux Registered User No: 454591
"Para as lagartixas só posso dizer, treine muito e vire um calango, e continue
admirando os crocodilos"
--
To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org