Nextcloud or php seems to cache the config.php. If I change the config.php with vi, then nothing changes in nextcloud. But if I change e.g. the smtp service in the GUI of nextcloud, the config.php is also changed.
After many installation attempts of nextcloud, redis, postgresql and switching to the database mariadb only a reinstallation of php solved the problem exactly once. After that it occurs again.
Concrete example:
I have added
'maintenance_window_start' => true,
but nothing happened. Only after reinstalling php I can’t get into nextcloud anymore. But after deleting this line nothing changes.
I noticed this problem by inserting the line
'default_phone_region' => 'DE',
but that did not fix the warning in nextcloud. Previously I had tried to update nextcloud from version 24.0.4 to 24.0.5. The update was probably almost ok, only the config.php still contains the version number 24.0.4.1.
Everything are current versions: Ubuntu, nextcloud, databases, redis, php.
Also I had tried in between to disable in the php.ini the cache with
opcache.enable = 0
but that didn’t change anything either.
The same is happening to me. Manual updates to the config file do not remove the security warnings. I updated the SMTP info in the Gui, and the changes were added to the config file. I added ‘default_phone_region’ => ‘DE,’ but the warnings persisted after the security scan.
I only can respond to what you write here - which is not that much and particularly says very little except this:
It must be
'default_phone_region' => 'DE',
and not
'default_phone_region' => 'DE,'
Much and good luck,
ernolf
Indeed. If you want help with this, please post your parsed config. That means running occ config:list system
.
Also, go to Administration settings->System and tell us the number listed after OPcache Revalidate Frequency in the PHP section.
Thanks for replying. That was a forum typo. My entry is:
'default_phone_region' => 'US',
Here’s a pic of the entry:
I tested your config and it works for me. Maybe you missed a comma a line above. Maybe you can move the config line to another position in your config.php
and not to the end.
I reinstalled. It’s working now as expected.
There was a comma missing at the end of line.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.