NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

HowTo :: disable cgi and/or Php function in a directory

To disable cgi function in a specific diretory, do the following:

  1. cd into the directory where you want to disable cgi.
  2. Create/edit the .htaccess file in that directory.
  3. Add the following directives:
    RemoveHandler .cgi
    RemoveHandler .pl
  4. Save .htaccess file
  5. DONE.

To disable Php function in a specific diretory, do the following:

  1. cd into the directory where you want to disable Php.
  2. Create/edit the .htaccess file in that directory.
  3. Add the following directives:
    php_flag engine off
  4. Save .htaccess file
  5. DONE.
Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 318
 
Votes: 0
 
Comments: 0
 
Posted: 09 Aug, 2008 by: Customer Service S.
Updated: 03 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
RSS