2022年3月10日 星期四

NextCloud Internal Server Error after login

1) sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
2) chown -R www-data:www-data /var/www/nextcloud/
3) chmod -R 770 /var/www/nextcloud/
4) sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
5) sudo -u www-data php /var/www/nextcloud/occ db:add-missing-columns
6) sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
7) sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
8) sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
9) sudo systemctl restart apache2

1) mysql> select * from oc_storages;
delete all the content from the table oc_filecache
2) mysql> TRUNCATE TABLE oc_filecache;

編輯 nextcloud/config/config.php
'trusted_domains' =>
  array (
    0 => 'localhost',
1 => 'exap\mple.com',
2 => '192.168.1.1',
  ),
 'datadirectory' => '/var/www/nextcloud-data',
 'dbtype' => 'mysql',

沒有留言: