nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

debian apache2 cgi-bin location

This is a discussion on debian apache2 cgi-bin location within the Linux software forums, part of the Linux Getting Started category; Hey all where is debian apache2 cgi-bin location? I know little bit fedora it is under /var/www but here under ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-24-2006, 12:40 PM
Guest
 
Posts: n/a
Default debian apache2 cgi-bin location

Hey all where is debian apache2 cgi-bin location? I know little bit fedora it is under /var/www but here under debian i'm not able to find out? Please help

thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-24-2006, 06:44 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
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
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
php apache2 mysql pansarevai Web servers 1 03-05-2008 12:06 AM
How to start Apache2 automatically at boot satimis Web servers 2 02-03-2008 06:03 PM
Acetoneiso 2 Debian Linux sweta Ubuntu / Debian 0 11-01-2007 02:49 AM
iptables under debian ricc Linux software 1 04-22-2007 08:26 PM
VirtualHost Problems on Apache2 rcordeiro Linux software 3 11-08-2006 10:30 PM


All times are GMT +5.5. The time now is 05:58 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36