My config.php vs config.sample.php

I was wondering if somebody could take a look at my config.php as the entire syntax is significantly different from ‘config.sample.php’.

Nextcloud Hub runs as a ‘R,L’ redirect subdomain at: https://share.mysite.com, however the base URL is: https://mysite.com/share.

Nextcloud 20.0.4 on Ubuntu 18.04, PHP 7.4

THX in advance!

Is this a valid config.php for Nextcloud 20.0.4?
<?php
$CONFIG = array (
‘instanceid’ => ‘xxxxxxxxxxxxxxxxxxxxxxxx’,
‘passwordsalt’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’,
‘secret’ => ‘sssssssssssssssssssssssssssssssssssssss’,
‘trusted_domains’ =>
array (
0 => ‘share.mysite.com’,
1 => ‘mysite.com’,
2 => ‘192.168.99.15’,
),
‘datadirectory’ => ‘/var/www/clients/client11/web1/private/share’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘20.0.4.0’,
‘overwrite.cli.url’ => ‘https://mysite.com/share’,
‘dbname’ => ‘c1share’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextclouddbuser’,
‘dbpassword’ => ‘nextclouddbpass’,
‘installed’ => true,
‘maintenance’ => false,
‘loglevel’ => 3,
‘ldapUserCleanupInterval’ => 51,
‘mail_from_address’ => ‘share’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_domain’ => ‘mysite.com’,
‘mail_smtphost’ => ‘smtpmysite.com’,
‘mail_smtpport’ => ‘25’,
‘allow_local_remote_servers’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.distributed’ => ‘\OC\Memcache\Memcached’,
);

Is your instance working and is this the complete file? Seems there is at least a ) missing at the end, but there are also settings in mine you dont have…

1 Like

Thanks for the reply, I the copy/paste left out the “);” - I have edited the original post for accuracy.

Is there a current and accurate config.sample.php? The one in my installation does not use ‘array’ at all and instead seems to use ‘[’ instead of ‘(’
And anytime I try to implement, ‘‘log_rotate_size’ => 100 * 1024 * 1024,’ Nextcloud crashes

THX