This question about Installation of Foswiki: Answered
Can't config using windows xp, apache and activeperl
I'm new at all of this and I am following the instructions on
FoswikiOnWindowsApacheAndActivePerl to install
FosWiki. First, I ran into an error when starting Apache that said "Invalid command 'RewriteEngine'..." I uncommented the line "LoadModule setenvif_module modules/mod_setenvif.so" in httpd.conf and now Apache seems to start.
Now, when I try to go to
http://localhost/foswiki/bin/configure, I get the following in my browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, xxxxxxx@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.<br />More information about this error may be available in the server error log.
I get the following in the apache error log:
[Thu Jul 02 18:24:09 2009] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: configure
[Thu Jul 02 18:24:09 2009] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/www/foswiki/bin/configure
As I said, I'm new at this an I would appreciate any help. If you need any more information about my configuration, please let me know.
Thanks in advance.
--
IlyaBarshai - 03 Jul 2009
Your shebang seems to be incorrect. All perl scripts (
foswiki\bin\
) start with a shebang on the first line. This sets the interpreter for which the following code is meant for. Foswiki is shipped with a standard shebang for perl in the *nix-world:
#!/usr/bin/perl
. This path does not exist on a wind*ws machine. Please correct all shebangs to something like:
#!c:\perl\bin\perl.exe
--
OliverKrueger - 03 Jul 2009
I looked around for documentation about the shebang required for Windows XP. The
ActivePerl site had an
FAQ that showed the shebang for the Win XP environment as:
#!perl
So I changed the foswiki\bin\configure file's shebang to that and it seems to be working. Thanks Oliver.
--
IlyaBarshai - 09 Jul 2009
This assumes, that perl.exe is in your PATH environment variable.
--
OliverKrueger - 09 Jul 2009
(Discussion refactored. See
revision 11 for the full thread.)