The Movable Type Knowledge Base

Using .pl Instead Of .cgi For Script Files

Question

I'm on a Windows server, so I need to use .pl instead of .cgi extensions on the script file names. How do I configure Movable Type for this?

Answer

We highly recommend that, rather than using .pl extensions, you configure Windows to use .cgi for Perl scripts instead.

Some plugins have configuration URLs which use .cgi extensions, so these links will not work if the server is not configured to recognize the file extension as a valid Perl script. Changing these plugin scripts to use .pl isn't a good idea, as they are typically stored in the plugins folder. When Movable Type sees a file in that folder with a .pl extension, it will attempt to load it along with other plugin files, and this can cause problems.

Keeping the above in mind, if you still must use .pl for the default Movable Type files, follow these steps:

First, rename all of the mt*.cgi files to use .pl, except for mt-config.cgi as this file is not actually an executable script. Movable Type cannot find it unless it is named with a .cgi extension.

Then, update mt-config.cgi to recognize the new script names:


# AdminScript mt.pl
# CommentScript mt-comments.pl
# TrackbackScript mt-tb.pl
# SearchScript mt-search.pl
# XMLRPCScript mt-xmlrpc.pl
# ViewScript mt-view.pl

Remember to uncomment these settings1, then save mt-config.cgi and upload it back to your server in ASCII mode.

1 To uncomment a setting means to remove the # from the beginning of the line where it appears.

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

Yahoo! Small Business web hosting services

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