Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 7th, 2001, 06:35 AM
The_Net_Muppet The_Net_Muppet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: England
Posts: 433 The_Net_Muppet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 Days 6 h 9 m 24 sec
Reputation Power: 9
allow users to run CGI scripts

Hello,

I wish to allow my users to run cgi programs, at the moment it just displays the cgi program as pure text once ran.

How do I do this?

I want it to work this way:

http://194.##.#.####/~myusername/cgi-bin

Thank you for your help

Reply With Quote
  #2  
Old October 7th, 2001, 06:51 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> it just displays the cgi program as pure text

1) Tell Apache to parse .cgi or .pl or whatever like so:

AddHandler cgi-script .cgi .pl

>> I want it to work this way

2) Now that Apache knows .cgi or .pl is to be treated as CGI script, so it will try to exec it. So you need to chmod your CGI script to be executable.

3) Now that your CGI script is executable, but you haven't give Apache the permission to execute it in cgi-bin directory under userdir. So do this:

<Directory "/home/*/public_html/cgi-bin">
Options ExecCGI
AllowOverride None
</Directory>

Reply With Quote
  #3  
Old October 7th, 2001, 07:06 AM
The_Net_Muppet The_Net_Muppet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: England
Posts: 433 The_Net_Muppet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 Days 6 h 9 m 24 sec
Reputation Power: 9
Hello freebsd,

What file do I have to edit for number 1 & 3 ?.

I have set the file permissions on the cgi scripts...

Look forward hearing from you.

I run Redhat 7.1

Reply With Quote
  #4  
Old October 7th, 2001, 05:03 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
httpd.conf.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > allow users to run CGI scripts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway