Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How To: Install ASP (Apache::ASP) on CPanel  (Read 4013 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
How To: Install ASP (Apache::ASP) on CPanel
« on: August 10, 2014, 07:23:11 pm »
First, root into your box through SSH

Code: [Select]
cd ~
wget http://layer1.cpanel.net/apache-asp.sea
chmod 700 apache-asp.sea
./apache-asp.sea

You should see this going through some installation processes and things. Once it gets toward the end, it'll say that you may need to restart Apache. Don't worry about that yet.

Once that's done, you'll need to setup Apache to work with Apache::ASP:

Code: [Select]
pico /usr/local/apache/conf/httpd.conf
and find the section that has:

Code: [Select]
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

Right below there, add:


Code: [Select]
##  Apache::ASP Install Configuration

 PerlModule  Apache::ASP
 <Files ~ (\.asp)>
   SetHandler  perl-script
   PerlHandler Apache::ASP
   PerlSetVar  Global .
   PerlSetVar  StateDir /tmp/asp
 </Files>

Next, find the section that looks like:


Code: [Select]
<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp blah blah blah blah .....
</IfModule>

and add in there index.asp and default.asp so those are included as directory defaults (pages that load when no filename is given for a directory).

Save and exit. In WHM, give Apache a restart and you should be set.

The above worked for me so hopefully you have the same success.