HOME | SITEMAP | SUPPORT | FAQs
DOMAIN MANAGE/BACKROOM | BILLING
4Domains Web Hosting and Domain Registration
Account Login   WebMail

Web Hosting

Domain Names

Domain Auction

Solutions

Home > Support > Serverhelp > Webserver > Cgi

Allowing CGIs to Execute in Any Directory

To allow CGIs to execute in any directory on your web server do the following:

  1. Uncomment out the following AddHandler directive in the ~/www/conf/httpd.conf file on your Virtual Server:

    AddHandler cgi-script .cgi

    You may want to add a Handler for perl scripts:

    AddHandler cgi-script .pl

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you should instead uncomment out the following AddType directive in the ~/www/conf/srm.conf file:

    AddType application/x-httpd-cgi .cgi

    You may want to add a Type for perl scripts:

    AddType application/x-httpd-cgi .pl

  2. Add an ExecCGI option to the Options for your Root Document declaration (<Directory /usr/local/etc/httpd/htdocs>) in the ~/www/conf/httpd.conf file on your Virtual Server:

    Options Indexes FollowSymLinks ExecCGI

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you will need to make this change in the ~/www/conf/access.conf file instead.

  3. Restart Your Virtual Server Web Server


Why Us? | About | Contact Us
Knowledge Base | Support Request
Expired Domains | Domain Name Auctions | VPS Directory | DNS Tools
Hosting Terms | Domain Terms | Privacy Policy
Copyright © 2008 - 4Domains.com, Inc.


web hostinghostingdomaindomain namedomain namescheap web hostingecommerce website designdomain registration

Web Monitoring | SEO Technology | Hacker Scanner | DNS Tools | Online Backup