我已经在wsl2中的Ubuntu中安装了wsl2,我没有问题遵循类似于另一个ubuntu服务器的说明(除非是启用ufw),但是在打开浏览器继续安装的时候,我只看到了文件index.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>发布于 2022-04-28 06:28:28
这是由于缺少了一个php包,所以首先要确保您有所有的包要求,我发现这要归功于mantis-error_log文件,在我的例子中是php-fpm。但是仅仅安装它并不奏效,你必须安装它,启动服务并重新启动apache2。
sudo apt install php7.x-fpm
sudo service php7.x-fpm start
sudo service apache2 restart还有一件事我可能也忘记了,那就是更改螳螂文件夹的权限。
sudo chmod -R 755 /var/www/html/mantis最后,我对conf文件和system32 32/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 32/驱动程序/etc/主机
127.0.0.1 mantis.test
::1 mantis.testhttps://stackoverflow.com/questions/72026308
复制相似问题