After installing a Composer package, I am trying to include the autoloader and run the script:
require __DIR__ . 'vendor/autoload.php';
At this point I get the following messages:
Warning: require(): open_basedir restriction in effect. File(/home/admin/domains/example.com/private_html/map/mt940/_example/vendor/autoload.php) is not within the allowed path(s): (/home/admin/:/tmp:/var/tmp:/opt/alt/php72/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php72/lib/php/) in /home/admin/domains/example.com/private_html/map/mt940/_example/example1.php on line 6
Warning: require(/home/admin/domains/example.com/private_html/map/mt940/vendor/autoload.php): failed to open stream: No such file or directory in /home/admin/domains/example.com/private_html/map/mt940/_example/example1.php on line 6
Fatal error: require(): Failed opening required '/home/admin/domains/example.com/private_html/map/mt940/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /home/admin/domains/example.com/private_html/map/mt940/_example/example1.php on line 6
Am I missing a step? Why do I get this error message?
Update 1:
After disabling open_basedir I still get the following error messages:
Warning: require(/home/admin/domains/example.com/private_html/map/mt940/vendor/autoload.php): failed to open stream: No such file or directory in /home/admin/domains/example.com/private_html/map/mt940/_example/example1.php on line 6
Fatal error: require(): Failed opening required '/home/admin/domains/example.com/private_html/map/mt940/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /home/admin/domains/example.com/private_html/map/mt940/_example/example1.php on line 6