default userpic

Installation Problems using XAMPP (Apache , MySQL, PHP and Perl)

Vote 0 Votes

Has anyone tried to install MT on XAMPP for development purposes?

I use XAMPP (allows me to create a web apache, mysql, php and pearl, on a portable hard drive) for development of websites and have easily installed other applications (i.e. Joomla, Drupal, etc) on XAMPP with out issues so I can develop and show people websites with out having to use a hosted site.

However, when trying to install MT I keep getting error: Server error!

The server encountered an internal error and was unable to complete your request.

Error message: couldn’t create child process: 720005: mt.cgi

I have tried reconfiguring the mt.cgi file to point it to where pearl is loaded yet still can not get past the error?

Any help would be greatly appreciated.

Reported on Movable Type 4.2

19 Replies

| Add a Reply
  • Did you change the path at the top of each .cgi file to reflect the Perl path for XAMPP? Also, did you install the Perl add-on?

  • Thanks for the response - here is what I have - can you help?

    XAMPP and Pearl are installed on e:\
    the path to the pearl directory is e:\xampp\pearl\bin\

    I modified each of the .cgi files to point to that directory.
    (i.e. #!E:\xampp\perl\bin -w)

    I am still recieveing the same error:

    Server error!

    The server encountered an internal error and was unable to complete your request.

    Error message:
    couldn't create child process: 720005: mt.cgi

    If you think this is a server error, please contact the webmaster.

    Error 500

    localhost
    01/05/09 10:25:38
    Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 mod_perl/2.0.4 Perl/v5.10.0

  • Try E:/xampp/perl/bin/perl.exe -w as a replacement for /usr/bin/perl -w at the top of each cgi script.

    My guess is that it's not working because you have been calling it "pearl," not "perl."

  • Yes - that did it! Hate Typos! Well at least it got me though one set of errors. Now here is what I am getting:

    Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory"

    Any ideas?

    Thanks again for all your help!

  • Did you install the Perl add-on kit from the XAMPP website? The Perl installation you get with the basic XAMPP installation is only the interpretter and a handful of libraries. Based on some googling, it sounds like you don't have the add-on kit installed which would provide DBD::MySQL.

  • Yes I installed the Perl add-on kit. Here is the output from running The mt-check.cgi script

    System Information

    Movable Type version: 4.23-en
    Current working directory: E:/xampp/htdocs/MT
    MT home directory: E:/xampp/htdocs/MT/
    Operating system: MSWin32
    Perl version: v5.10.0
    Perl include path:
    E:\xampp\htdocs\MT\addons\Community.pack\lib
    E:\xampp\htdocs\MT\addons\Commercial.pack\lib
    E:\xampp\htdocs\MT\extlib
    E:\xampp\htdocs\MT\extlib
    E:\xampp\htdocs\MT\lib
    E:/xampp/perl/lib
    E:/xampp/perl/site/lib
    .
    Web server: Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 mod_perl/2.0.4 Perl/v5.10.0
    (Probably) Running under cgiwrap or suexec

    let me know if you want me to zip up the entire xampp folder with the MT install. As what I would like to create for everyone which would be nice is a complete Xampp / Movable Type dev configuration ready to go...i.e unzip, browse to localhost/mt and everything is setup to install MT

  • You can post a sanitized version of your mt-config.cgi and post the results for running:

    E:\xampp\perl\bin\perl.exe -e "require DBD::MySQL"

  • E:\xampp\perl\bin>perl.exe -e "require DBD::MySQL"
    DBI object version 1.607 does not match $DBI::VERSION 1.604 at E:/xampp/perl/lib
    /DynaLoader.pm line 226.
    BEGIN failed--compilation aborted at E:/xampp/perl/lib/DBI.pm line 263.
    Compilation failed in require at E:/xampp/perl/site/lib/DBD/MySQL.pm line 7.
    BEGIN failed--compilation aborted at E:/xampp/perl/site/lib/DBD/MySQL.pm line 7.

    Compilation failed in require at -e line 1.

    Here is the mt-config.cgi:

    # The CGIPath is the URL to your Movable Type directory
    CGIPath http://localhost/mt/

    # The StaticWebPath is the URL to your mt-static directory
    # Note: Check the installation documentation to find out
    # whether this is required for your environment. If it is not,
    # simply remove it or comment out the line by prepending a "#".
    StaticWebPath http://www.example.com/mt-static

    #================ DATABASE SETTINGS ==================
    # REMOVE all sections below that refer to databases
    # other than the one you will be using.

    ##### MYSQL #####
    ObjectDriver DBI::mysql
    Database mt
    DBUser root
    DBPassword root
    DBHost localhost

    • The first part seems to be the culprit. You have a problem with your installation of DBI and DBD. What exact version of XAMPP did you install?

    • If you are using 1.7, which I think you are based on your version numbers for individual apps there, you might want to downgrade to the previous stable release. Sometimes the XAMPP team doesn't do a very good job at packaging their new releases. I've run into similar problems in the past where they didn't quite sync up the base XAMPP package with the Perl add-on kit properly.

    • Try dropping down to XAMPP 1.6.5, which was the last stable release that had a reasonably functional Perl distribution. While you're there, get Perl package 5.8.8-2.2.8 (5.8.8 for apache 2.2.8). When I run perl -e "require DBD::MySQL;" that Perl code executes with that configuration.

  • Yes I am using XAMPP 1.7.0. I will drop down as sugested and let you know if that does the trick.

    Thanks again for all your assistance.

  • I went town to XAMPP 1.6.5 and still come up with the same error:

    Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory"

    Any ideas?


  • Ok - I made sure I wnt to XAMPP 1.6.5 and added the perl addon 5.8.8.2.2.3

    When I run perl -e "require DBD::MySQL it executes no errors

    However, I am still getting the error:
    Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory" when trying to install?

    Have you succesfully installed MT in a clean XAMPP 1.6.5 and perl addon 5.8.8.2.2.3

  • Hi, I also had this problem with

    Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory"

    It turns out that some perl libraries were missing: DBI and DBI::Pg (I tried to use PostgresQL database). If you want to use MySQL change DBI::Pg into DBI module suitable for your database.

  • Hey im having a similar problem can anyone help? I have xampp on windows i know i have perl correctly installed through 'perl -v' in command prompt (windows).
    My script headers are right as i can see
    #!c:/Perl/bin/perl.exe my scripts run ok in the cmd window aswell.

    Placing test scripts in htdocs folder and accessing through 'localhost' path gets a 404 error html headers dont display either? Are there some additional settings i have to sort out? Anyone??

  • I am also having issues trying to get MT to work using XAMPP.

    I am just getting a 404 page, so I know it must be something obvious.

    CGIPath http://localhost/cgi-bin/mt/

    StaticWebPath http://localhost/mt-static

    At the top of all of the .cgi files I have put

    #!C:/xampp/perl/bin/perl.exe -w

    I tried both upper case and lower case letter for the drive.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012