0

我只是安装 gitlist 来关注我的 git 存储库,当我启动 localhost/gitlist 时我会得到该页面:

get('date', 'timezone')) { date_default_timezone_set($config->get('date', 'timezone')); } $app = require 'boot.php'; $app->run(); 

我无法解决问题。有人可以帮帮我吗?

4

1 回答 1

1

我遇到过同样的问题。我能够通过这种方式解决它:

1-确保您正确安装了 php7 并正确启用/配置了 apache2 模块。我使用 ubuntu,对我来说足够了:

sudo apt-get -y install php7.0 libapache2-mod-php7.0

2-确保您的 gitlist 文件夹对网络用户具有正确的权限。我使用 apache2(.4):

sudo chown -R www-data:www-data <path-to-gitlist>

config.ini3-还要检查您指向包含 git repos 的文件夹的gitlist文件,而不是 git repos:

repositories[]= '/home/user/repositories'

4-重新启动apache服务:

systemctl restart apache2

我希望这有帮助。

于 2017-09-11T20:36:17.060 回答