![](/img/trans.png)
[英]Installing Istio on WSL2 fails with “FailedMount” for pods
[英]Installing MantisBT on WSL2
我已经在 wsl2 的 Ubuntu 中安装了 MantisBT,按照另一台 ubuntu 服务器中的说明进行操作没有问题(除非启用 ufw),但是在打开浏览器继续安装的那一刻,我只看到文件索引的内容.php。 浏览器中的 index.php
我尝试搜索有关在 wsl 中安装 mantisBT 的信息但没有成功,所以这就是为什么我来这里询问是否有人在 Wsl 中的 Ubuntu 中成功安装了 MantisBT 或者您有任何线索来尝试解决这个问题。
这是我的 apache 机密文件,
<VirtualHost *:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/mantis"
ServerName localhost
ServerAlias localhost
ErrorLog "/var/log/apache2/mantis-error_log"
CustomLog "/var/log/apache2/mantis-access_log" combined
<Directory "/var/www/html/mantis/">
DirectoryIndex index.php index.html
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
这是由于缺少 php package,所以首先确保您拥有所有需要的包,我通过 mantis-error_log 文件找到了它,在我的例子中是 php-fpm。 但只是安装它并不能解决问题,你必须安装它,启动服务并重新启动 apache2
sudo apt install php7.x-fpm
sudo service php7.x-fpm start
sudo service apache2 restart
我可能也忘记了一件事,就是更改 mantis 文件夹的权限
sudo chmod -R 755 /var/www/html/mantis
最后,我对 conf 文件和 system32/drivers/host 进行了一些更改,使其在自己的 URL 上工作。这只是改进,并不是问题的真正一部分。
<VirtualHost *:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/mantis"
ServerName mantis.test
ServerAlias www.mantis.test
ErrorLog "/var/log/apache2/mantis-error_log"
CustomLog "/var/log/apache2/mantis-access_log" combined
<Directory "/var/www/html/mantis/">
DirectoryIndex index.php index.html
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
system32/驱动程序/等/主机
127.0.0.1 mantis.test
::1 mantis.test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.