我只是安装gitlist来跟踪我的git repos,当我启动localhost/gitlist时,我得到了这个页面:
get('date', 'timezone')) { date_default_timezone_set($config->get('date', 'timezone')); } $app = require 'boot.php'; $app->run(); 我解决不了这个问题。有人能帮我一把吗?
发布于 2017-09-11 20:36:17
我也有过同样的问题。我就这样解决了这个问题
1-确保正确安装了php7,并正确启用/配置了apache2模块。我用的是ubuntu,对我来说已经够了:
sudo apt-get -y install php7.0 libapache2-mod-php7.02-确保你的gitlist文件夹对web用户有正确的权限。我使用apache2(.4):
sudo chown -R www-data:www-data <path-to-gitlist>3-还请检查gitlist config.ini文件是否指向包含git的文件夹,而不是git:
repositories[]= '/home/user/repositories'4-重新启动apache服务:
systemctl restart apache2我希望这能帮到你。
https://stackoverflow.com/questions/40674261
复制相似问题