我正在尝试将以下版本的apache2软件包安装到ubuntu 14.04(64位)系统。
pkg -l |grep apache2
ii apache2 2.4.7-1ubuntu4.5 amd64 Apache HTTP Server
ii apache2-bin 2.4.7-1ubuntu4.5 amd64 Apache HTTP Server (binary files and modules)
ii apache2-data 2.4.7-1ubuntu4.5 all Apache HTTP Server (common files)
发出以下命令。
sudo /usr/sbin/apache2 -X
但是,我遇到了以下错误。
[Thu Oct 08 14:39:35.673168 2015] [core:warn] [pid 13875] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu Oct 08 14:39:35.673281 2015] [core:warn] [pid 13875] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu Oct 08 14:39:35.673289 2015] [core:warn] [pid 13875] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu Oct 08 14:39:35.673305 2015] [core:warn] [pid 13875] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Oct 08 14:39:35.676133 2015] [core:warn] [pid 13875:tid 140047429457792] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Oct 08 14:39:35.676463 2015] [core:warn] [pid 13875:tid 140047429457792] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Oct 08 14:39:35.676533 2015] [core:warn] [pid 13875:tid 140047429457792] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00543: apache2: bad user name ${APACHE_RUN_USER}
任何人都可以帮我解决问题吗? 非常感谢您的帮助。
答案 0 :(得分:0)
Apache无法访问envvars
文件。尝试使用apache2ctl
启动它。路径为/usr/sbin/apache2ctl
。