Mantis Bug Tracker

From DreamHost
Jump to: navigation, search
DreamHost does not directly support any of the features described on this page and is not responsible for keeping this content updated or accurate. Use at your own risk!
There may be additional information on the talk page.

Mantis Bug Tracker is a free, web-based bug tracking system written in PHP.


Thanks to the largely web-based installer, installing and configuring Mantis is fairly simple once you get the files properly extracted. This example will use the development version 1.2.0a2, but similar steps will work for the older/official 1.1 release if you change the file names appropriately.

  • Note that Mantis 1.2+ requires PHP 5, so you may need to configure your domain in the Dreamhost panel to use PHP 5.x under Domains, Manage Domains, find your target domain, click edit, choose PHP version 5.x and click the button at the bottom to save the settings. Wait for a few minutes for the change to kick in.
  • Configure a MySQL database in the Dreamhost panel by going to Goodies, Manage MySQL, Create a new MySQL database. Enter a domain, password, username, database name, etc. and save to create the database. Mantis will ask for the datatabase details in a moment, so make a note of them.
  • Get the latest Mantis tar.gz download from and use FTP to transfer the file to your Dreamhost account, or issue a command similar to this to download the file after logging in via SSH to your account (the exact download URL can be obtained by following the links on the mantis download page):
  • Make sure the downloaded archive file is in the root directory for your domain ("mv mantis*" and then "cd" to change to that directory)
  • Extract the mantis source code tar/gz file using a command like this:
    tar xvfz mantis-1.2.0a2.tar.gz
  • Rename the extracted mantis-1.2.0a2 directory to something simpler like just "mantis" since it will also be the directory name web surfers will use to access Mantis via a URL (
    mv mantis-1.2.0a2 mantis
  • Open the URL to connect to your domain with the suffix of the directory you choose (, and Mantis will ask for the MySQL server/domain, user, password, database name, etc that you input when creating the database in the panel. Note that the database server will never be the default of "localhost". You can leave the admin user/password blank, since Mantis will use the database user you already entered. Click the install button there and Mantis configures itself and connects to and configures your database. Mantis should inform you that every thing went "Good", but may warn you about leaving the Admin fields blank.
  • Log in to the Mantis administration panel with the username "administrator" and the password "root". Be sure to IMMEDIATELY change the administrator password to something else by going to My Account, Password!
  • Back in SSH, you should delete the admin folder (for security reasons) from the Mantis installation, now that it is all configured:
    cd mantis
    rm -rf admin
  • Now you can log out of SSH and use your web browser to configure Mantis by adding projects, users, etc.

External link