Comment 0 for bug 1627339

Revision history for this message
Horst Platz (hp-localhorst) wrote :

multiple instances don't start after reboot without the default apache enabled.

:~# sh /usr/share/doc/apache2/examples/setup-instance xxx
:~# sh /usr/share/doc/apache2/examples/setup-instance yyy

:~# systemctl enable apache2-xxx
:~# systemctl enable apache2-yyy

disable default installed apache because ist should only the template for the suffix apaches

:~# systemctl disable apache2

:~# shutdown -r now

/var/run/apache2 ist now no longer available because tmpfs

:~# cat /var/log/apache2-zzz/error.log
[...]
[Sat Sep 24 11:10:00.566132 2016] [core:error] [pid 2229] AH00100: apache2: could not log pid to file /var/run/apache2/apache2-xxx.pid
[...]

solution

:~# vim /etc/apache2-xxx/envvars
:~# vim /etc/apache2-yyy/envvars
[...]
#export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2$SUFFIX.pid

or rather in /etc/apache2/envvars