Centos7安裝Mantis(親測可用)
1恭朗、安裝EPEL repo并用最新的穩(wěn)定版本更新系統(tǒng):
yum install epel-release -y
yum update -y
2缴罗、安裝apache httpd:
yum install httpd -y //安裝httpd
yum -y install httpd php php-mysql php-pdo php-gd systemctl start httpd //啟動httpd
systemctl enable httpd //配置自啟動
3、安裝mariadb server:
yum install mariadb mariadb-server mariadb-devel -y
systemctl start mariadb
systemctl enable mariadb
初始化(mysql):mysql_secure_installation
4关筒、安裝php7(5不支持)
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install php71w php71w-cli php71w-mysqli php71w-mbstring -y
5政己、創(chuàng)建數(shù)據(jù)庫
mysql -u root -p
create database bugtracker;
exit;
導(dǎo)入數(shù)據(jù)庫文件
mysql -u root -p bugtracker < bugtracker.sql
6、部署mantis
tar -xvf mantisBT.tar
sudo mv mantisBT /var/www/html
cd /var/www/html
sudo chmod -R 777 mantisBT
瀏覽器輸入 ip/mantisBT 自動跳轉(zhuǎn)至登陸頁面
部署完成
其它
====================centos7的坑=========================
vi /etc/selinux/config
#SELINUX=enforcing #注釋掉
#SELINUXTYPE=targeted #注釋掉
SELINUX=disabled #增加
setenforce 0 ##設(shè)置SELinux 成為permissive模式
====================centos7的坑=========================
重啟apache
systemctl restart httpd.service