Problem with Apache and Ubunto 18.04 LTS

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Thu Jul 16 16:02:30 UTC 2020


Hi,

i'm pretty new to Ubuntu, more familiar with Suse.
I hope you can help me.
Just installed 18.04.4 LTS and Apache2.
I wanted to check for virtual hosts:
root at nc-mcd:~# apache2 -S
[Thu Jul 16 15:31:13.000662 2020] [core:warn] [pid 23989] 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

It complains that APACHE_RUN_DIR is not configured. But it is, following /proc:
root at nc-mcd:~# ps aux|grep apache2
root     24241  0.0  0.9 717992 38652 ?        Ss   15:44   0:00 /usr/sbin/apache2 -k start
 ...

root at nc-mcd:~# cat /proc/24241/environ
APACHE_RUN_DIR=/var/run/apache2APACHE_PID_FILE=/var/run/apache2/apache2.pidJOURNAL_STREAM=9:88452PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/binINVOCATION_ID=3dbc564a674f487e88f414c49c855c9eAPACHE_LOCK_DIR=/var/lock/apache2LANG=CAPACHE_RUN_USER=www-dataAPACHE_RUN_GROUP=www-dataAPACHE_LOG_DIR=/var/log/apache2PWD=/root at nc-mcd:~#

It seems to be configured. I edited /etc/apache2/apache2.conf:
DefaultRuntimeDir /var/run/apache2
 ...

Now this error disappears, but i get new ones:
root at nc-mcd:~# apache2 -t
[Thu Jul 16 15:58:17.830024 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu Jul 16 15:58:17.830506 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu Jul 16 15:58:17.830608 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu Jul 16 15:58:17.830760 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Jul 16 15:58:17.840766 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Jul 16 15:58:17.841109 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Jul 16 15:58:17.841277 2020] [core:warn] [pid 24365] AH00111: Config variable ${APACHE_LOG_DIR} is not defined

All theses variables are configured, but not recognized!?!
And the process 24365 is my "apache2 -t".
For all other processes the variables are defined, but not for this one ?

Can you help me ?


Bernd


-- 

Bernd Lentes 
Systemadministration 
Institute for Metabolism and Cell Death (MCD) 
Building 25 - office 122 
HelmholtzZentrum München 
bernd.lentes at helmholtz-muenchen.de 
phone: +49 89 3187 1241 
phone: +49 89 3187 3827 
fax: +49 89 3187 2294 
http://www.helmholtz-muenchen.de/mcd 

stay healthy
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671






More information about the ubuntu-users mailing list