I have just finished manually installing the latest version of Nextcloud onto my file server PC running the Ubuntu Server 22.04.4 OS. It is a direct to metal installation of Nextcloud. In other words, it is not a SNAP or a Docker Portainer installation. Lastly, I followed the install instructions outlined in the YouTube video below:
https://www.youtube.com/watch?v=r--pQtwQMv0
My Apache2 installation is brand new and the problem is as follow. When I run this command: sudo systemctl status apache2
I get the WARNING shown below in my SSH terminal:
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
How do I fix this AH00558 error? And what does it mean? I ask because I strongly suspect this AH00558 error is behind a second error I am getting in my builtin Nextcloud Logging window shown below:
Host 19x.15x.x.xxx was not connected to because it violates local access rules.
Below I have included both my PHP.conf file and my Nextcloud.conf file. My hope is somebody in this forum can take a look at the two files below and let me know if a problem exists I need to fix:
MY PHP.conf file below:
> <?php
> $CONFIG = array (
> 'instanceid' => 'XXXXXXXXXXXXXXXXX',
> 'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXX',
> 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
> 'trusted_domains' =>
> array (
> 0 => '19x.15x.x.xxx',
> ),
> 'datadirectory' => '/mnt/myssd/nextcloud/data',
> 'dbtype' => 'mysql',
> 'version' => '28.0.3.2',
> 'overwrite.cli.url' => 'http://19x.15x.x.xxx',
> 'dbname' => 'nextcloud',
> 'dbhost' => 'localhost',
> 'dbport' => '',
> 'dbtableprefix' => 'oc_',
> 'mysql.utf8mb4' => true,
> 'dbuser' => 'XXXXXXXXXXXXXX',
> 'dbpassword' => 'XXXXXXXXXXXXXX',
> 'installed' => true,
> 'memcache.local' => '\\OC\\Memcache\\APCu',
> 'memcache.distributed' => '\\OC\\Memcache\\Memcached',
> 'memcache.locking' => '\\OC\\Memcache\\Memcached',
> 'default_phone_region' => 'US',
> 'maintenance_window_start' => 1,
> 'maintenance' => false,
> 'allow_local_remote_servers' => true,
> );
MY Nextcloud.conf file below:
GNU nano 6.2 nextcloud.conf
<VirtualHost *:80>
Protocols h2 h2c http/1.1
ServerName 19x.15x.x.xxx
DocumentRoot /var/www/nextcloud
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php8.2-fpm.sock|fcgi://localhost"
</FilesMatch>
<Directory /var/www/nextcloud/>
Satisfy Any
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
ErrorLog /var/log/apache2/nextcloud-error.log
CustomLog /var/log/apache2/nextcloud-access.log common
</VirtualHost>