[SOLVED] Installing Nextcloud broke my pihole interface

Nextcloud version (eg, 20.0.5): 22.1.1
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): 2.4.51
PHP version (eg, 7.4): 8.0.14

The issue you are facing:

Just after (re)installing my nextcloud instance on my debian 11 server, i could’nt access my pihole interface (which was working great before).

I know this is something related to apache and lighttpd having conflict / running on same ports.
But since i install pihole few weeks ago, i changed it straight away from port 80 to another port.
Today nextcloud is listening on port 80 & 443 and pihole on another port.
I don’t know where to start looking for.

Is this the first time you’ve seen this error? (Y/N): Y


With the ports is for your webserver. When you update/upgrade Nextcloud, this doesn’t change. Did you just put the code there again or did you change the webserver configuration as well?

Check your webserver logfiles, there is should be quite obvious when a port is already used.

what do you mean by that ?

it was not an update/upgrade but a new installation of nextcloud.

i changed ports for pihole in config file !

i’ve already checked and could’nt find anything. i will check again !

All the port configuration is done in the webserver, it’s a setting of the webserver not Nextcloud. You can see which processes bind to which port with netstat -tulpen.

yes i know that ! i changed port in config file of Lighttpd and of Apache2.

yes and i think apache2 and Lighttpd are not binding the same port.

i manage to get an error from apache2 log

[Sun Dec 26 22:22:11.786778 2021] [mpm_prefork:notice] [pid 727] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Dec 26 22:22:11.848293 2021] [mpm_prefork:notice] [pid 62146] AH00163: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Dec 26 22:22:11.848395 2021] [core:notice] [pid 62146] AH00094: Command line: '/usr/sbin/apache2'

finally decide to erase my installation of nc (again) and i will try to reinstall it from scratch (again).
thread closed.