![](/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.