一、下载Mantisbt-1.2.8 1

二、利用yum 云安装 php mysql apache httpd的步骤 1

三、安装mantis详细图文教程(安装1.2.8版本-centos6.4) 1

1、 将mantis解压到/var/www/html目录下 1

2、 访问mantisbt目录下的index.php文件 2

3、 生成数据库 4

四、 配置mantis 8

一、下载Mantisbt-1.2.8

Mantisbt的下载地址: http://www.mantisbt.org/builds.php

http://www.duote.com/soft/31166.html

下载好的压缩包(mantisbt-1.2.8)

链接: https://pan.baidu.com/s/1uDpnZp8QRWbNzVQe-vWnJQ 密码: e5sc

二、利用yum 云安装 php mysql apache httpd的步骤

http://www.weiruoyu.cn/?p=2021

1、安装mysql

2、安装apache

3、安装php

详情见本目录下《四、在CentOS6.4中安装配置LAMP环境》

三、安装mantis详细图文教程(安装1.2.8版本-centos6.4)

http://www.weiruoyu.cn/?p=529

实际安装参照文档:

http://blog.51cto.com/77jiayuan/1559697

*注意*mantis解压到/var/www/html目录下

1、将mantis解压到/var/www/html目录下

重命名:mv mantisbt-1.2.17  mantisbt

修改权限:chmod 755 mantisbt

2、访问mantisbt目录下的index.php文件

打开虚拟机中的火狐浏览器

浏览器中输入:http://127.0.0.1/mantisbt/admin/index.php

*问题1*:CentOS 下开启PHP错误提示

解决办法-->http://www.luoxiao123.cn/php-display-error-tip.html1. 打开php.ini文件。
以我的ubuntu为例,这个文件在: /etc/php5/apache2 目录下。
2. 搜索并修改上下行,把Off值改成On

display_errors = Off

3. 搜索下行

error_reporting = E_ALL & ~E_NOTICE或者搜索:

error_reporting = E_ALL & ~E_DEPRECATED修改为

error_reporting = E_ALL | E_STRICT

4. 修改Apache的 httpd.conf,
以Ubuntu 为例, 这个文件在:/etc/apache2/ 目录下,这是一个空白文件。
添加以下两行:

php_flag display_errors        on

php_value error_reporting       2039

5. 重启Apache,就OK了。
重启命令: :

sudo /etc/init.d/apache2 restart

*问题2*:Warning: require_once(): open_basedir restriction in effect. File(/usr/share/php/Auth/Yubico.php) is not within the allowed path(s): (/var/www/hm.

解决办法-->https://www.viphper.com/1407.html

#vim /etc/php.ini 中修改open_basedir(将 PHP 所能打开的文件限制在指定的目录树,包括文件本身),注释掉

最近用lnmp的一键安装包配置了开发环境,在事件运行项目时碰到了此类错误:Warning: require_once(): open_basedir restriction in effect,经过反复查找原因后发现是open_basedir的问题。

0pen_basedir解释:将 PHP 所能打开的文件限制在指定的目录树,包括文件本身。

首先查看了php.ini的open_basedir,发现open_basedir是关闭的。

1. ; open_basedir, if set, limits all file operations to the defined directory

2. ; and below.  This directive makes most sense if used in a per-directory

3. ; or per-virtualhost web server configuration file.

4. ; http://php.net/open-basedir

5. ;open_basedir =

然后在检查nginx的fasecgi.conf 配置了open_basedir $document_root指向的是网站跟目录。

修改前:

1. fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

修改后:

1. fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/home/wwwroot/:/tmp/:/proc/";

由于网站都放在了/home/wwwroot/下,所以将权限指定了此目录下面。

3、生成数据库

http://blog.51cto.com/77jiayuan/1559697

创建数据库mantis,并对相应的用户分配权限。
mysql> create database mantis default character set utf8 collate utf8_general_ci;
grant all privileges on mantis.* to 'mantis'@'%' identified by 'mantis';
grant all privileges on mantis.* to 'root'@'%' identified by 'sqlroot' with grant option;

打开网页http://服务器IP/mantis/admin/install.php

Type of Database:   默认数据库是MySQL
Hostname (for Database Server):   MySQL装在本机,可以默认
Username (for Database)   : 数据库的用户名(刚才创建的用户名和密码)
Password (for Database)   : 数据库的用户名密码(刚才创建的用户名和密码)
Database name (for Database)       刚才创建的数据库名mantis
Admin Username (to create Database ifrequired):   数据库管理员用户名及密码
Admin Password (to create Database ifrequired):   数据库管理员用户名及密码
Print SQL Queries instead of Writing to theDatabase    选上此项,输出SQL但不写到数据库,因为输出的SQL语句中要修改
点击install/Upgrade Database

将上图页面中的Installing Database部分拷出来

删掉Database Creation Suppressed, SQL Queries follow
删掉SYSTEM WARNING: Invalid argument supplied for foreach()
修改language       VARCHAR(32) NOT NULL DEFAULT 'english',
为   language      VARCHAR(32) NOT NULL DEFAULT 'chinese_simplified',
保存为mantis_init_db.sql

以mantis用户登录mysql
mysql> use mantis
mysql> source /home/XXX/mantis_init_db.sql
完成数据库的建立
此时再次按照刚才的方式填写,执行install/Upgrade Database(可以不执行,仅是检查数据库建立是否正确)

四、配置mantis

1、配置mantisbt:

http://www.weiruoyu.cn/?p=529

移动到http的目录下,如果默认使用yum安装,http的目录在/var/www/html
若是用yum安装的lamp环境以下/
usr/local/apache/htdocs/路径应该为/var/www/html

# mv manti/ /usr/local/apache/htdocs/

#cd /usr/local/apache/htdocs/mantis

#chmod  777 /usr/local/apache/htdocs/mantis

#cp config_inc.php.sample config_inc.php

#vi config_inc.php

在config_defaults_inc.php中,对大多数配置项都有说明。以下是一些主要配置项的说明:

1)       配置 MySQL 数据库连接

