Linux Research: How to make linux support ASP

Source: Internet
Author: User
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 ~

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.