Building Apache::ASP 2.57
Building a Web Server, for Windows
Requirements
- Microsoft Visual C++
[we will use Visual Studio 98 / VC++ 6.0]
[Visual Studio .NET will also work with the same instructions] - Perl
- mod_perl
- Notes:
- When using the command-line (command-shell) with VC++, always set the Build Environment and update the System PATH to reflect the tools used in the build --> Guide: Working with the Command Shell
Download
- Home : http://www.apache-asp.org/
- Package(win32 source) : Apache-ASP-2.57.tar.gz
- Unpack as C:\build\Apache-ASP-2.57
Original Instructions
- ...\Apache-ASP-2.57\README
Our Configuration
- Base Perl location : C:\www\perl
[do not install to a directory that contains white spaces] - Base Apache2 location : C:\www\Apache2
Setup
A group of Perl modules need to be built and installed prior to the main Apache::ASP build process.
- Download and unpack the following modules...
- In the order above, from the source directory of each module, build and install each module...
[read file README in each module dir for the official instructions]...\module> perl Makefile.PL...\module> nmake...\module> nmake test...\module> nmake install
Main Build Instructions
cd /d C:\build\Apache-ASP-2.57> perl Makefile.PL> nmake> nmake test> nmake install
Apache2 Setup for Apache::ASP
- Edit \www\Apache2\conf\httpd.conf
PerlModule Apache::ASP
<Files ~ (\.asp)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir C:/tmp/asp
</Files>
- Add
index.aspto theDirectoryIndexfield of httpd.conf - Create directory C:\tmp
[Apache::ASP will not work without this dir]
Testing Apache::ASP
This will create an example ASP file, hello.asp
- Create hello.asp in your webroot (DocumentRoot) directory
<html>
<head>
<title>
</title>
</head>
<body>
<%
$Response->Write("Congratulations, you have successfully installed Apache::ASP");
%>
</body>
</html>
- Access http://localhost/hello.asp

