Git源码安装MantisBT

1. 获取MantisBT源码  git clone https://github.com/mantisbt/mantisbt.git

2. 配置Web服务器

3. 访问Mantis 发现报错 500,查看PHP日志看到 报错:

[29-Jun-2018 20:12:24 Asia/Hong_Kong] PHP Fatal error:  require_once(): Failed opening required '/var/www/mantisbt/vendor/autoload.php' (include_path='.:/opt/remi/php71/root/usr/share/pear:/opt/remi/php71/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/mantisbt/core.php on line 91

查找原因,发现缺少了vender目录。

4. 运行composer dump-autoload 安装autoload类后可以正常访问安装检查页面了。

5. 安装过程报错,查看日志发现:  Call to undefined function ADONewConnection() ,需要安装依赖。

在mantis源码目录 运行 

composer install 

安装需要的依赖文件。


扫描二维码关注公众号,回复: 1809157 查看本文章

6. 复制config/config_inc.php.sample 为config_inc.php

7. 将安装界面上的数据库密码信息更新到config_inc.php文件对应的配置项。

8. 配置禁用邮件通知 config_inc.php文件中增加行 $g_enable_email_notification = OFF;


猜你喜欢

转载自blog.csdn.net/flyspace/article/details/80861507
今日推荐