Permission denied in /var/www/owncloud/occ

hi, I get an error at startup sudo -u www-data ./occ maintenance:mode --off:

PHP Warning:  require_once(/var/www/owncloud/console.php): failed to open stream: Permission denied in /var/www/owncloud/occ on line 11
PHP Fatal error:  require_once(): Failed opening required '/var/www/owncloud/console.php' (include_path='.:/usr/share/php') in /var/www/owncloud/occ on line 11

How can I fix this?

owncloud Version
PHP Version: 7.4.3
Permissions: -rwxr-x–x 1 www-data www-data occ*

проблема решена, отсутствовал доступ к папке www

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.