We are running ownCloud on centos 7 and php 5.6 server. Recently, we changed the data directory. After changing data directory, files were not appearing in user’s folder we are required to run occ files:scan.
Since occ requires 7.0.7 I had upgrade the PHP version as described here … https://doc.owncloud.com/server/admin_manual/upgrading/upgrade_php.html
After upgrading PHP version, server shows php version as 7.0 but I cannot run occ file scan as it still tell that you are running php 5.6