Forum Moderators: phranque
1. Install Apache (version 2.0.59)
../configure --prefix=/i03_01/apache2 --enable-so --enable-rewrite
2. Install mod_perl-2.0.2
perl Makefile.PL MP_APXS=/i03_01/apache2/bin/apxs
make
make install
3. Install Apache-ASP-2.59
perl Makefile.PL
make
make test
make install
4. Change the httpd.conf
LoadModule perl_module modules/mod_perl.so
PerlModule Apache::ASP
<Files ~ (\.asp)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp
</Files>
<Directory $DOCUMENT_ROOT/asp/eg >
Options FollowSymLinks
AllowOverride All
</Directory>
When i run asp in /asp/eg, the following errors occurred:
[Tue Nov 21 12:21:53 2006] [error] [client X.X.X.x] Can't locate object method "get" via package "APR::Table" at /usr/local/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 2016.\n\tApache::ASP::get_dir_config('APR::Table=HASH(0x1c1d90)','Global') called at /usr/local/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 275\n\tApache::ASP::new('Apache::ASP','Apache2::RequestRec=SCALAR(0x1c1e50)','/i03_01/apache2/htdocs/asp/eg/chk_www.asp') called at /usr/local/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 183\n\tApache::ASP::handler('Apache2::RequestRec=SCALAR(0x1c1e50)') called at -e line 0\n\teval {...} called at -e line 0\n, referer: [hkpu30.polyu.edu.hk:60004...]
Anyone can help me?
Thanks.