Amandeep Jawa (deep AT worker DASH bee DOT com)
Worker Bee Software
Document Version 0.9
Introduction:
This document describes how to install the Mantis bug tracking system. It was
created while installing Mantis on Red Hat Linux 7.2 but should be easily modified
for other Linuxes & nonetheless provide good information for Windows. It
is in no way intended to supercede offical documentation from the Mantis web
site http://mantisbt.sourceforge.net.
Contents:
This document is divided into the following sections.
Software Requirements:
Document Conventions:
This document was created with the following conventions:
Before you install Mantis you should ensure that you have a fully functioning web server (HTTPD) installation with PHP/MySQL support. If you have already installed MySQL and PHP skip this section & start with the verify section below. If you are doing a fresh install, start here.
Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepared tables 020219 1:10:40 /usr/sbin/mysqld: Shutdown Complete PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! This is done with: /usr/bin/mysqladmin -u root -p password 'new-password' /usr/bin/mysqladmin -u root -h localhost.localdomain -p password 'new-password' See the manual for more instructions. Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at https://order.mysql.com Starting mysqld daemon with databases from /var/lib/mysql
MySQL-shared-3.23.47-1
MySQL-3.23.47-1
MySQL-devel-3.23.47-1
MySQL-client-3.23.47-1
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 to server version: 3.23.47 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
php-mysql-4.0.6-7
php-4.0.6-7
Before you install Mantis you should ensure that you have a fully functioning web server (HTTPD) installation with PHP/MySQL support. If you are absolutely sure that your HTTPD/PHP/MySQL configuration is working you can skip this section, but this section is very simple & is therefore recommended. All of our tests were done with Apache as our HTTPD server but other HTTPD servers should work the same.
<html> <head> <title>PHP Test</title> </head> <body> <?php echo "Hello World<p>"; ?> </body> </html>
<?php // Connecting, selecting database $link = mysql_connect("<YOUR DATABASE HOSTNAME OR IP>", "<YOUR DATABASE USER NAME>", "<YOUR DATABASE PASSWORD>") or die("Could not connect"); print "Connected successfully"; // Performing SQL query $query = "SELECT now()"; $result = mysql_query($query) or die("Query failed"); // Printing results in HTML print "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print "\t<tr>\n"; foreach ($line as $col_value) { print "\t\t<td>$col_value</td>\n"; } print "\t</tr>\n"; } print "</table>\n"; // Closing connection mysql_close($link); ?>
Now that you have an HTTPD server, MySQL & php installed, you can now install Mantis.
# replace the 4th argument after VALUES with your chosen method of encryption
# default is MD5
# PLAIN = root
# CRYPT = MNYm8SfoJlvIY
# MD5 = 63a9f0ea7bb98050796b649e85481845
INSERT INTO mantis_user_table
(id, username, email, password, date_created, last_visit, enabled, prote
cted, access_level, login_count, cookie_string)
VALUES
( '0000001', 'administrator', 'admin', '63a9f0ea7bb98050796b649e85481845',
NOW(), NOW(), '1', '1', '90', '0', 'MN91uSF/JIhos8bcda8acc2ead8d60749ad019e56
b54fadkPGTyoBgNBQf91563adc2f7337f566cc3d2c792bc3c-10728595');
'admin', '63a9f0ea7bb98050796b649e85481845'to
'admin', 'MNYm8SfoJlvIY'
'admin', '63a9f0ea7bb98050796b649e85481845'to
'admin', 'root'
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 to server version: 3.23.47 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
<?php # use MD5 if you are using the default MD5 password encryption scheme $g_login_method = <YOUR ENCRYPTION SCHEME: MD5, PLAIN, OR CRYPT>; $g_hostname = "localhost"and then change the values labeled as appropriate for your installation. For example, my file looks like this:
$g_port = 3306; # 3306 is default
$g_db_username = "root"; # Fill this in with your database password
$g_db_password = "<YOUR DATABASE PASSWORD>"; # Fill this in with your database name
$g_database_name = "<YOUR DATABASE NAME>"; # Fill this in with your host + domain name
$g_path = "http://<YOUR DOMAIN NAME>/mantis/";
$g_icon_path = $g_path."images/"; # Fill this in with your web root
$g_absolute_path = "<YOUR WEB ROOT>/mantis/";
$g_use_iis = OFF;
$g_show_version = ON; # Fill this in with some email addresses
$g_administrator_email = "<YOUR ADMINISTRATOR EMAIL ADDRESS>";
$g_webmaster_email = "<YOUR WEB MASTER EMAIL ADDRESS>";
$g_from_email = "<YOUR EMAIL ADDRESS>";
$g_to_email = "<YOUR EMAIL ADDRESS>";
$g_return_path_email = "<YOUR ADMINISTRATOR EMAIL ADDRESS>";
?>
<?php
# use MD5 if you are using the default MD5 password encryption scheme
$g_login_method = MD5;
$g_hostname = "localhost"
$g_port = 3306; # 3306 is default
$g_db_username = "root";
# Fill this in with your database password
$g_db_password = "root";
# Fill this in with your database name
$g_database_name = "yakko1";
# Fill this in with your host + domain name
$g_path = "http://ducky.deepdomain.com/mantis/";
$g_icon_path = $g_path."images/";
# Fill this in with your web root
$g_absolute_path = "/var/www/html/mantis/";
$g_use_iis = OFF;
$g_show_version = ON;
# Fill this in with some email addresses
$g_administrator_email = "mantis_admin@no spam . com";
$g_webmaster_email = "mantis_web@no spam . com";
$g_from_email = "mantis@no spam . com";
$g_to_email = "mantis@no spam . com";
$g_return_path_email = "mantis_admin@no spam . com";
?>
Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mantis/config_inc.php:20) in /var/www/html/mantis/core_print_API.php on line 18 Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mantis/config_inc.php:20) in /var/www/html/mantis/core_print_API.php on line 20 Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mantis/config_inc.php:20) in /var/www/html/mantis/core_print_API.php on line 21It means that there are extra blank lines at the end of your config_inc.php file. Delete them & try again.
By default the Mantis installation creates an administrative user with the passoword root - since this is common knowledge, it is unsecure. We will create a new administrative user with a new password & then delete the default one to make your installatiuon more secure.
administrator admin administrator X X 02-21 11:27 02-21 11:59 [ Edit User ] <YOUR ADMIN USERNAME> <YOUR ADMIN EMAIL ADDRESS> administrator X 02-21 11:59 02-21 11:59 [ Edit User ]