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

18 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??

Add a Reply

Forum Groups

513 1681

Last Topic: Google Analytics by Argentina Elections on May 27, 2009

202 880

Last Topic: Welcome to Movable Type by solle on May 27, 2009

49 204

Last Topic: Odd problem with searches - need help by Phill M on May 24, 2009

11 42

Last Topic: Community Solution -- but where? by webmoney on Mar 16, 2009

25 99

Last Topic: Search enhancement? by Rob on Apr 14, 2009

10 21

Last Topic: Comment Box Missing by rushskeith on Jan 9, 2009

90 318

Last Topic: Getting to the settings on Post Office by Rob G on Apr 2, 2009

code.sixapart.com

104 373

Last Topic: Login/Registration issue by Gaurav Sharma on May 26, 2009

90 307

Last Topic: HTML Printer-Friendly page shrinks by Mikki on May 19, 2009