Customized .user.ini and integrity check

Nextcloud version : 16.0.1
Operating system and version : CentOS Linux release 7.6.1810 (Core)
Apache or nginx version : Apache httpd-2.4.6-89.el7.centos.x86_64
PHP version: 7.2

The issue I’m facing: Nextcloud Integrity check complains about .user.ini hash

Is this the first time you’ve seen this error?: N

Steps to replicate it:

  1. Make a customization in .user.ini file in nextcloud root dir
  2. Reload page settings/admin/overview page
  3. Open the Technical Information page

The output of my config.php ;

<?php
$CONFIG = array (
  'passwordsalt' => 'sdsdsdsd/',
  'secret' => 'psdsdsdsdsdsd',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.50.8',
  ),
  'htaccess.RewriteBase' => '/',
  'datadirectory' => '/var/lib/nethserver/nextcloud/',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'installed' => true,
  'instanceid' => '',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'loglevel' => 2,
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'example.com',
  'logfile' => '/var/lib/nethserver/nextcloud/nextcloud.log',
  'mail_smtpsecure' => '',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'theme' => '',
  'app_install_overwrite' => 
  array (
    0 => 'spreed',
    1 => 'unsplash',
    2 => 'announcementcenter',
    3 => 'groupfolders',
    4 => 'external',
    5 => 'files_accesscontrol',
  ),
  'mysql.utf8mb4' => true,
);

Why Can’t I custom .user.ini? Is there another way to do it?
Thanks in advance!

1 Like

I just had this problem too, and subsequently my user.inigot wiped by an upgrade :rage: :disappointed:

These are the posts about this issue Just for 2019:

https://help.nextcloud.com/search?q=user.ini%20after%3A2019-01-01