主要配置项:

$g_hostname      = “localhost”;
#如果MySQL的端口不是默认端口3306,可以设置为 localhost:portNumber

$g_db_username   = “mantis”;

$g_db_password   = “123456″;

$g_database_name = “mantis”;

$g_db_type = ‘mysql’;

2)       配置邮件服务

主要配置项:

$g_phpMailer_method       = 2;    #使用SMTP服务

$g_smtp_host  = ‘smtp.126.com’;

$g_smtp_username = ‘weirruoyu’;

$g_smtp_password = ’123456′;

$g_administrator_email  = ‘weirruoyu@126.com’;

$g_webmaster_email      = ‘weirruoyu@126.com’;

$g_from_email           = ‘weirruoyu@126.com’;

$g_return_path_email    = ‘weirruoyu@126.com’;

注:由于现在大多数SMTP服务器都要求身份验证,因此建议将邮件地址与SMTP的用户名匹配。否则可能无法发送邮件。

3)       配置文件上传

主要配置项:

$g_allow_file_upload  = ON;

$g_file_upload_method = DISK;

注:

a)       在Mantis目录下新建目录如 upload ,再在mantis建立的项目中把文件上传路径设置为“upload”(通过Web方式)。这样上传的文件就会存放在upload目录中。

b)       上传文件的大小受到 Mantis 和 PHP 的双重限制,需要修改:

/webapps/mantis/config_inc.php 中 $g_max_file_size = 100000000; # 100 MB

/usr/local/lib/php.ini中upload_max_filesize = 100M 和 post_max_size = 100M

c)       给用于存储上传文件的目录增加可写权限。

4)       配置语言

添加下面配置,添加在”$g_db_type       = ‘mysql’;”下面即可

$g_default_language = ‘chinese_simplified’;

注:Mantis的语言包在/webapps/mantis/lang/中。Mantis的汉化不够彻底,部分配置项在中文语言包中没有。可以对比中、英文语言包,将没有的部分补齐。

如果打开界面还没有中文,请更改页面设置:

设置mysql:

创建数据库:
mysql> create database mantis;
Query OK, 1 row affected (0.00 sec)

授权

