Download the software mod_perl-1.27.tar.
Download related software
Mod_perl-1.27.tar Download: http://perl.apache.org/download/index.html
Download the mod_perl compressed package. to download mod_perl 2.0, because I use APACHE2.X. if it is apache1.X, download mod_perl1.0.
Unpack and execute:
Perl Makefile. PL MP_APXS =/usr/local/apache/bin/apxs
Make
Make test
Make install
Then, append a line in httpd. conf.
LoadModule perl_module modul ⺌ es/mod_perl.so
Check whether mod_perl is supported.
Enter a website that does not exist and list it to see if mod_perl exists.
Yes.
Telnet localhost 80
Enter get Head/http/1.0
Check whether mod_perl exists.
Install Apache: ASP
Perl-MCPAN-e shell
Cpan> install CPAN
Cpan> install MLDBM
Cpan> install MLDBM: Sync
Cpan> install Apache: ASP
Append the following content to the httpd. conf file:
PerlModule Apache: ASP
SetHandler perl-script
PerlHandler Apache: ASP
PerlSetVar Global.
PerlSetVar StateDir/tmp/asp
Create an asp file and test it ~