Cannot Erase or Change folder & contents or shares

Server configuration detail

Operating system: FreeBSD 12.2-RELEASE-p10 FreeBSD 12.2-RELEASE-p10 b26f74b5984(HEAD) TRUENAS amd64

Webserver: Apache/2.4.51 (FreeBSD) OpenSSL/1.1.1h-freebsd (fpm-fcgi)

Database: mysql 8.0.26

PHP version: 7.4.25

Modules loaded: Core, date, libxml, pcre, hash, Reflection, SPL, session, standard, cgi-fcgi, mysqlnd, bcmath, ctype, curl, dom, fileinfo, filter, gd, gmp, iconv, imagick, intl, json, mbstring, mysqli, openssl, PDO, zlib, posix, SimpleXML, sqlite3, tokenizer, xml, xmlwriter, zip, Phar, pdo_mysql, pdo_sqlite, xmlreader, Zend OPcache

Nextcloud version: 21.0.7 - 21.0.7.0

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/nextcloud-21.0.2.zip

Signing status

Array ( )

List of activated apps
Enabled:
 - accessibility: 1.7.0
 - activity: 2.14.3
 - apporder: 0.13.0
 - cloud_federation_api: 1.4.0
 - comments: 1.11.0
 - contactsinteraction: 1.2.0
 - dav: 1.17.1
 - federatedfilesharing: 1.11.0
 - files: 1.16.0
 - files_pdfviewer: 2.1.1
 - files_rightclick: 1.0.0
 - files_sharing: 1.13.1
 - files_trashbin: 1.11.0
 - files_versions: 1.14.0
 - files_videoplayer: 1.10.0
 - logreader: 2.6.0
 - lookup_server_connector: 1.9.0
 - music: 1.4.1
 - nextcloud_announcements: 1.10.0
 - notifications: 2.9.0
 - oauth2: 1.9.0
 - password_policy: 1.11.0
 - photos: 1.3.0
 - privacy: 1.5.0
 - provisioning_api: 1.11.0
 - radio: 1.0.3
 - recommendations: 1.0.0
 - serverinfo: 1.11.0
 - settings: 1.3.0
 - sharebymail: 1.11.0
 - support: 1.4.0
 - survey_client: 1.9.0
 - text: 3.2.0
 - theming: 1.12.0
 - twofactor_backupcodes: 1.10.0
 - updatenotification: 1.11.0
 - user_status: 1.1.1
 - video_converter: 1.0.3
 - viewer: 1.5.0
 - weather_status: 1.1.0
 - workflowengine: 2.3.1
Disabled:
 - admin_audit
 - dashboard
 - encryption
 - federation
 - files_external
 - firstrunwizard
 - systemtags
 - user_ldap

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "192.168.15.164",
        "om.rent14me.com"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "21.0.7.0",
    "overwrite.cli.url": "http:\/\/localhost",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "updater.secret": "***REMOVED SENSITIVE VALUE***",
    "theme": "",
    "loglevel": 2,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN"
}

External storages: files_external is disabled

Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

https://www.adminbyaccident.com/freebsd/how-to-freebsd/how-to-install-nextcloud-on-freebsd-12/

The problem was solved today. It was caused by some code in security settings of AdminbyAccident’s code. Replacing the file /usr/local/etc/apache24/extra/nextcloud-security.conf with an empty file resolved this.

RESOLVED - no thanks to anyone but my own stubborn self and many hours of work.