Running the a cgi script with Apache::Test
am 09.08.2011 11:29:30 von Balaji Rajagopalan --_000_DB27343170B6764ABBB195186225DDB1E260B88DF1EGLEX07VS01 ds_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
As part of a test that I wrote I do a
Use Apache::TestRequest qw(GET);
Plan test =3D> 1;
My $res;
$res =3D GET " /perl/set_cookie.cgi"
Ok $res->is_success, 1, "Request failed";
I also created a perl.conf.in with the following conf dir.
Alias /perl $myhome/mod_perl/
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
Allow form all
I get an error PerlHandler perhaps mis-spelled or not included in the serv=
er configuration.
I added a line to load the module
LoadModule perl_module $basedir/libexec/mod_perl_5.8.so
Alias /perl $myhome/mod_perl/
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
Allow form all
But now I get the error mod_perl_5.8.so undefined symbol: apr_bucket_shared=
_split.
Please suggest how do I get to execute a cgi script instead the Apache::Tes=
t env.
Regards,
Balaji
--_000_DB27343170B6764ABBB195186225DDB1E260B88DF1EGLEX07VS01 ds_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
As part of a test that I wrote I do a
Use Apache::TestRequest qw(GET);
Plan test =3D> 1;
My $res;
$res =3D GET “ /perl/set_cookie.cgi”
/o:p>
Ok $res->is_success, 1, “Request failed”=
;;
I also created a perl.conf.in with the following conf =
dir.
Alias /perl $myhome/mod_perl/
<Location /perl>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
Allow form all
</Location>
I get an error PerlHandler perhaps mis-spelled or not&=
nbsp;
included in the server configuration.
I added a line to load the module
LoadModule perl_module $basedir/libexec/mod_perl_5.8.s=
o
Alias /perl $myhome/mod_perl/
<Location /perl>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
Allow form all
</Location>
But now I get the error mod_perl_5.8.so undefined symb=
ol:
apr_bucket_shared_split.
Please suggest how do I get to execute a cgi script in=
stead
the Apache::Test env.
Regards,
Balaji
--_000_DB27343170B6764ABBB195186225DDB1E260B88DF1EGLEX07VS01 ds_--