Page 1 of 1

realpath(): open_basedir restriction in effect. Problem

Posted: Wed Aug 30, 2017 5:23 pm
by feezioxiii
I met this problem today while installing blesta (https://www.blesta.com/)

Code: Select all

realpath(): open_basedir restriction in effect. File(/usr/lib/php5/20121212) is not within the allowed path(s): (/home/admin/web/domain.com/public_html:/home/admin/tmp) on line 2 in /home/admin/web/domain.com/public_html/app/app_model.php
You guys have any idea for this? I've tried config the basedir like suggested:
viewtopic.php?t=6747

Code: Select all

php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/usr/lib/php5/20121212
The problem still appears, even I disable open_basedir by 'none' still the same, any idea?
And please note that I'm using self-hosted on my VPS only. Not intended to share with anyone.

*Using Ubuntu 14.04, Php 5

Re: realpath(): open_basedir restriction in effect. Problem

Posted: Wed Aug 30, 2017 6:17 pm
by mehargags
you can try to install with

php_admin_value open_basedir /home/<VestaCPusername>:/tmp:/etc

after installation you can try and remove the three directories one by one and see if Blesta works without each one of them.

Re: realpath(): open_basedir restriction in effect. Problem

Posted: Sat Jan 27, 2018 8:50 pm
by 2kreative
The solution is to install Ioncube loader, and that takes care of that particular error in Blesta :)