httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor B. Gonzalez" <apacheusergr...@vbgunz.com>
Subject Re[2]: [users@httpd] Perl is so hard to install onto Apache, how, please help...
Date Sat, 31 May 2003 20:14:48 GMT
Hello Apache,

RB> Always look in the error log first, no matter what goes wrong. It will
RB> give you a great deal of information that is not immediately evident
RB> from looking in the browser error messages.

Perl is not registered in my registry. If I can tell Apache where Perl
is exactly, it would probably be my best option. I need for perl and
Apache to be portable the way I have Apache and PHP at the moment.

I thank everyone trying to help me but I am still stuck in the
struggle with Perl. I am copying directly into this message my
changelog in trying to install Perl. Forgive me if it too much.

In the end I simply need Perl to be portable. I would like to bundle
Apache into one of my projects and unfortunately I need Perl... I am
also am attaching my httpd.conf file for further examination if anyone
is curious in looking it over.

Here is my Perl install changelog

01. Added ExecCGI to line 239.
    238. <Directory />
    239.    Options FollowSymLinks ExecCGI
    240.    AllowOverride None
    241. </Directory>

02. Added index.pl and index.cgi to line 321.
    321. DirectoryIndex index.php index.phtml index.php3 index.pl index.cgi index.html index.html.var

03. Uncommented Line 765.
    765: AddHandler cgi-script .pl .cgi

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:24:38 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't create child process: 720003: printenv.pl
[Sat May 31 15:24:38 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't spawn child process: Z:/Apache/cgi-bin/printenv.pl
------------------------------------------------------

Changed only line 239 and according to guide added a "+" symbol to ExecCGI.

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:28:26 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't create child process: 720003: printenv.pl
[Sat May 31 15:28:26 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't spawn child process: Z:/Apache/cgi-bin/printenv.pl
------------------------------------------------------

Removed "+" symbol from line 239 according to Apache Documentation and commented out line
509.

509. #ScriptAlias /cgi-bin/ "Z:/Apache/cgi-bin/"

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:33:33 2003] [error] [client 127.0.0.1] File does not exist: Z:/Apache/htdocs/cgi-bin
------------------------------------------------------

Commented out lines 515 through 520

515. <Directory "Z:/Apache/cgi-bin">
516.    AllowOverride None
517.    Options None
518.    Order allow,deny
519.    Allow from all
520. </Directory>

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:37:56 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory:
Z:/Apache/htdocs/printenv.pl
------------------------------------------------------

Added +ExecCGI to line 267
267.     Options Indexes FollowSymLinks +ExecCGI

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:43:32 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't create child process: 720003: printenv.pl
[Sat May 31 15:43:32 2003] [error] [client 127.0.0.1] (OS 3)The system cannot find the path
specified.  : couldn't spawn child process: Z:/Apache/htdocs/printenv.pl
------------------------------------------------------

Changed the shebang line in the printenv.pl and mapped it to Perl.

Restart server, access script, ErrorLog
------------------------------------------------------
No Error but no execution of script, file will only download...
------------------------------------------------------

Added ScriptInterpreterSource registry to httpd.conf but now file opens directly in phpedit.

Restart server, access script, ErrorLog
------------------------------------------------------
[Sat May 31 15:56:40 2003] [error] [client 127.0.0.1] Premature end of script headers: printenv.pl
------------------------------------------------------

END OF PERL INSTALL CHANGELOG...

Please forgive me if it was sloppy... I've been stuck trying to solve
this problem almost all day today May 31st 2003... My brain is
literally tired...

My Perl.exe is located at Z:\Apache\Perl\Bin\perl.exe and all of its
files I am guessing is relative to itself.

I need to bundle Perl but cannot write to the Registry. If I need to
manually change the shebang line on every script I'll do it but even
that solution is *not* working at the moment.

Thank you a thousand times just for looking this over. It is without a
doubt a thousand times appreciated.

Please look at my httpd.conf file for errors. Thanks again.

-- 
Best regards,
 Victor B. Gonzalez                          

apache_2.0.46-win32-x86-no_src
Windows XP 5.1 Build 2600 Service Pack 1
Mime
View raw message