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.

« Creating a Sanitize Specification | Up | Running Movable Type With mod_perl »

Chapter 11: Advanced Topics

Running Movable Type with suexec or cgiwrap

Problem

You want to make your Movable Type system more secure with suexec or cgiwrap.

Solution

Run the system under cgiwrap or suexec.

Discussion

cgiwrap and suexec are special tools on the web server that allow your CGI scripts to be executed as "you", rather than as the web server. This simplifies Movable Type installation, because you no longer have to set permissions on your weblog or db directories, although you still need to set the permissions on the CGI scripts themselves. It is also more secure, because your weblog directories will be writeable only by you.

You may need to check with your hosting provider or system adminstrator to determine if your server has either of these tools installed. Movable Type can make a guess as to whether it is supported while verifying requirements. When you run mt-check.cgi, under the line reporting the version of Perl on your server, look for a line that says

    (Probably) running under cgiwrap or suexec

This indicates that your server probably has cgiwrap or suexec installed. This is not a guarantee though.

To enable the heightened security that cgiwrap and suexec provide, add the following lines to your mt-config.cgi file:

    DBUmask 0022
    HTMLUmask 0022
    UploadUmask 0022
    DirUmask 0022

Explain what this does.

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.