roger2001c 发表于 2018-11-19 07:14:50

Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not de

  今天升级kali 导致apache 无法启动,问题如下:
  root@kali:~# apache2 -k start
AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot或:
root@kali:/etc/apache2# apache2 -k start
AH00111: Config variable ${APACHE_PID_FILE} is not defined
AH00111: Config variable ${APACHE_RUN_USER} is not defined
AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00543: apache2: bad user name ${APACHE_RUN_USER}  

  这是由于升级后apache 配置文件变化,没有导入新的apache 环境变量。
  解决办法 :
source /etc/apache2/envvars  或
. /etc/apache2/envvars  




页: [1]
查看完整版本: Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not de