Mantis system ported from Windows to Linux platform __linux

Source: Internet
Author: User

1 Linux Installation Mantis

1.1 System switched from Windows platform to Linux platform

1.1.1 Backup MySQL Database

#################### #打开DOS窗口 ##########################

"Start"-"Run"-"cmd"

#################### the BugTracker database in the. sql file in the #在mysql Bin folder ############################

C:/mysql/bin> mysqldump-u[mysql Username]-p[mysql Database] bugtracker> d:/mantis.sql

1.1.2 Back up all files in the Mantis folder in Windows

Be careful not to change the name of the original Mantis folder

1.1.3 Prepare Linux Server

The version used is CentOS

1.1.4 change the password for MySQL root

# mysql-p

Enter password:[default is blank]

mysql> Update user Set Password=password (' New password ') where user= ' root ';

Mysql> Flush Privileges

Exit and Login again

# mysql-p

Enter password:[New Password]

1.1.5 Create a database

mysql> Create Datebase BugTracker;

Use BugTracker

1.1.6 Import Existing data "Mantis.sql"

#################### #例如mantis. sql files are placed in the/home/directory of the Linux system

Mysql> Source/home/mantis.sql

1.1.7 the backup Mantis folder into the/var/www/html/

Note: I first put it into Linux FTP resources and then through the following command import

Scp-r mantis-1.0.0a3 [linux Server]:/var/www/html/

1.1.8 httpd.conf File Configuration

Vi/etc/httpd/conf/httpd.conf

Find DocumentRoot "/var/www/html" Change to DocumentRoot "/VAR/WWW/HTML/MANTIS-1.0.0A3" Purpose: Directly eject the landing page after entering the IP address

Find Adddefaultcharset UTF-8 change to #adddefaultcharset UTF-8 purpose: To solve the problem of mantis Chinese display as garbled

1.1.9 Change Mantis configuration file

vi/var/www/html/mantis-1.0.0a3/config_inc.php

Find $g_db_password change to $g_db_password = "Modified new password in step 1.1.4"

Find $g_jpgraph_path = ' c:/mantis-1.0.0a3/jpgraph-2.1.1/src/' change to $g_jpgraph_path = '/var/www/html/mantis-1.0.0a3/ Jpgraph-2.1.1/src/';

Find $g_log_destination = ' file:c:/mantis-1.0.0a3/upload/mantis.log ' and comment out

1.1.10 Modify Jpgraph configuration file

vi/var/www/html/mantis-1.0.0a3/jpgraph-2.1.1/src/jpg-config.inc.php

Find define ("Ttf_dir", "c:/windows/fonts/"); Change to define ("Ttf_dir", "/var/www/html/mantis-1.0.0a3/font/")

1.1.11 copy Simhei.ttf SIMSUN.TTC in Windows system

c:/windows/fonts/replication Simhei.ttf SIMSUN.TTC to Linux system/var/www/html/mantis-1.0.0a3/font/directory in Windows system


1.1.12 conversion complete IP Address bar input http://linux system ip/can enter the Mantis landing page

Problem Points Summary:

Mantis cannot open and download attachments after the "problem" migration

"/" and "/" in the path of the project saved in the "Problem reason" database, while Linux only recognized "/"

"Workaround"

Login MySQL database, enter database BugTracker, execute the following command:

-------------------------------------------------------------------------------
Update Mantis_bug_file_table a set Folder=replace (A.folder, '//', '/'), Diskfile=replace (A.diskfile, '//', '/');

Update Mantis_project_table a set File_path=replace (A.file_path, '//', '/');

Update Mantis_project_file_table a set Folder=replace (A.folder, '//', '/'), Diskfile=replace (A.diskfile, '//', '/');
-------------------------------------------------------------------------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.