If you have error when making a command:
sudo -u www-data php /var/www/html/owncloud/occ files:scan –all
„Make sure you’re running the scan command only as the user the web server runs as”
Home storage for user Martyna not writable
login to mysql
mysql -u root -p
use database owncloud;
SELECT * FROM oc_accounts ;
and change path location:
UPDATE oc_accounts SET home=’/MySecretLocation/owncloud/data/Martyna‚ WHERE id=1;