Hey Perrin, Forgive my ignorance, I thought you had to have mod-perl installed and running to run perl cgi scripts. Can you point me in the direction of a comparison of the two? (I am very much a newbie to Apache, Perl, and programming in general. At this point, I'm really just trying to learn perl in a web environment, and am feeling very much over my head in Apache, and the Terminal for that matter.)
A.L. On 6/4/05, Perrin Harkins <[EMAIL PROTECTED]> wrote: > 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 >