So I have tried the method below ie

<form action="/cgi-bin/myscript.cgi">

and the server was unable to find the file? 
I have tried commenting out the other alias which was pointing somewhere
else for the cgi-bin
I have removed the file associations with each pl/cgi file this then
brings up the open with dialog box

So my guess is somehow Apache isn't opening the cgi files. Apache is
running I proved it with the localhost page

And another thing running the script by the command line just produces
the script, by that I mean, where I would have thought it would have run
the html bit it doesn't. It prints all the tags as well. Or am I
misunderstanding what should happen?

Any other suggestions please

Kelvin

> -----Original Message-----
> From: Scot Robnett [mailto:scot@;insiteful.tv]
> Sent: 11 November 2002 14:44
> To: David T-G; perl beginners cgi
> Cc: Kelvin McWha
> Subject: RE: Unable to run cgi script
> 
> I don't think that's it; with the ScriptAlias set it should call the
> script
> through a relative or full path as easily as it does via that full
HTTP
> call. I'm curious what the document root is...if it is /home/kelvin,
then
> technically you *should* just be able to write it as <form
> action="/cgi-bin/myscript.cgi">. Or, if you want to try the HTTP call,
> <form
> action="http://localhost/cgi-bin/myscript.cgi";>.
> 
> It sounds to me like .cgi or .pl may already have file associations
with
> an
> external application (since the scripts are opening in your editor),
and
> for
> some reason those are overriding your AddHandler directive in Apache.
Did
> you try troubleshooting it by using an either/or approach? By this I
mean
> simply adding a handler for either .cgi or .pl but not both, and
trying it
> that way.
> 
> What are the results you get when you run the script via the command
line
> or
> run a perl -c on it?
> 
> Another quick question: I noticed that you called the configuration
file
> httpd.config. Since its actual name is httpd.conf, I wonder if it's as
> simple as renaming your configuration file? If you already have it
named
> httpd.conf, then never mind this question. :)
> 
> -----
> Scot Robnett
> inSite Internet Solutions
> Square West Center
> 454 West Jackson Street
> Woodstock, IL 60098
> (815)206-2907 office
> (815)342-6480 mobile
> [EMAIL PROTECTED]
> http://www.insiteful.tv
> 
> 
> -----Original Message-----
> From: David T-G [mailto:davidtg-perl-beginners@;justpickone.org]
> Sent: Monday, November 11, 2002 7:58 AM
> To: perl beginners cgi
> Cc: Kelvin McWha
> Subject: Re: Unable to run cgi script
> 
> 
> Kelvin --
> 
> ....and then Kelvin McWha said...
> %
> ....
> % <form method="post" action="/home/kelvin/cgi-bin/myscript.cgi">
> 
> I *think* you have to qualify this, as
> 
>   action="http://localhost/home/kelvin/cgi-bin/myscript.cgi";>
> 
> Certainly worth a try...
> 
> 
> HTH & HAND
> 
> :-D
> --
> David T-G                      * There is too much animal courage in
> (play) [EMAIL PROTECTED] * society and not sufficient moral
courage.
> (work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and
> Health"
> http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl
> Npg!
> 
> 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to