Problem with Apache and Ubunto 18.04 LTS

Tom H tomh0665 at gmail.com
Thu Jul 16 20:27:40 UTC 2020


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.


> 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!?!

Use "apachectl configtest".

Or do the same thing as for "apache2 -S".




More information about the ubuntu-users mailing list