Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-24-2003, 04:28 PM   #1
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Rep: Reputation: 15
apache 2.0 user cgi-bin directories

I am trying to set up a web server on Redhat 8.0 where each user can have a directory of web pages in their home directory. I have it set up so that apache can get pages from the public_html directory and that works.

What I am working on now is letting each user have a cgi-bin directory in their home directory as well. I have tried a number of things but am kind of stumped.

First of all, I am not sure whether the cgi-bin directory should be directly in the home directory or in the public_html subdirectory.

What is the best way to do that? What settings in /etc/httpd/conf/httpd.conf do I have to use to enable this?
Old 01-27-2003, 03:10 PM   #2
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
This should be easy, but I can't figure it out... help?
Old 03-19-2003, 03:42 AM   #3
LQ Newbie
Registered: Jan 2003
Distribution: Slackware
Posts: 5
Blog Entries: 1

Rep: Reputation: 0
Take a look at It worked for me. I had to change my version to the following...

# Got this from
<Directory /home/*/public_html/cgi-bin/>
Options ExecCGI
SetHandler cgi-script

Hope this helps.

Old 03-19-2003, 04:58 PM   #4
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
I had seen that web page when I posted the original, but still couldn't get it to work. I had that line, but it still wasn't doing what I wanted it to. What I ended up having to do is put a "ScriptAlias" line for each user that was to have a script directory. I couldn't figure out any general way to do that, so I just put a line for all the users.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache cgi-bin default directories Mankind75 Mandriva 1 07-05-2004 10:22 AM
configuring cgi-bin in apache gtgoku Linux - General 1 01-19-2004 07:22 AM
.htaccess and cgi-bin (apache of course) finegan Linux - Software 4 05-01-2003 05:21 PM
no access to cgi-bin within Apache Mackeral Linux - Software 6 05-14-2002 06:15 AM
apache cgi-bin roadie Linux - General 6 06-16-2001 08:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration