|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
>> 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> |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
httpd.conf.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > allow users to run CGI scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|