an open_basedir restriction enabled on your server

tomwin

Verified User
Joined
Apr 23, 2020
Messages
77
Hi, I trying to move my domain and website to my new VPS on my directadmin but there is some error I don’t understand.
I have disable Open Basedir on my domain I think. Look at the picture. Do I need to do anything else?

UnexpectedValueException: DirectoryIterator::__construct(): open_basedir restriction in effect. File(/home/test/public_html/datastore) is not within the allowed path(s): (/home/admin/:/tmp:/var/tmp:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php73/lib/php/) (0)

#0 /home/admin/domains/domain.com/public_html/system/Data/Store/
 

Attachments

  • 882801C2-08F9-4E2F-A939-A64D4A86040F.jpeg
    882801C2-08F9-4E2F-A939-A64D4A86040F.jpeg
    198.7 KB · Views: 123
Your script runs from /home/admin/domains/domain.com/public_html/system/Data/Store/
but tries to work with /home/test/public_html/datastore
it looks like in some config still old paths to dirs, or this script realy must work with another account at this server?
 
I trying to move my IPS script from a shared hosting to this new VPS. So I just copy the files from my old and the database to my new VPS and now I get this error.
 
Solved. I found the problem. It was an old url left in the constant.php that cause this error. Thanks for the help.
 
Back
Top