The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Choosing the Right Weblog Platform | Up | Installing Movable Type with FTP »

Chapter 1: Installation and Upgrade

Finding Perl on your Server

Problem

You need to find out where the Perl interpreter resides on your system.

Solution

Your hosting provider may have provided you with the location of the Perl interpreter in the introductory email or welcome message you received when you created your account. Most of the time, this will be something like /usr/bin/perl. If you're unsure, ask your hosting service or system administrator. And if you have shell access you can use the whereis command.

Discussion

The Movable Type software is written in the Perl programming language. In order for Perl to process any code, the first line of script must contain the location of the Perl interpreter. Depending on your system configuration, you may have to specify its location in order for any of the Movable Type scripts to run.

To determine the location of Perl on your web server, consult with your hosting service or system administrator. Alternately, if you have command line access, and are familiar with its use, you can log in to that account and type:

 $ whereis perl

This will give you the location(s) of Perl on your system. Typically the interpreter is found at /usr/bin/perl, the MT default location. If it isn't there, the following files must be modified:

  • mt.cgi
  • mt-add-notify.cgi
  • mt-atom.cgi
  • mt-check.cgi
  • mt-comments.cgi
  • mt-db2sql.cgi
  • mt-search.cgi
  • mt-send-entry.cgi
  • mt-tb.cgi
  • mt-xmlrpc.cgi
  • mt-upgrade.cgi
  • mt-view.cgi

Despite its extension, mt-config.cgi is not a typical Perl script, so it should not contain the path to Perl.

Open each file in a text editor and change the first line from:

 #!/usr/bin/perl -w

to the location of the Perl interpreter in your system. For example:

 #!/usr/local/bin/perl -w

Take care not to remove the -w at the end of the first line in each file. This setting turns on warnings in Perl and is necessary for Movable Type's operation.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.