Re: [Question] OS X 10.4
[prev]
[thread]
[next]
[Date index for 2005/06/04]
Stas Bekman wrote:
> Anonymous Lion wrote:
>
>> Newbie
>>
>> I'm trying to set up the existing Apache 1.3 on my OS X 10.4 to run
>> perl scripts. I believe I have made all of the necessary httpd.conf
>> changes. When I try to run a perl script from the command line, all
>> goes well. But when I try to run it from my relocated CGI-Executables
>> folder/directory (http://localhost/CGI-Executables/first.cgi) I get
>> three Internal Server Errors.
>>
>> -----------------------------------------------
>> Script (name is first.cgi)
>> #!/usr/bin/perl/ -w
>> print "Content-type: text/html\n\n";
>> print "<h2>Hello, World!</h2>\n";
>> -----------------------------------------------
>>
>> ------------------------------------------------------------
>> error_log entries (without date-time stamps)
>> (20)Not a directory: exec of /Sites/CGI-Exec$
>> [client 127.0.0.1] Premature end of script h$
>> [client 127.0.0.1] File does not exist: /Sit$
>> ------------------------------------------------------------
>>
>> Any assistance on where to look for solutions to this would be
>> appreciated. I have been able to find quite a few instances of
>> "Premature end of script" in archived discussions, but none of the
>> solutions I have found appear to make a difference. I have not been
>> able to find anything on "Not a directory" or "File does not exist".
>
>
> Most likely your config file is broken. Please refer to:
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Registry_Scripts
> Pay close attention to the httpd.conf bits.
Wrong link, he said apache 1.x, so:
http://perl.apache.org/docs/1.0/guide/getwet.html#Configuring_and_Starting_the_mod_perl_Server
However, he didn't actually say if he's using mod_perl, so maybe this is
a misdirected CGI question. Are you trying to use mod_perl, Mr. Lion,
or just run CGI scripts?
- Perrin