On unix, let apache support asp-Linux Enterprise Application-Linux server application information. The following is a detailed description. This issue is discussed here only for research. I personally think that on unix, it doesn't make any practical sense to enable apache to support asp. If asp was previously developed on win, I think you should just make it easy to use in win. You don't have to worry about porting it to unix. I tested and installed it on solaris. Other systems, freebsd, linux is similar to sco. If you forget to give me your feedback during the test, thank you. Let's get started and download the related software apache_1.3.27.tar: http://www.apache.org/dist Download Apache-ASP-2.49.tar: http://cpan.org/modules/by-module/Apache/ Download mod_perl-1.27.tar: http://perl.apache.org/download/index.html Stable.tar (perl-5.8.0) download: http://www.cpan.org/src/ Download the above software to a directory, such as test 1: unzip # tar xvf apache_1.3.27.tar # tar xvf Apache-ASP-2.49.tar # tar xvf mod_perl-1.27.tar 2: install apache in order to install mod_perl in the form of DSO, so we need to have the so Module # cd apache_1.3.27 #. /configure -- prefix =/usr/local/apache # make install. In this case, some modules cannot be added during compilation, so I have to manually specify modules, use the following command to install apache #. /configure -- prefix =/usr/local/apache -- enable-module = auth_anon -- enable-module = auth_dbm -- enable-module = autoindex--enable-module = cgi -- enable-module = expires -- enable-module = proxy -- enable-module = rewrite--enable-module = so # make install check the installed module # cd/usr /local/apache/bin/httpd-l Compiled-in modules: http_core.c mod_env.c ??#=mod_=de.c mod_autoindex.c ??=mod_actions.c =mod_rewrite.c mod_access.c mod_auth.c =#mod_so.c =suexec: disabled; invalid wrapper/usr/local/apache/bin/suexe 3: Install mod_perl % make-v % gcc-v % perl-v to install perl. I don't have enough perl versions, so I upgraded the perl version and downloaded it from v5.8.0. http://www.cpan.org/src/ Stable.tar # tar xvf stable.tar # cd perl-5.8.0/# make install to sunfreeware download pkg installation can also be, may also be simpler # cd mod_perl-1.27 look at DSO compiled syntax # grep DSO Makefile. PL # perl Makefile. pl everything = 1 DO_HTTPD = 1 USE_APACI = 1 USE_DSO = 1 USE_APXS = 1 WITH_APXS =/usr/local/apache/bin/apxs # make install test mod_perl module to start apache # telnet localhost 80 Trying 127.0.0.1... connected to localhost. escape character is '^]'. enter get Head/http/1.0 HTTP/1.1 400 Bad Request Date: Wed, 25 Dec 2002 03:32:32 GMT Server: Apache/1.3.27 (Unix) mod_perl/1.27 OK, mod_perl adds the asp module to perl. One method is to install CPAN, and the other is to install CPAN on a regular basis # perl-MCPAN-e shell cpan> install CPAN... installing the Apache: ASP bundle will automatically install all the modules Apache: ASP is dependent on as well as Apache: ASP itself. if you have trouble installing the bundle, then try installing the necessary modules one at a time: cpan> install MLDBM: Sync cpan> install Digest :: MD5 cpan> install Apache: ASP For extra/optional functionality in Apache: ASP 2.31 or greater, like support for FormFill, XSLT, or SSI, you can install this bundle via CPAN: cpan> install Bundle: Apache: ASP: Extra you can also install the asp module Otherwise and just copy ASP in a conventional way. pm to $ PERLLIB/site/Apache> perl Makefile. PL> make test> make install is installed, and a test is performed in htdocs. asp. content: For loop incrementing font size:
<% For (1 .. 5) {%> "> Size = <% = $ _ %>
<% }%>