I'm trying to get an MT dev server running on my local network, I have a default install of XAMPP on win2008 server but each time I try and run the install procedure I get an error:-
couldn't create child process: 720002: mt.cgi
I understand the problem is with the location of Perl so modified the first line of the cgi scripts as follows:-
#!C:\xampp\perl\bin\perl.exe -w Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
# This program is distributed under the terms of the
Yet still I have the same problem - the location of perl is correct so I guess the syntax is wrong - can anyone help?
Thanks in advance!
Reported on Movable Type 5
If that's how your first few lines look, then you're passing in "Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd." as an argument to Perl with that statement.
Actually, you want to change the "File Association" (click help in explorer and type that in for full details)
Nutshell:
navigate to a .cgi file
right click
select "Open with"
check box "Always open with this application"
navigate to the perl binary and double click.
(standard install: [letter]:\xampp\perl\bin\perl.exe)
NOTE: this will actually run the perl file so you will see a cmd window pop up and scroll a bunch of text and then disappear.
Make sure .pl is associated as well using the same method.
Unix Knowledge:
#!/usr/bin/perl
is called a "SheBang" or a "HashBang" this refers to '#' called Hash or Pound and '!' which is called Bang.
This is the Standard Location(tm) for the perl binary and if it isn't actually at that location, that location generally has a link that points to where it is located. (/usr/local/bin/perl on BSD systems)
WARNING: if you manually edit your perl files and change that "SheBang" line THEY ARE NO LONGER PORTABLE to a *nix type system (in other words you can't ftp your MT install to a unix host and have it work. You might also note that there are ~30 files in the xampp directory that would require editing.
If you are having this problem (previous post) make sure that you ran cpanp.bat after you install xampp.
I hope this post helps you out. Good Luck!