Apache2无法启动

当我尝试启动Apache2时,如果我这样做会失败

Apache2 -e Debug 

它出现了这些错误

 [Thu Feb 09 09:46:08.244772 2017] [core:warn] [pid 16287] AH00111: Config variable ${APACHE_RUN_DIR} is not defined [Thu Feb 09 09:46:08.245358 2017] [core:warn] [pid 16287] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Thu Feb 09 09:46:08.245695 2017] [core:warn] [pid 16287] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Thu Feb 09 09:46:08.245764 2017] [core:warn] [pid 16287] 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} 

我不知道服务器有什么问题,因为它曾经工作过,但是在尝试安装OpenLDAP后停止工作。

我运行Ubuntu 16.04.1和Apache 2.4.18

我也曾尝试卸载并重新安装apache,但这是行不通的。

这个variables可以通过init脚本来设置 – 例如/etc/init.d/apache或/etc/systemd/system/httpd.service。 尝试用init脚本启动它。

此外,请写更多关于操作系统(哪个版本)和Apache安装(定制构build或存储库?)。