Problem installing Opencart with Quick Install

I tried installing opencart using the quick installer and the installation completed but when I view it on the web it says:

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/newroot/.composer:/home/newroot/web/opencart.soulyears.com/public_html:/home/newroot/web/opencart.soulyears.com/private:/home/newroot/web/opencart.soulyears.com/public_shtml:/home/newroot/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/newroot/web/opencart.soulyears.com/public_html/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 91Twig\Error\LoaderError: The β€œ/” directory does not exist (β€œ/”). in /home/newroot/web/opencart.soulyears.com/public_html/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 92

In FilesystemLoader.php line 92 there is:

$checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
if (!is_dir($checkPath)) {
throw new LoaderError(sprintf(β€˜The β€œ%s” directory does not exist (β€œ%s”).’, $path, $checkPath));
}

Any help with fixing this would be appreciated.

Also, is it possible to access the folder directly below /home/newroot/.composer:/home/newroot/web using Hestia?

I want to put some files in a download directory just before the users’ home directory which can be used by Opencart but which the users themselves do not have direct access to and cannot mess with. I realize I can access the said folder using Midnight Commander but was wondering if it is possible for me to access it from within Hestia?

Take a look to this fix:

2 Likes

OK, thanks. I managed to fix it now using that command. I’m so used to modifying Opencart files manually using a text editor that it did not immediately occur to me that the fix involved a command in the terminal!

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