About Apache ASP
Apache::ASP provides an Active Server Pages port to the Apache Web Server with Perl scripting only, and enables developing of dynamic web applications with session management and embedded Perl code. There are also many powerful extensions, including XML taglibs, XSLT rendering, and new events not originally part of the ASP API!
For those wanting to install ASP, this is not the greatest thing, if you are looking for a full fledged ASP solution on linux check out Chilisoft ASP, I do not guarantee this will work on your box, this tutorial is fairly basic, however expects most people know a little bit about linux.
Installation of Apache ASP
First ssh into your machine as root, or switch to root by using Su -
Step 1. Get the goods
root@Server [~]# wget http://layer1.cpanel.net/apache-asp.sea
Step 2. Set permissions
root@Server [~]# chmod 755 apache-asp.sea
Step 3. Initial installation (Can take up to a minute or so)
root@Server [~]# ./apache-asp.sea
Step 4. restart apache
root@Server [~]# /etc/init.d/httpd restart
Step 5. Configure Apache (use vi/pico etc)
root@Server [~]# vi /usr/local/apache/conf/httpd.conf
(Vi commands, insert to begin editing, CTRL+C to get to wait status, colon will popup waiting for your command, w = write, q=quit)
Now you wana look this area (you could say its near the middle)
<Files ~ "^.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
Below that add the following data:
PerlModule Apache::ASP
<Files ~ (.asp)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp
</Files>
Lets continue...
Now find in httpd.conf the following.
<IfModule mod_dir.c>
(Should contain index.html etc), now add index.asp (but do not delete the origional arguments).
</IfModule>
Step 6. Now save httpd.conf
:wq
Step 7. Restart apache
root@Server [~]# /etc/init.d/httpd restart
Now you should be setup and ready to go, if you are having any errors please check to see that you did each step correctly. This installation has been tested with Cpanel 8.x series & RHL 8.0-9.0
留言列表