Folks

Here's hoping I have not overlooked the obvious...

What follows is a report on trying to use 
ftp://theoryx5.uwinnipeg.ca/pub/other/Apache2.tar.gz

-----><8-----
Environment
===========
WinNT 4 Sp 6a

File: D:\Apache2\manual\platform\windows.html
=============================================
Comments:

1) The reference to access.conf is presumably obsolete

2) The section Running Apache for Windows as a Service does not say whether or not
 the service needs to be started after having been installed.
 I think that would help beginners

File: D:\Apache2\blib\lib\Apache2.pm
====================================
Comments:

1) This file contains the trivial bug in that the dir is specified twice

Command:

apache -V output contains:
 -D APACHE_MPM_DIR="server/mpm/winnt"
and this dir does not exist. Is this important? I assume not

Starting
========
I can't get Apache to start with options. I have not edited any files whatsoever.

Here's a cut-and-paste from a DOS window:

D:\APACHE2>bin\Apache -k start
[Thu Jan 03 11:33:45 2002] [error] (22502)The system cannot find the file specif
ied.  : No installed service named "Apache2".

D:\APACHE2>bin\Apache -k install
Using D:\Apache2/blib
Installing the Apache2 service
The Apache2 service is successfully installed.

D:\APACHE2>bin\Apache -k start
Using D:\Apache2/blib
Starting the Apache2 service
[Thu Jan 03 11:33:55 2002] [crit] (22703)The system could not find the environme
nt  option that was entered.  : Apache2: Failed to start the service process.

D:\APACHE2>bin\Apache
Using D:\Apache2/blib
Using D:\Apache2/blib

D:\APACHE2>bin\Apache -k uninstall
Removing the Apache2 service
The Apache2 service has been removed successfully.

Comments:

1) Note the 2 spaces after 'environment' in the error message after bin\Apache -k 
start.
 Is something meant to appear there?

2) It's not at all obvious that Apache only starts with no command line options

3) If I try this in another DOS window while Apache is running I get a message I find 
hard to believe:
D:\APACHE2>bin\apache -k stop
The Apache2 service is not started.

4) Only 1 Using statement is necessary

Scripts
=======
I can get http://127.0.0.1/ to work.

I can get hello to work with http://127.0.0.1/hello.

I can get d:/apache/cgi-bin/test.bat to work with 
http://127.0.0.1/cgi-bin/test-cgi.bat.

But, if I patch the she-bang line of d:/apache/cgi-bin/printenv.pl and then try
http://127.0.0.1/cgi-bin/printenv.pl, I get:
Server error!
Error message:
couldn't create child process: 22502: D:/Apache2/cgi-bin/printenv.pl
If you think this is a server error, please contact the webmaster
Error 500
127.0.0.1
03/01/02 12:15:29
Apache/2.0.30-dev (Win32) mod_perl/1.99_01-dev Perl/v5.6.1

The log says (2 msgs for every try):
[Thu Jan 03 12:15:29 2002] [error] [client 127.0.0.1] (22502)The system cannot find 
the file specified.  : couldn't create child
process: 22502: D:/Apache2/cgi-bin/printenv.pl
[Thu Jan 03 12:15:29 2002] [error] [client 127.0.0.1] (22502)The system cannot find 
the file specified.  : couldn't spawn child
process: D:/Apache2/cgi-bin/printenv.pl

Changing line 448 of httpd.conf from
 Options None
 to either
 Options ExecCGI
 or
 Options +ExecCGI
did not get printenv.pl running either. I used ^C to stop and restarted the server 
after each edit.

BSOD
====
Try starting Apache as a service, twice, with the same (default) name, in 2 DOS 
windows.
This should not be possible, surely.
-----><8-----

Cheers
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html


Reply via email to