安装mantis的步骤如下:

1. 安装apache, mysql等必要软件

1 #yum update
2 #yum install httpd php php-pdo php-mysql php-gd mysql mysql-server
3 #chkconfig mysqld on
4 #service mysqld restart
5 #chkconfig httpd on
6 #service httpd restart

2. 下载并解压mantis

#cd /var/www/html
#wget

https://sourceforge.net/projects/mantisbt/files/latest/download/mantis/mantisbt-1.2.19.zip
#unzip mantisbt-1.2.19.zip
#mv mantisbt-1.2.19 mantis 
#chown -R apache:apache mantis

3. 创建数据库

#mysql -u root -p***
>create database mantis;
>grant all privileges on mantis.* to user@localhost identified by 'password';
>flush privileges;
>exit;
#

4. 安装mantis

在浏览器里输入http://ip/mantis,此时浏览器会跳转到http://ip/mantis/admin/install.php,按照实际情况输入hostname,databasename(即第3步里面的mantis),username(即第3步里面的user),password(即第3步里面的password)。其中数据库类型可以选择Mysqli。

填写好这些内容,点击install/update database即可。

有时候会存在如下问题

修改成中文界面

#cd /var/www/html/

#vim config_inc.php

$g_default_language = 'chinese_simplified';

5. 配置mantis

#cd /var/www/html/mantis
#rm -rf config_inc.php
#cp config_inc.php.sample config_inc.php
#vim config_inc.php

主要的配置如下:

$g_hostname = 'localhost';              #服务器地址
$g_db_username = 'user'; #数据库用户
$g_db_password = 'password'; #数据库密码
$g_database_name = 'mantis'; #数据库名称
$g_db_type = 'mysqli'; #数据库类型 $g_allow_signup = ON; $g_allow_anonymous_login = OFF; $g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.sina.com:25';
$g_smtp_username = '***'; #邮箱用户名,即@前面的部分
$g_smtp_password = '***'; #邮箱密码
$g_administrator_email = '***@***';
$g_webmaster_email = '***@***';
$g_from_email = ''; #From字段的值
$g_return_path_email = ''; $g_allow_file_upload = ON;
$g_file_upload_method = DISK;
$g_absolute_path_default_upload_folder = '/var/www/html/maintis/upload/';
$g_max_file_size = 100000; #单位是字节,即100kB #以下自己添加

$g_default_language = 'chinese_simplified';

6. 重启服务,删除admin目录(可以先不删除,可用于创建新用户使用)

#service httpd restart
#service mysqld restart
#cd /var/www/html/mantis
#rm -rf admin

安装mantis遇到的问题:

1.验证码图片不显示

2.时区不对

3.mysql版本不兼容

解决方法:更改为最新的mantis版本

4.重启服务用如下命令

systemctl restart  httpd.service

systemctl restart mysqld.service

5.删除mantis

cd /var/www/html

rm -rf mantis

6.查找文件 find / -name php.ini

7.mantis 初始用户administrator 密码root

8.mantis登录以后,进行任何操作总提示APPLICATION ERROR #1904,APPLICATION ERROR #2800;重启服务后就可以正常使用了,好像是超时引起的

centos7安装mantis的更多相关文章

  1. centos7下安装mantis

    1.环境配置 Web Server:Apache,The web server must support PHP. 数据库:MySQL (or one of its forks, e.g. Maria ...

  2. ubuntu14安装mantis实践(包含LAMP/PHP)

    安装LAMP 参考 https://www.linuxidc.com/Linux/2016-12/138757.htm sudo add-apt-repository ppa:ondrej/apach ...

  3. HP服务器 hp 360g5 centos7安装问题

    HP服务器  hp 360g5 centos7安装问题 一 :启动盘无法识别硬盘 1.进入安装光盘,用上下键选择安装centos--Install Centos7(注意不可按Enter键),如图: 2 ...

  4. CentOS7 安装Mono及Jexus

    CentOS7安装Mono及Juxes 1 安装Mono 1.1 安装yum-utils 因为安装要用到yum-config-manager,默认是没有安装的,所以要先安装yum-utils包.命令如 ...

  5. CentOS7安装mysql提示“No package mysql-server available.”

    针对centos7安装mysql,提示"No package mysql-server available."错误,解决方法如下: Centos 7 comes with Mari ...

  6. CentOS7安装Oracle 11gR2 安装

    概述 Oracle 在Linux和window上的安装不太一样,公司又是Linux系统上的Oracle,实在没辙,研究下Linux下Oracle的使用,oracle默认不支持CentOS系统安装,所以 ...

  7. Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法

    问题: CentOS7安装完毕,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License i ...

  8. centos7安装eclipse

    centos7安装eclipse Eclipse是一个集成开发环境(IDE),包含一个基工作区和定制环境的可扩展插件系统.大部分使用 Java 编写,Eclipse 可以用来开发应用程序.通过各种插件 ...

  9. CentOS7安装mongoDB数据库

    CentOS7安装mongoDB数据库 时间:2015-03-03 16:45来源:blog.csdn.net 作者:进击的木偶 举报 点击:8795次 mongoDB是目前发展比较好的NOSQL数据 ...

随机推荐

  1. OSX.PackageManager-Homebrew

    How to install pip on mac? http://stackoverflow.com/questions/12092306/how-to-install-scipy-with-pip ...

  2. iOS.Info.plist

    1. Custom message when asking for Address Book Permissions http://kevinyavno.com/blog/?p=176

  3. hihoCoder1159 扑克牌

    一道记忆化搜索 原题链接 和着色方案很像,这里就不详细阐述,可以去我博客里的着色方案里看. 但要注意本题不一样的是同种面值的牌花色不同,所以在转移时还需要乘上同种面值的牌的个数. #include&l ...

  4. iOS 用其他应用程序打开文件功能

    先摘抄一段我抄别人用的. <key>CFBundleDocumentTypes</key>    <array>        <dict>       ...

  5. 关于python的字符编码

    理论特别多,金角大王讲的非常细致和深入浅出. 我来个简短的总结: python2的编码:默认是ascii,可以改变成gbk,utf-8等,但是用什么编码写的,就存储成什么编码.如果搬到linux,默认 ...

  6. HTML的报告

    import HTMLTestRunner class HTMLReporter(object): def reporter(self,filename,reportername,reporterdi ...

  7. tp5安装验证码

  8. Koko Eating Bananas LT875

    Koko loves to eat bananas.  There are N piles of bananas, the i-th pile has piles[i] bananas.  The g ...

  9. .NET获取城市信息(将三字代码转换成城市名)

    整理代码,发现有一个从两张表里读取城市列表,然后linq和lambda表达式来获取城市名的函数,代码如下: public static string GetCityHotelText(string c ...

  10. mysql里几个超时配置参数wait_timeout,net_read_timeout等

    以下这些配置项单位都是秒,在mysql命令行中可以使用show global variables like '变量名';可查询配置值. connect_timeout:连接响应超时时间.服务器端在这个 ...