gpt4 book ai didi

环境变量的 Apache 错误(Ubuntu)

转载 作者:行者123 更新时间:2023-12-05 01:05:07 24 4
gpt4 key购买 nike

我的操作系统是 Ubuntu 12.04,我分别安装了 Apache、Php 和 Mysql。我从来没有遇到过问题,但是在 Ubuntu 更新之后,当我尝试访问 Web 服务器上的 php 文件时,我总是收到“404 Not Found”错误。

当我在控制台上写“apache2 -S”时,我得到了这个:

[Sat Feb 22 16:15:16.983766 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Sat Feb 22 16:15:16.983871 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Feb 22 16:15:16.983914 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Feb 22 16:15:16.983936 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Feb 22 16:15:16.983966 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.987930 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Sat Feb 22 16:15:16.988259 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988433 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988456 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 75 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

有人可以帮我吗?

最佳答案

来自阅读 this bug page ,我推测这些都是需要导出的环境变量,才能运行apache2。显然,当您将其作为“service apache2 start”之类的服务运行时,这些是从/etc/apache2/envvars 自动加载的。另一种选择是使用 apache2ctl 启动它。

关于环境变量的 Apache 错误(Ubuntu),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21959888/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com