Last updated on March 13, 2019
If you getting Nextcloud integrity check fail or internal server error try the solution below.
This error usually appears after version upgrade.
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on sudo -u www-data php occ app:disable *appname* sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off sudo -u www-data php occ upgrade echo "Deny from all" >/var/www/nextcloud/apps/news/vendor/ezyang/htmlpurifier/maintenance/.htaccess && sudo -u www-data php /var/www/nextcloud/occ integrity:check-app news;