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.)

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.0.6
Status Answered
Topic attachments
I Attachment Action Size Date Who Comment
foswiki.confconf foswiki.conf manage 5 K 08 Jul 2009 - 14:19 IlyaBarshai foswiki.conf
httpd.confconf httpd.conf manage 17 K 05 Jul 2009 - 17:53 IlyaBarshai apache httpd.conf
Topic revision: r12 - 09 Jul 2009, OliverKrueger - This page was cached on 11 Dec 2018 - 04:26.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy