Env
Nextcloud version : 26(nextcloud-aio)
Operating system and version: Centos9(RockyLinux 9)
Apache or nginx version (eg, Apache 2.4.25): nginx1.24 as reverse proxy, apache installed on nextcloud-aio
PHP version (eg, 7.4): php8.1
issue
- My nextcloud desktop client can’t access after some operations in config.php since eariler I configuring the onlyoffice.
- The nextcloud can be accessed normally on desktop and mobile, but not webdav
- I checked out the nextcloud client’s log, found out that status.php’s response is incorrect
- So I accessed status.php from browser, it’s came out that:
Parse error: syntax error, unexpected single-quoted string "overwrite.cli.url", expecting ")" in /var/www/html/config/config.php on line 111
- But my config.php has already back to normal ! And I have restarted the nextcloud-aio for once, the response has nothing to change
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- modify somewhere in config.php, makes it has a syntax error
- access the nextcloud using nextcloud-desktop
- resume the config.php
The output of your Nextcloud log in Admin > Logging:
NOTHING RELATE TO THE status.php
The output of your config.php file:
<?php
$CONFIG = array (
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'check_data_directory_permissions' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => '8aad334b44830d37d2d7984c63a917ac075e9e6f0cb3b308',
'port' => 6379,
),
'overwritehost' => 'drive.hadream.ltd',
'overwriteprotocol' => 'https',
'passwordsalt' => '5FW1DUxnvVwtncGbhxTDirclc1A1Pn',
'secret' => 'zMN65sZJTPrxjl/q+E+RBeS4rlHUNWAheqgL4XmrtCBAoIl5',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'drive.hadream.ltd',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '26.0.4.2',
'overwrite.cli.url' => 'https://drive.hadream.ltd/',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nextcloud',
'dbpassword' => 'daab92e14f207c1c117b879d64c945d3874dd77352a85be6',
'installed' => true,
'instanceid' => 'oc5k2ruq423j',
'maintenance' => false,
'loglevel' => '2',
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => '10485760',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'enabledPreviewProviders' =>
array (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
7 => 'OC\\Preview\\Krita',
0 => 'OC\\Preview\\Imaginary',
),
'enable_previews' => true,
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'trashbin_retention_obligation' => 'auto, 30',
'versions_retention_obligation' => 'auto, 30',
'activity_expire_days' => '30',
'simpleSignUpLink.shown' => false,
'share_folder' => '/Shared',
'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
'updatedirectory' => '/nc-updater',
'htaccess.RewriteBase' => '/',
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
),
'allow_local_remote_servers' => true,
'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
'appstoreurl' => 'https://www.orcy.net/ncapps/v2/',
'appstoreenabled' => true,
'memories.exiftool' => '/var/www/html/custom_apps/memories/exiftool-bin/exiftool-amd64-musl',
'memories.vod.path' => '/var/www/html/custom_apps/memories/exiftool-bin/go-vod-amd64',
'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
'memories.vod.ffprobe' => '/usr/bin/ffprobe',
'app_install_overwrite' =>
array (
0 => 'files_fulltextsearch',
1 => 'richdocuments',
)
);