Fedora Linux Support Community & Resources Center
  #1  
Old 21st July 2004, 05:26 AM
Jaws Offline
Registered User
 
Join Date: Jul 2004
Posts: 33
Unhappy CGI for Mutliple users.

Hi. Linux newbie here.

I just recently configured my apache server to work with multiple users. Well, a few of my users want a cgi-bin folder. The problem is, when I give them the CGI-BIN folder, any time they try to execute a .cgi or .pl file, it gives them "Internal Server Error 500". I checked my logs, and it simply says Premature end of script headers.

I have tried all of the following:
- Changing File permissions
- Setting file owners to 'apache'
- Setting file groups to 'apache'
- Editing httpd.conf

Any other things I can try?

In httpd.conf, I have this:
<Directory "/home/slash/public_html/cgi-bin/">
Options ExecCGI
SetHandler cgi-script
</Directory>

The reason I dont have /home/*/ is because I dont want all users to have CGI permissions, only ones that need it.

The above doesnt work And I tried ScriptAlias configuration also, no go.

Thanks in advance for any help!
Reply With Quote
  #2  
Old 21st July 2004, 05:39 AM
mcelroyj Offline
Registered User
 
Join Date: Jul 2004
Location: Columbus, OH
Age: 34
Posts: 47
Here is what I have for CGI execution in my httpd.conf:

<VirtualHost *>
<Location />
Options ExecCGI
</Location>
</VirtualHost>

I assume that you are using httpd 2.0.x
Reply With Quote
  #3  
Old 21st July 2004, 05:48 AM
Jaws Offline
Registered User
 
Join Date: Jul 2004
Posts: 33
Quote:
Originally Posted by mcelroyj
Here is what I have for CGI execution in my httpd.conf:

<VirtualHost *>
<Location />
Options ExecCGI
</Location>
</VirtualHost>

I assume that you are using httpd 2.0.x
Yes, Im using apache 2.0.49.

Will the commands you gave me above allow me to specify which users are allowed to use CGI and which arent?
Reply With Quote
  #4  
Old 21st July 2004, 05:56 AM
Jaws Offline
Registered User
 
Join Date: Jul 2004
Posts: 33
I just tried the code above, and it didnt work. any other ideas?
Reply With Quote
  #5  
Old 21st July 2004, 05:57 AM
mcelroyj Offline
Registered User
 
Join Date: Jul 2004
Location: Columbus, OH
Age: 34
Posts: 47
You can set the Location directive to different directories, thus allowing directory by directory granularity.

e.g.

<Location /steve>
Option ExecCGI
</Location>
<Location /tim>
Option ExecCGI
</Location>

There might also be a module to configure the type of access you're looking for, I'm not 100% sure, though.
Reply With Quote
  #6  
Old 21st July 2004, 05:59 AM
Jaws Offline
Registered User
 
Join Date: Jul 2004
Posts: 33
Ive tried the <Location> directive before. o.o; It didnt work. Has anyone here managed to successfully setup multiple users with cgi-bin access? If you have, I'd really love to have a look at your httpd.conf file. ;_;
Reply With Quote
Reply

Tags
cgi, mutliple, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions question: no writing by users even when users in group with rwx on object Kholdstate Using Fedora 5 29th July 2009 04:05 PM
Blocking for Mutliple Mutexs, Semaphores,etc... siegfried Programming & Packaging 5 20th August 2006 04:31 AM
DHCP mutliple subnets one network tron2010 Servers & Networking 2 12th April 2006 06:36 PM
How to treat remote (XDMCP) users as console users? felixs Using Fedora 1 1st October 2005 10:35 PM
FC3 webserver running mutliple domains mosimo Servers & Networking 2 8th April 2005 12:05 PM


Current GMT-time: 22:32 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat