Apache 错误(admin389)

Apache 错误(admin389)

我该怎么办?安装了 16.10(yakkety)吗?

[Sat Dec 10 20:07:39.025423 2016] [core:warn] [pid 10236] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Sat Dec 10 20:07:39.025470 2016] [core:warn] [pid 10236] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Dec 10 20:07:39.025490 2016] [core:warn] [pid 10236] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Dec 10 20:07:39.025497 2016] [core:warn] [pid 10236] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Dec 10 20:07:39.025507 2016] [core:warn] [pid 10236] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Dec 10 20:07:39.027599 2016] [core:warn] [pid 10236:tid 140045921779200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Dec 10 20:07:39.027739 2016] [core:warn] [pid 10236:tid 140045921779200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Dec 10 20:07:39.027750 2016] [core:warn] [pid 10236:tid 140045921779200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

问题是我无法在当前时间进行更新,我无法让 steam 工作,并且终端中的许多命令不起作用。

xserver-xorg-video-ati is already the newest version (1:7.7.1-1).
bash: syntaxfel nära den oväntade symbolen "(" Fel uppstod vid hantering: 389-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

在 Ubuntu 上(以及任何 Debian 衍生的操作系统上),通常不会直接运行 Apache HTTP 服务器,而是必须使用apache2ctl。问题中的错误消息表明您尝试直接运行它;您这样做,但随后你必须模仿的动作apache2ctl,特别是你必须设置预期的环境变量。

相关内容