nextcloud .ocdata error

I’ve place this line in this folder of php /etc/php/7.3/fpm/php.ini / open_basedir = /var/www/nextcloud/:/dev/urandom
I’ve left the default data directory where dietpi set-up data directory /mnt/dietpi_userdata/nextcloud_data. Below is the full line of the error message. Even though the file is there and the folders do have www-data:www-data

Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory. Cannot create “data” directory This can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/21/go.php?to=admin-dir_permissions

What I’ve was doing before this error is to optimize the speed of the nextcloud with the extra php programs.
I’ve tried to read as much as what I can on nextcloud site with this error, no real concise help.

Could someone please help with this problem, even though I could uninstall and re-install to repair.

Did you tried to revert the change you have done?

Yes, I removed the PHP line, still didn’t go past the error. I did install the extra optimisation in nextcloud overview.

can you tell me exactly what you have done? Because I would like to replicate the issue.

Ok it is working. Now it’s showing this message under Overview
There are some warnings regarding your setup.

The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips :arrow_upper_right:.

Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it.

usually these messages can be ignored.