OpenCart - Warning: realpath(): open basedir restriction in effect. in /home/admin/web/site.ru/public html/admin/controller/common/security.php on line 26
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
OpenCart - Warning: realpath(): open basedir restriction in effect. in /home/admin/web/site.ru/public html/admin/controller/common/security.php on line 26
Полный текст ошибки:
Warning: realpath(): open_basedir restriction in effect. File(/home/admin/web/site.ru) is not within the allowed path(s): (/home/admin/web/site.ru/public_html:/home/admin/tmp) in /home/admin/web/site.ru/public_html/admin/controller/common/security.php on line 26
Решение - подправить в конфигах: admin/config.php, config.php строку:
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
на
define('DIR_STORAGE', DIR_SYSTEM . '/storage/');
Переменная DIR_SYSTEM у нас:
define('DIR_SYSTEM', '/home/admin/web/site.ru/public_html/system/');