If I go to http://localhost/cgi-bin/ I get the cgi-bin index.

If I go to srm.conf file and take add
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/

Then it says I dont have access to the cgi-bin

This is from root.
If I try to go into a user cgi-bin I cant access it period.
This is a somewhat fresh install of linux (redhat 6.0) and I haven't really
changed anything..

Ken

At 05:15 PM 6/19/99 -0700, you wrote:
>I'm gonna have to think about this.  In the meantime, what do you mean
>by "run a txt file in cgi-bin"?
>
>Ken Dalton wrote:
>> 
>> Ok , that is one problem..(trying file instead of http) but now it says
>>  'you don't have permission to access /cgi-bin/test.cgi'
>> 
>> The cgi-bin and cgi files are all set to 777 and 755.
>> I can run a txt file in the cgi-bin though.
>> 
>> Something I'm missing here ?
>> 
>> Ken
>> 
>> At 04:31 PM 6/19/99 -0700, you wrote:
>> >The problem is how you are running the CGI.  You've configured Apache,
>> >but you aren't using Apache to serve up the file...you're just opening
>> >the file.
>> >
>> >Instead of file:/..., try http://localhost/cgi-bin/filename.cgi
>> >
>> >To run a CGI program from the command line: just do it.  It's a program
>> >and it prints on stdout.  If it takes parameters you have a different
>> >story.  You may be able to feed the params via stdin using echo or
>> >typing them in directly.
>> >
>> >Ken Dalton wrote:
>> >>
>> >> I am running Redhat Linux 6.0 with the latest version of apache.
>> >> All the config files are now in 1 file which is where I put the
AddHandler
>> >> line.
>> >>
>> >> How do I run cgi from the command line ?
>> >>
>> >> In netscape I type file:/home/httpd/cgi-bin/filename.cgi and thats
when the
>> >> code comes up instead of the cgi running.
>> >>
>> >> Ken
>> >>
>> >> At 04:36 PM 6/19/99 -0700, you wrote:
>> >> >What version of apache are you running? Recent versions changed the
>> >> >conventions to consolidate all the config files into one -- are you
>> putting
>> >> >the AddHandler line in the right file?
>> >> >
>> >> >Is your cgi program executable? Can you run it from the command line?
>> >> >
>> >> >Did you set your apache configuration to make cgi programs
executable from
>> >> >the directory they are in?
>> >> >
>> >> >At 03:58 PM 6/19/99 -0700, you wrote:
>> >> >>Can someone help me out with this cgi problem ??
>> >> >>From root ,netscape is just showing me the cgi code and its not
executing
>> >> it.
>> >> >>I have AddHandler cgi-script .cgi enabled..
>> >> >
>> >> >------------------------------------"Never tell me the odds!"---
>> >> >Ray Olszewski                                        -- Han Solo
>> >> >Palo Alto, CA  94303-3603                      [EMAIL PROTECTED]
>> >> >----------------------------------------------------------------
>> >> >
>> >
>> >--
>> >My public encryption key is available from
>> >www.az.com/~drysdam/crypt/rysdam.gpg.html
>> >and of course www.keyserver.net
>> >
>
>--
>My public encryption key is available from 
>www.az.com/~drysdam/crypt/rysdam.gpg.html
>and of course www.keyserver.net
>

Reply via email to