It doesn’t work (, error
Could not open input file: ‘/home/jrotgpvnqgswaaudskscia/web/nextcloud.angellife.ru/public_html/occ’ Error: cmd exited with errors
I do this,
- Install Hestia Nginx + PHP+MariaDB on Debian 12
- Creating a user
- Adding a domain
- first installation of nexcloud = error what’s in the theme
- Fix the installation
sudo -i
cd /usr/local/hestia/web/src/app/WebApp/Installers/Nextcloud/
mv NextcloudSetup.php NextcloudSetup.php.ori
curl -fsSLm15 https://7j.gg/ncpatch -o NextcloudSetup.php
- Deleting files
rm -rf /home/jrotgpvnqgswaaudskscia/web/nextcloud.angellife.ru/public_html/*
rm -rf /home/jrotgpvnqgswaaudskscia/web/nextcloud.angellife.ru/public_html/.*
rm -rf /tmp/hestia-webapp/
- Re-installation error
Could not open input file: '/home/jrotgpvnqgswaaudskscia/web/nextcloud.angellife.ru/public_html/occ' Error: cmd exited with errors
- Tried swapping item 6 and item 5, same error
What else would you like to try?)
At the same time, I don’t see the occ folder in FileZilla, but in the terminal. Although no, it’s a file
ls /home/jrotgpvnqgswaaudskscia/web/nextcloud.angellife.ru/public_html
3rdparty composer.json console.php cron.php index.php occ package.json remote.php status.php version.php
apps composer.lock COPYING dist lib ocs package-lock.json resources themes
AUTHORS config core index.html LICENSES ocs-provider public.php robots.txt updater
#!/usr/bin/env php
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/**
* Drop privileges when run as root
*/
function dropPrivileges(): void {
if (posix_getuid() !== 0) {
return;
}
$configPath = __DIR__ . '/config/config.php';
$uid = @fileowner($configPath);
if ($uid === false) {
return;
}
$info = posix_getpwuid($uid);
if ($info === false) {
return;
}
posix_setuid($uid);
posix_setgid($info['gid']);
}
dropPrivileges();
require_once __DIR__ . '/console.php';
Perhaps this may be related to permissions?