Service apache2 status fails

Hi!

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.

Bobby

Yeah, you need that file to have the apache env variables. If the file is there - check it’s permissions.

ls -la /etc/apache2/envvars

Hi!

Thank you for your reply.

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?

Bobby

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.

1 Like

Hi!

Thank you. Yes, makes perfect sense.

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.

Edit: I found a section in Installing with Docker :: ownCloud Documentation that talks about upgrading OC/docker/container.

Bobby

1 Like