Nextcloud version 24
Operating system and version Raspberry Pi OS 11
Apache or nginx version: Apache/2.4.53 (Debian)
PHP version : PHP 8.0.18
The issue you are facing: Internal Server Error not able to load nextcloud
Is this the first time you’ve seen this error? Yes
The output of your config.php file in /path/to/nextcloud
<?php
$CONFIG = array (
'instanceid' => 'XXXXX',
'passwordsalt' => 'XXXX',
'secret' => 'XXXX',
'trusted_domains' =>
array (
0 => 'XXX',
1 => 'XXX',
),
'datadirectory' => '/home/Nextcloud',
'dbtype' => 'mysql',
'version' => '24.0.0.12',
'overwrite.cli.url' => https://mydomain.com/nextcloud
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'XXX',
'dbpassword' => 'XXX',
'installed' => true,
'htaccess.RewriteBase' => 'mydomain.com/nextcloud',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.0,
),
'maintenance' => false,
'app_install_overwrite' =>
array (
0 => 'files_readmemd',
),
'updater.secret' => 'XXX',
'theme' => '',
'loglevel' => 2,
);
The output of your Apache /var/log/apache2/error.log
[Fri May 06 09:44:47.798351 2022] [core:alert] [pid 181523] [client 147.161.183.93:11899] /var/www/html/nextcloud/.htaccess: RewriteBase: argument is not a valid URL
[Fri May 06 09:44:49.995845 2022] [core:alert] [pid 181546] [client 147.161.183.93:13303] /var/www/html/nextcloud/.htaccess: RewriteBase: argument is not a valid URL, referer: https://thewolves.cyou/nextcloud/index.php/apps/photos/service-worker.js
[Fri May 06 09:45:18.737588 2022] [core:alert] [pid 181524] [client 147.161.183.93:43698] /var/www/html/nextcloud/.htaccess: RewriteBase: argument is not a valid URL, referer: https://thewolves.cyou/nextcloud/index.php/apps/photos/service-worker.js
Excerpt from .htaccess
in /var/www/html/nextcloud/.htaccess
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
ErrorDocument 403 /nextcloud/
ErrorDocument 404 /nextcloud/
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$
RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\.php
RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\.ico|manifest\.json)$
RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\.php
RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2)\.php
RewriteCond %{REQUEST_FILENAME} !/robots\.txt
RewriteCond %{REQUEST_FILENAME} !/(ocm-provider|ocs-provider|updater)/
RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$
RewriteRule . index.php [PT,E=PATH_INFO:$1]
RewriteBase mydomain.com/nextcloud
<IfModule mod_env.c>
SetEnv front_controller_active true
<IfModule mod_dir.c>
DirectorySlash off
</IfModule>
</IfModule>
</IfModule>
Any help would be greatly appreciated. I tried to provide all the information from my investigation so far but if there’s any other information I should provide please let me know. Thank you