How to install ASP (Apache::ASP) on cPanel

Posted on December 29th, 2006 by Alex P..
Categories: Linux, Apache.

Greeting’s

1. Login to your server via SSH as root.
(If you disabled root logins login with your other username, and su to root)
2. Type: wget http://layer1.cpanel.net/apache-asp.sea

3. Type: chmod 700 apache-asp.sea

4. Type: ./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:

5. Type: pico /usr/local/apache/conf/httpd.conf

6. Find This:

Order allow,deny
Deny from all
Satisfy All

7. Right below there, add:
## Apache::ASP Install Configuration

PerlModule Apache::ASP

SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp

8. Next, find the section that looks like:

DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp blah blah blah blah …..

9. 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).

10. Save and exit.
CTRL-x then Y then enter

11.Now restart httpd servcie

You are done! ASP For APACHE Is installed.

Alex P

0 comments.

Disable PHP for particular user

Posted on September 17th, 2006 by Admin.
Categories: Cpanel Hosting, Server Security, Apache, PHP.

Greetings guys ,

To disable PHP for a particular user on a Linux server , Put the following code in a .htaaccess file for that user as :
php_flag engine off

Also you can add following code for that in tag of taht particular domain in server’s httpd.conf .

php_admin_flag engine off
Cheers ,

Kyle,

SGugal

0 comments.

444 Script or Action Blocked - SecurePHPx v1.0

Posted on September 16th, 2006 by Admin.
Categories: Cpanel Hosting, Server Security, Apache.

Greetings Guys ,

if you ever get the error “444 Script or Action Blocked - SecurePHPx v1.0″ on your site then just do as ….

You have to add domain to SecurePHPx whitelist by editing the file /usr/lib/php/php_whitelist. Just enter the domain in this file once with www & once without www. That’s it …

Cheers : )

Admin ,

Sgugal Blog

0 comments.