After updating some test servers to Nextcloud 12, some warnings are showing on Admin page:
- Some files have not passed the integrity check. (@greavette reported a similar issue)
- The “X-Frame-Options” HTTP header is not configured to equal to “SAMEORIGIN”. (@Christopher_Suttles reported the same issue)
- The “Strict-Transport-Security” HTTP header is not configured to at least “15552000” seconds.
- No memory cache has been configured.
- The PHP Opcache is not properly configured.
About the files integrity check:
[details=Technical information]Technical information
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
- core
- INVALID_HASH
- .htaccess
- EXTRA_FILE
- 3rdparty/guzzle/guzzle/docs/conf.pyc
- INVALID_HASH
Raw output
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[.htaccess] => Array
(
[expected] => da8e0075f23227b107fc705aa1b20378107d3a1c195d96ed13e5f4f25c38d6c660aab75be183ae5799a4ff7eae0ea739a14c944430ee8bb9e9a824235aa136eb
[current] => 11e2db30f0cf23df1b5aa1cdf329a8c88d253f86e43f9e7af1b30969eb0175030103b138e2f7ab7608c902bbb57a5d578c2c0ca09f3abf2ef83415f4bc6f6e20
)
)
[EXTRA_FILE] => Array
(
[3rdparty/guzzle/guzzle/docs/conf.pyc] => Array
(
[expected] =>
[current] => 103e7520c3fcfb9c2a7be7b4a610270a946246ac22dd585a6e40785fa9523ab23d9b69a88208ee6ac52da1f074f01411393ab5d0e3274a5067819f7b4a56095f
)
)
)
)
[/details]Regarding the .htaccess file:
Updating : nextcloud-12.0.0-1.ns7.noarch
warning: /usr/share/nextcloud/.htaccess created as /usr/share/nextcloud/.htaccess.rpmnew
This seems to do the trick for the integrity check messages:
- This was done before accessing Nextcloud admin page:
To see the file differences…
# diff /usr/share/nextcloud/.htaccess.rpmnew /usr/share/nextcloud/.htaccess
16a17
> Header set X-Frame-Options "SAMEORIGIN"
57,58d57
< RewriteCond %{HTTP_USER_AGENT} DavClnt
< RewriteRule ^$ /remote.php/webdav/ [L,R=302]
80a80,83
> #### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
>
> ErrorDocument 403 /core/templates/403.php
> ErrorDocument 404 /core/templates/404.php
and replace the old .htaccess file…
mv /usr/share/nextcloud/.htaccess.rpmnew /usr/share/nextcloud/.htaccess
- And after that looked to get rid of Nextcloud integrity check warning messages:
rm /usr/share/nextcloud/3rdparty/guzzle/guzzle/docs/conf.pyc
rm /usr/share/nextcloud/3rdparty/guzzle/guzzle/docs/conf.pyo # once conf.pyc is gone integrity check warns about conf.pyo
The “X-Frame-Options” HTTP header is not configured to equal to “SAMEORIGIN”.
Putting the newer .htaccess file in place, also got rid of the X-Frame-Options warning.
With the older .htaccess file the X-Frame-Options header was being duplicated.