Debian update apache error AH00111: Config vairable ${APACHE_RUN_DIR} is not defined
生活随笔
收集整理的這篇文章主要介紹了
Debian update apache error AH00111: Config vairable ${APACHE_RUN_DIR} is not defined
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
轉(zhuǎn)自:https://blog.51cto.com/peasant/1893784
今天升級(jí)kali導(dǎo)致apache無(wú)法啟動(dòng),問(wèn)題如下:
[Sat Jan 21 21:01:16.273933 2017] [core:warn] [pid 3248] 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 [Sat Jan 21 22:05:56.705639 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Sat Jan 21 22:05:56.705819 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Sat Jan 21 22:05:56.705866 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Sat Jan 21 22:05:56.705919 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Jan 21 22:05:56.713958 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Jan 21 22:05:56.714454 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Jan 21 22:05:56.715159 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined AH00543: apache2: bad user name ${APACHE_RUN_USER}這是由于升級(jí)后apache配置文件變化,沒(méi)有導(dǎo)入新的apache環(huán)境變量。
解決辦法:
source /etc/apache2/envvars?
或
. /etc/apache2/envvars總結(jié)
以上是生活随笔為你收集整理的Debian update apache error AH00111: Config vairable ${APACHE_RUN_DIR} is not defined的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Requests 2.18.1文档
- 下一篇: void类型和void *的用法