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
multiple instances don't start after reboot without the default apache enabled.
:~# sh /usr/share/ doc/apache2/ examples/ setup-instance xxx doc/apache2/ examples/ setup-instance yyy
:~# sh /usr/share/
:~# 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 apache2/ apache2- xxx.pid
[...]
[Sat Sep 24 11:10:00.566132 2016] [core:error] [pid 2229] AH00100: apache2: could not log pid to file /var/run/
[...]
solution
:~# vim /etc/apache2- xxx/envvars yyy/envvars PID_FILE= /var/run/ apache2/ apache2$ SUFFIX. pid PID_FILE= /var/run/ apache2$ SUFFIX/ apache2$ SUFFIX. pid
:~# vim /etc/apache2-
[...]
#export APACHE_
export APACHE_
or rather in /etc/apache2/ envvars