Короче, проблема в том, что вроде все настроено правильно. Скрипт с автоустановкой. Пользуюсь VDS от FirstVDS.
Но не могу понять, почему возникает ошибка.
В логах:
Код: Выделить всё
PHP Warning: file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/www-root/data:.) in /var/www/www-root/data/www/localhost.fvds.ru/core/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69, referer: https://localhost.fvds.ru/admin/dashboardНу я решил это сделать в конфигах
Код: Выделить всё
open_basedir = /var/www/www-root/data:/var/www/www-root/data/www/denshame.fvds.ru/coreВот код Autoloader.php, где появляется 69 строк ошибок.
Код: Выделить всё
/**
* @throws RuntimeException
*/
private static function getClassLoader() : ClassLoader
{
if (file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
return include getenv('COMPOSER_VENDOR_DIR') . '/autoload.php';
}
if (file_exists(__DIR__ . '/../../../autoload.php')) {
return include __DIR__ . '/../../../autoload.php';
}
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
return include __DIR__ . '/../vendor/autoload.php';
}
throw new RuntimeException('Cannot detect composer autoload. Please run composer install');
}

< img alt="Скриншот ошибки сервера 500" src="
" />Ну, я решил сделать это в конфиги
Код: Выделить всё
open_basedir = /var/www/www-root/data:/var/www/www-root/data/www/denshame.fvds.ru/coreИсточник: https://stackoverflow.com/questions/781 ... ent-method
Мобильная версия