Can't access my pihole interface now that I installed nextcloud

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): Nextcloud 21.0.3
Operating system and version (eg, Ubuntu 20.04): CentOS Linux release 7.9.2009 (Core)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.4): PHP 7.4.22

The issue you are facing:

I installed Nextcloud (using this method [Install Nextcloud 21 on CentOS 7 With Let's Encrypt SSL | ComputingForGeeks](https://computingforgeeks.com/install-nextcloud-on-centos-linux-server/)) on a server that was already running both Plex, as well as pihole.  I didn't have any issues with plex at all, but I was having trouble with the pihole and then realized that both httpd and lighttps were using port 80.  It seemed a lot easier to change lighttps's port so I changed it to 8080, and was able to get nextcloud working properly.  The problem is that now when I try to access the pihole admin board (localhost/admin) it sends me to nextcloud instead.  I've tried pi.hole and pi.hole/admin as well as localhost:8080/admin and they send me to the same place as well.  Anyone ever run into this error?   The pihole program itself actually appears to be blocking ads still, so it's working, I just can't access it.  It seems like others have been able to get it to work, but I can't find what I'm doing differently.

I asked on the pihole forums already and they weren't able to help yet.

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

Steps to replicate it:

  1. Install nextcloud and pihole, as above

The output of your Nextcloud log in Admin > Logging:

What folder exactly are you talking about here?  in /var/log/httpd/ there's a handful of different access and error files, one of those?

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocrxc602gtzt',
  'passwordsalt' => 'SDo4D7idgLifYgAYGCXs2Q0J1jc3IC',
  'secret' => '/CLAO1lRS3IT6rw/WKLjx0sHiXrxRcYyxGQJXu89KNGcfneI',
  'trusted_domains' =>
  array (
    0 => '192.168.4.40',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '21.0.3.1',
  'overwrite.cli.url' => 'http://192.168.4.40',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

Not sure what to paste here, when I look at the nginx folder it's got a blank error doc and access doc.

When I look in the httpd folder I get:

access_log           error_log-20210815       ssl_error_log-20210815
access_log-20210808  error_log-20210822       ssl_error_log-20210822
access_log-20210815  error_log-20210829       ssl_error_log-20210829
access_log-20210822  ssl_access_log           ssl_request_log
access_log-20210829  ssl_access_log-20210808  ssl_request_log-20210808
error_log            ssl_error_log
error_log-20210808   ssl_error_log-20210808

Nevermind figured it out, needed to change the port to a different number.