Support intro
Sorry to hear you’re facing problems
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
Nextcloud version : 23.0.1.2
Operating system and version : Raspbian Bullseye 64bit
Apache or nginx version: Apache 2.4.52
PHP version : 8.0
The issue you are facing:
Hi, after completing the configuration of nextcloud server on my RPi4, I wanted to correct the errors that were present in the summary. To do this, among other things I added some parameters to the config.php file (like my domain ddns, memcache and phone region). After this I reloaded Apache2 and from that moment I cannot access the server anymore due to the attached screen. Is there anything I can do or do I need to reconfigure all over again?
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- connect to NextcloudServerIP/nextcloud
- White screen with internal error shown
The output of your Nextcloud log in Admin > Logging:
N/A
The output of your config.php file in /var/www/nextcloud/config
:
?php
$CONFIG = array (
'instanceid' => '__________',
'passwordsalt' => '___________________________',
'secret' => '____________',
'trusted_domains' =>
array (
0 => '192.168.178.42',
1 => 'MYDOMAIN.DOMAIN.COM',
),
'default_phone_region' => 'IT'
'datadirectory' => '/home/adblock/NAS/NextCloud',
'dbtype' => 'mysql',
'version' => '23.0.1.2',
'overwrite.cli.url' => 'http://192.168.178.42/nextcloud',
'dbname' => 'DBNAME',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'USER',
'dbpassword' => 'MY PASSWORD',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
);
The output of Apache error.log in /var/log/apache2
:
[Sat Feb 12 14:55:02.582187 2022] [mpm_prefork:notice] [pid 2202] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Feb 12 14:55:02.879245 2022] [mpm_prefork:notice] [pid 2410] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Sat Feb 12 14:55:02.879434 2022] [core:notice] [pid 2410] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 12 15:09:04.857379 2022] [mpm_prefork:notice] [pid 2410] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Feb 12 15:09:05.151111 2022] [mpm_prefork:notice] [pid 2504] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Sat Feb 12 15:09:05.151310 2022] [core:notice] [pid 2504] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 12 15:09:12.963834 2022] [php:error] [pid 2505] [client 192.168.178.23:23235] PHP Parse error: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php on line 12
[Sat Feb 12 15:09:14.384271 2022] [php:error] [pid 2506] [client 192.168.178.23:23236] PHP Parse error: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php on line 12
[Sat Feb 12 15:09:19.379769 2022] [php:error] [pid 2507] [client 192.168.178.23:23238] PHP Parse error: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php on line 12
[Sat Feb 12 16:16:04.604500 2022] [php:error] [pid 2508] [client 192.168.178.23:23836] PHP Parse error: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php on line 12
[Sat Feb 12 16:45:57.214554 2022] [php:error] [pid 2509] [client 192.168.178.23:24102] PHP Parse error: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php on line 12
In addition to this I add the output of: sudo -u www-data php occ files:scan --all
An unhandled exception has been thrown:
ParseError: syntax error, unexpected single-quoted string "datadirectory", expecting ")" in /var/www/nextcloud/config/config.php:12
Stack trace:
#0 /var/www/nextcloud/lib/private/Config.php(69): OC\Config->readData()
#1 /var/www/nextcloud/lib/base.php(150): OC\Config->__construct()
#2 /var/www/nextcloud/lib/base.php(575): OC::initPaths()
#3 /var/www/nextcloud/lib/base.php(1087): OC::init()
#4 /var/www/nextcloud/console.php(48): require_once('...')
#5 /var/www/nextcloud/occ(11): require_once('...')
#6 {main}