Mantis Installation Tutorial - Fedora OS

Version 1.0
Author: Prashanth Kannan

This tutorial provides step-by-step instructions on how to install and configure Mantis - Defect Tracker on your Fedora operating system. Mantis is an open source free defect tracking utility that is really easy to configure and use. Its installation is also very easy if you follow the steps that I have mentioned below.


Preliminary note

I have already installed Fedora & when I wrote this tutorial the version of Mantis was 1.1.4.


Let's get started

...Start Terminal
Become root:
$ su
Enter Password:

[Root]$ yum update

Wait until the update has finished.

[Root]$ yum install httpd php php-pdo php-mysql php-gd mysql mysql-server

Enable and start services for both the httpd and mysqld.

Go to the /var/www/html location (this is where the fun starts).

cd /var/www/html/

When I wrote this the Mantis version was 1.1.4, it may have changed now (it probably has), but get the latest version of Mantis from Sourceforge:

$ wget

Untar the tarball:

$ tar xvf mantis-1.1.4.tar.gz
 $chown www-data mantis-1.1.4

Above line gives www-data (or your apache username) access to the mantis-1.1.4 folder.

 Now, in case you don't want to type http://localhost/mantis-1.1.4 , create a redirect in your html directory:

$ gedit index.html

Add this line and save:

<meta HTTP-EQUIV="REFRESH" content="0; url=/mantis-1.1.4/">

Open your favourite browser (hopefully Mozilla) and point to http://localhost, this should open your Mantis installer in your browser (if it does not, you've done something wrong).

Select install as is (please change the password and user name for your root if it is different). 

 If you are getting the error saying that config file could not be written, please do the below steps.

$ gedit /var/www/html/mantis-1.1.4/config_inc.php

Insert the following text:

	$g_hostname = 'localhost';
	$g_db_type = 'mysql';
	$g_database_name = 'bugtracker';
	$g_db_username = 'root';
	$g_db_password = '';

Your Mantis installation is complete; delete the admin directory in the /var/www/html/mantis-1.1.4 directory:

$ cd /var/www/html/mantis-1.1.4
$ rm -fr admin/

Edit the config_inc.php. Add the following lines to remove the the image verification (it does not work on local server for some reason). Add the settings to send emails via Send mail. Hopefully you have installed this, if not:

$ yum install send-mail

If it is installed:

$ cd /var/www/html/mantis-1.1.4
$ gedit config_inc.php

Add the following the following:

$g_signup_use_captcha = OFF;
$g_phpMailer_method = 1;



SELinux may block your sendmail, if so go to System > Administration > SELinux management.

Under Boolean Option, filter Sendmail.

Enable the option httpd_can_sendmail.

Log in to Mantis using http://localdomain.

Log on with:

Username: administrator
Password: root

If you create new account, you should receive an activation email on your email ID.

Thank you!

Share this page:

Suggested articles

8 Comment(s)

Add comment


By: Anonymous

I dont get a activation mail,

or when I add new user, how can I get the password?

By: Gianluca Sforna

Is there any reason why you did not suggest using the mantis package from Fedora repository?


Not really, just found it easier to download it off source forge

By: Imed Chihi

I personally think that it's wiser to use the package from Fedora repositories, because that would take care of updates and fixing security vulnerabilities. Thanks for the concise tutorial. -Imed


Let me know the changes i will update the tutorial immediately.

By: Faber

The database 'bugtracker', will Mantis create it automatically? Or should I create it manually?


Mantis will create it

By: Anonymous

in mantis send mail problem 

 while creating user i am not receiving the mail