Open_basedir opencart

Help me please.
Something is wrong with open_basedir

opencart 2.3
Server error
AH01071: Got error ‘PHP message: PHP Warning: is_file(): open_basedir restriction in effect. File(/home/admin/web/site.com/public_html/system/…/…/vendor/autoload.php) is not within the allowed path(s): (/home/admin/web/site.com/public_html:/home/admin/web/site.com/public_shtml:/home/admin/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/admin/web/site.com/public_html/system/startup.php on line 70\n’

open_basedir (<?php phpinfo(); ?>)

/home/admin/web/site.com/public_html:/home/admin/web/site.com/public_shtml:/home/admin/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt

/system/startup.php - line 70
// Autoloader
if (is_file(DIR_SYSTEM . ‘…/…/vendor/autoload.php’)) {
require_once(DIR_SYSTEM . ‘…/…/vendor/autoload.php’);

We do NOT suggest to run anything under a admin user. Please create a new, unprivleged user. Then try again to install opencart and check, if the issue still occures.

Did as you said, the problem remains.

It seems to include files in

home/admin/web/site.com/vendor/autoload.php

And this path is not in the open base dir

How did you install open-chart?

I run only opencart as dislike wordpress, never had any issue with open_basedir on Hestia and run 2.3.0.2, 3.0.3.1 and 3.0.3.7 on standalone nginx on 2 sites and apache/nginx on another and still works, each are on separate vps.

You need to check your hestia template files, copy the web/php templates and make your own adding paths or disable open_basedir

If when you open the site on the engine opencart you get an error related to open_basedir, namely:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/user/public_html/system/…/…/vendor/autoload.php) is not within the allowed path(s): (/home/user/public_html:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/user/public_html/system/startup.php on line XX

then you can solve it by correcting the system/startup.php file, to be more specific, replace the lines

// Autoloader
if (file_exists(DIR_SYSTEM . ‘…/…/vendor/autoload.php’)) {
require_once(DIR_SYSTEM . ‘…/…/vendor/autoload.php’);
}

at

//autoloader
if (file_exists(DIR_SYSTEM . ‘vendor/autoload.php’) {
require_once(DIR_SYSTEM . ‘vendor/autoload.php’)
}