iT邦幫忙

0

Centos 8 無法順利安裝 mantisBT

  • 分享至 

  • xImage

https://drive.google.com/open?id=1z8PD2iN2zE5RVbAd8R9giuF7Rjkpmolj

https://drive.google.com/open?id=1Io4psn2ST5rOtNGcGSfOL346HgoN88mM

https://drive.google.com/open?id=1Q-CvmE23s61gtSW4JUAQOm1Ux9qWkbGo

最後欲安裝的時候,出現如圖中的狀態

以下是我的步驟

安裝 Mariadb (替代 MySQL 的 Database)

dnf -y install mariadb mariadb-server

安裝 Apache Web Server
dnf -y install httpd mod_dav_svn

安裝php7.3

dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf install dnf-utils -y

dnf config-manager --set-enabled remi

dnf -y install php73 php73-php-bcmath.x86_64 php73-php-cli.x86_64 php73-php-common.x86_64 php73-php-enchant.x86_64 php73-php-gd.x86_64 php73-php-intl.x86_64 php73-php-ldap.x86_64 php73-php-mbstring.x86_64 php73-php-pdo-dblib.x86_64 php73-php-pear.noarch php73-php-process.x86_64 php73-php-recode.x86_64 php73-php-soap.x86_64 php73-php-xml.x86_64 php73-php-xmlrpc.x86_64 php73-php-pecl-rrd.x86_64 php73-php-pecl-uuid.x86_64 php73-php-devel.x86_64 php73-php-mysqlnd.x86_64 php73-php-pecl-mysql-xdevapi.x86_64 php73-php-pspell.x86_64 php73-php-pecl-memcached.x86_64

安裝中文字型 (讓統計圖表可以正常顯示中文)

mkdir /usr/share/fonts/truetype
wget http://www.study-area.org/apt/firefly-font/fireflysung-1.3.0.tar.gz
tar xvzf fireflysung-1.3.0.tar.gz
cp fireflysung-1.3.0/fireflysung.ttf /usr/share/fonts/truetype/arial.ttf

設定 Mariadb 於開機時自動啟動

systemctl start mariadb
systemctl enable mariadb

設定 mariadb root 的密碼

mysqladmin -u root password '<root的密碼>'

登入 Mariadb

mysql -u root -p

建立資料庫, 登入的User與密碼

create database mantis;
create user 'mantisdbuser'@'localhost' identified by '1qaz@WSX';
grant all privileges on mantis.* to 'mantisdbuser'@'localhost';
flush privileges;
exit;

設定 httpd 於開機時自動啟動

systemctl start httpd
systemctl enable httpd

設定 PHP

提高 File Upload 檔案大小的上限到20MB

vim /etc/opt/remi/php73/php.ini

修改 upload_max_filesize = 20M

修改 max_file_uploads = 20

修改 post_max_size = 20M

修改 max_execution_time = 60

修改 memory_limit = 512M

修改 date.timezone 參數, 改為 date.timezone = 'Asia/Taipei'

重新啟動 httpd

systemctl restart httpd

下載 mantis (撰寫本文章時, 最新版本為 2.23.0)

wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/2.23.0/mantisbt-2.23.0.tar.gz
cd /var/www/html/
tar -xvzf ~/mantisbt-2.23.0.tar.gz
mv mantisbt-2.23.0 mantis
mkdir /var/www/html/mantis/log # 放置郵件寄送的紀錄
mkdir /var/www/html/mantis/attachment # 放置 Issus 的附件. 若想把附件直接放 Database (這樣建立專案比較簡單), 則此步驟可以省略
chown -R apache.apache mantis

以瀏覽器打開網頁: http:///mantis/admin/install.php

會是mantis尚不支援Centos 8嗎? 還請各位先進指教

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答