View Single Post

  #2 (permalink)  
Old 01-24-2006, 07:44 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

It is located at /usr/lib/cgi-bin

just put your files /usr/lib/cgi-bin if you wanna change this location to /var/www/cgi-bin then you need to put following code to httpd.conf file:

Createa /var/www/cgi-bin/:

Code:
mkdir -p /var/www/cgi-bin/
Open httpd.conf

Code:
vi httpd.conf
Append following code:

Code:
<IfModule mod_alias.c>
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/

    <Directory /var/www/cgi-bin/>
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
Restart apache and test it
Reply With Quote