Recently upgraded from 10.3.2 to 10.9.1 in docker container.
Inside 10.9.1 OC server container, trying to start and stop apache2 gives following error.
root@5648fbaedc0c: /var/www/owncloud/config # service apache2 status
/etc/init.d/apache2: 46: .: Can’t open /etc/apache2/envvars
/etc/init.d/apache2: 57: .: Can’t open /etc/apache2/envvars
ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
Server admin docs say to run that command to start/stop apache.
Since I’m using the official docker container, should this file not have been created and placed in the container? Should I file an issue in the github repo?
A container it not a VM. If a container is started, every service inside the container, e.g. Apache, is started automatically. You can not and should never try to manipulate the services within a container.
It would be helpful if there was an section, in the server documents, about upgrading OC containers. I’ve written notes for myself for next time I do this. It turned out to be really easy.