Problem with Apache and Ubunto 18.04 LTS
Lentes, Bernd
bernd.lentes at helmholtz-muenchen.de
Fri Jul 17 14:02:33 UTC 2020
----- On Jul 16, 2020, at 10:27 PM, Tom H tomh0665 at gmail.com wrote:
> On Thu, Jul 16, 2020 at 6:04 PM Lentes, Bernd
> <bernd.lentes at helmholtz-muenchen.de> wrote:
>>
>> 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
>
> This variable's set in "/etc/apache2/envvars" and "envvars" is sourced
> by "apachectl".
>
> I copied "/usr/sbin/apachectl" to "/usr/local/sbin" and edited it to
> add an "ubu" case to run "apache2 -S" and "apachectl ubu" gave me the
> output of "apache2 -S". So you could rename
> "/usr/local/sbin/apachectl" to something else and edit it to run
> "apache2 -S" exclusively, with the right preliminaries.
You gave me the final hint.
I just source /etc/apache2/envars and issue afterwards apache2 -S or apache2 -M.
That's sufficient for me.
Thanks Tom,
Bernd
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