Hi NextCloud community,
I have recently installed NextCloud on a server hosted in a data centre and work now through the different security & setup warnings.
Somehow the changes I perform in the config.php do not seem to take any effect on my system. The config.php is located at “~/nextcloud/config”, here is also the config.sample.php located, from which I got the different settings.
My config.php looks like this:
<?php
$CONFIG = [
/** Set default phone number to Germany */
'default_phone_region' => ‘DE’,
/** Pretty URLs */
'overwrite.cli.url' => 'https://hostadress/',
'htaccess.RewriteBase' => '/',
/** Disable autocompletion for login */
'login_form_autocomplete' => false,
/** Data memory caching APCu */
'memcache.local' => '\OC\Memcache\APCu',
];
?>
None of the included setting take any effect, so I still get the following warnings and also the index.php from sharing links is not removed:
For the configuration of the memory caching I followed the instructions from the NextCloud docs “Memory caching”. I also plan to use Redis, but as long as APCu is not working I don’t need to proceed with that.
Does any one have any idea where the issue is and how I can solve it?
Thank you very much in advance for your kind support!
Did you check that apc.enable_cli=1 in your php.ini? And check that php.ini is correct one, for CLI, FPM you have more php.ini files in a different folders.
Your phone country code is correct but not being recognized so there is something wrong with your config.php file format. Please backup your config.php file and check the following:
Delete all commented lines and see if your changes take effect
Review your file format, specifically the opening block characters [ ] and the php close command. My config.php file does not have either (see below) and works fine:
Does the location where the config is saved has any influence? I have saved it in the same folder where the config.sample.php located is, so “~/nextcloud/config”
That above is my entire config.php file. I had created it when setting up NextCloud and it is only in it what I have entered. I understand that it should have been created automatically when setting it up, but it wasn’t.
Alright guys I have solved the issue. I was using the wrong config folder. I was using the one in the home directory of my user not the one in “/var/www/nextcloud”.