apache - Mercurial 不会在系统启动时启动 [FreeBSD 9.0 Apache22]

标签 apache mercurial apache2 freebsd

努力寻找 Apache22 和 Mercurial 的问题根源。一切似乎都工作正常 - 创建存储库、具有正确配置的 hgweb.cgi 的文件夹、设置权限等。

主要问题来了。仅当我使用 /usr/local/etc/rc.d/apache22 restart 手动(重新)启动 Apache 时,一切才有效,否则,使用 service apache22 restart 或者当整个系统启动时,我正在启动并运行 Apache,并可访问网站。但是,一旦尝试访问 Web 界面,它就会在浏览器中显示“内部服务器错误”,并在 http-error.log

中显示下一条消息
[Fri Apr 20 17:49:40 2012] [error] [client 10.20.30.34] env: 
[Fri Apr 20 17:49:40 2012] [error] [client 10.20.30.34] python
[Fri Apr 20 17:49:40 2012] [error] [client 10.20.30.34] : 
[Fri Apr 20 17:49:40 2012] [error] [client 10.20.30.34] No such file or directory
[Fri Apr 20 17:49:40 2012] [error] [client 10.20.30.34] Premature end of script headers: hgweb.cgi

我的猜测是,这可能是环境变量的问题,但是 service 运行和直接从 /usr/local/rc.d/调用脚本之间有什么区别呢? ?我错过了什么吗?

最佳答案

检查 PATH,看起来 python 不在你的路径中。也许将/usr/local/bin 添加到 www 用户的路径

关于apache - Mercurial 不会在系统启动时启动 [FreeBSD 9.0 Apache22],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10248576/

相关文章:

linux - 如何创建一个 "configure"文件?

php - Apache mod_rewrite 在服务器上启用但不工作?

git - Hg-Git:如何同时推送到 Github 和 Bitbucket?

java - 以编程方式从 WebView 登录

apache - 在 Ubuntu 16.04.7 上将 Apache 2.4.18 升级到 2.4.26 或更高版本

linux - 在 Mercurial 存储库中,将工作文件夹更改为子文件夹

regex - Mercurial .hgignore 正则表达式

linux - Proc::Daemon with mod_perl 不写入 STDOUT 或 STDERR

apache2 - Tomcat 当前线程数

linux - apache2无法重新启动:Action 'start' failed