mysql> grant all privileges on mantis.* to mantis@localhost identified by ’123456′;
Query OK, 0 rows affected (0.04 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

4.页面配置(先忽略这不,直接打开http://192.168.128.135/mantis,如果不行打开下面的地址)

浏览器中输入:http://192.168.128.135/mantis/admin/install.php

按照提示下一步操作

5.测试:(默认管理员账号:“administrator”,默认密码:“root”

自己用邮箱注册一个账号,看是否发送,然后按照用户名和密码会进入界面如下图

进入后界面:

安装过程报错解决(正常情况下没有出现以下两点错误)

错误1:登陆上面提示:

SYSTEM WARNING:date()[function.data]:It isnotsafe tothe system‘s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We sekected. We selected ‘UTC‘ for ‘8.0/no DST‘instead

解决:在config_inc.php文件夹里面添加一行

1

putenv(“TZ=Asia/Shanghai”);即可

报错2:Warning: Admin directory should be removed.

把mantis下的文件夹admin改名即可,或者删除

解决:#mv admin/ admin.bak

配置后的默认设置如下

[mantisbt的页面测试  用户名以及密码]

{user:administrator    password:root}

g_database_name数据库的名字:mantis

g_db_username   = “mantis”;

g_db_password   = “mantis″;

Admin Username  :  root;

Admin Password  :ASDFGH;

g_smtp_host :smtp.126.com;

g_smtp_username: jieer;

g_smtp_password:jieer;

g_administrator_email  = ‘jieer@126.com’;

$g_webmaster_email      = ‘jieer@126.com’;

$g_from_email           = ‘jieer@126.com’;

$g_return_path_email    = ‘jieer@126.com’;

参考的网址:见文本内部。

centos6 安装 mantisbt-1.2.8 —— (5)Mantisbt-1.2.8在contos上的安装相关推荐

  1. android安装文件类型,下列哪一种属于Android智能型移动装置上的安装文件类型( )...

    燃油系统喷射子控制系组成统由和(传感电控的电电控单元)等器.下列型移型. 世称王右,种属智能置上装文尚书曾任右丞,王维. 动装的安消费微观问题题的和宏观消关系有(费问.死装时应修通先对卸压制动置(在检 ...

  2. 电脑安装android2.0,电脑上怎么安装使用安卓系统

    电脑上想要安装使用安卓系统,该怎么办呢吗,那么电脑上怎么安装使用安卓系统的呢?下面是学习啦小编收集整理的电脑上怎么安装使用安卓系统,希望对大家有帮助~~ 电脑上安装使用安卓系统的方法 工具/原料 Wi ...

  3. pyrouge和rouge在Linux上的安装方法以及结果比较

    诸神缄默不语-个人CSDN博文目录 这里的pyrouge安装的是这个:pyrouge · PyPI,也就是这个项目:bheinzerling/pyrouge: A Python wrapper for ...

  4. 平板电脑能安装java_手机上能安装的应用,平板电脑上是不是都能安装

    手机上能安装的应用,平板电脑上是不是都能安装以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 手机上能安装的应用,平板电脑 ...

  5. CentOS6.6上编译安装httpd2.4

    简介   现在apache软件基金会正在维护的httpd项目有三个版本,分别为Version 2.4,Version 2.2与Version 2.0.   三个版本的区别暂不一一介绍,有兴趣的可以去h ...

  6. 我的电脑硬盘由SSD+HD组合,在HD上成功安装CentOS6.9

    前序:我的笔记本是由SSD+HD(机械硬盘)组合,由于SSD只有128G不够大,我只能在HD上压缩空间,安装CentOS:期初,我本想安装CentOS-7,但是,安装过程中老是报错(cpu是intel ...

  7. 在CentOS6上编译安装实现LAMP(php-modules)+phpMyAdmin安装过程全记录

    php与apache协作有三种模式:CGI.modules.FastCGI. 在CGI模式下,用户请求php文件时,apache会启动响应进程,调用php处理器处理请求,然后将结果返回给客户端.用户响 ...

  8. Cloudera Manager安装之利用parcels方式安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(CentOS6.5)(四)...

    前期博客 Cloudera Manager安装之Cloudera Manager 5.3.X安装(三)(tar方式.rpm方式和yum方式) 说在前面的话(看清楚就好!!!) 我这篇博客,是两种方式都 ...

  9. 在 OSX 10.9.4 上编译安装 FastDFS 及其 PHP 扩展

    2019独角兽企业重金招聘Python工程师标准>>> 经我测试,在OSX 10.9.4上安装FastDFS V5.01的话会很悲剧,一开始就无法安装,会遇到这帖子中的问题:http ...

最新文章

  1. R语言ggplot2可视化散点图、移除可视化图像中的网格线(remove gridlines)
  2. 【新手向】什么是“框架”?
  3. mac mysql ip访问不了_解决mysql中只能通过localhost访问不能通过ip访问的问题
  4. 洛谷——P1305 新二叉树(新建二叉树以及遍历)
  5. NET问答: 如何在 dynamic 集合上使用 Linq ?
  6. 在 HTML 中引入 vue.js 写页面
  7. 敏捷软件开发:原则、模式与实践——第12章 ISP:接口隔离原则
  8. CentOS/Ubuntu制作自动安装arm iso镜像
  9. 网页数据分页显示php,PHP网页设计例子:用PHP3完成MySQL数据的分页显示
  10. HTML,CSS,font-family: 中文字体的英文名称 (宋体 微软雅黑 的英文写法)
  11. 最新SSD固态硬盘颗粒QLC、SLC、MLC、TLC详解
  12. 戴尔电脑外放有声音插入耳机还是外放解决方法
  13. 《现代汉语》北大公开课
  14. 关于英语写作和阅读的学习——施一公教授的两篇博文
  15. 用MD5验证上传文件的完整性
  16. 【论文阅读】Locally Adaptive Color Correction for Underwater Image Dehazing and Matching
  17. 关于前后台数据的提交方式
  18. 前后端不分离,分页器组件(python-dango)
  19. 过滤器实现用户访问记录日志记录
  20. VisionPro 报错解决方法

热门文章

  1. rest-framework 响应器(渲染器)
  2. 【洛谷 P3469】[POI2008]BLO-Blockade(割点)
  3. THUWC 2018(游记)
  4. 0ctf 2017 kernel pwn knote write up
  5. jdbc connection为什么放在webINF的lib里面
  6. SPL--Serializable
  7. CentOS安装mariadb
  8. Windows2008系统忘记密码的解决方法
  9. java 接口 静态方法_Java 8 接口静态方法
  10. 使用 screen 管理你的远程会话