hejiaqiao Posted January 19, 2021 Report Share Posted January 19, 2021 Something went wrong. realpath(): open_basedir restriction in effect. File(/www/wwwroot) is not within the allowed path(s): (/www/wwwroot/blesta.vpsjz.com/:/tmp/) Quote Link to comment Share on other sites More sharing options...
0 Paul Posted January 19, 2021 Report Share Posted January 19, 2021 15 hours ago, hejiaqiao said: Something went wrong. realpath(): open_basedir restriction in effect. File(/www/wwwroot) is not within the allowed path(s): (/www/wwwroot/blesta.vpsjz.com/:/tmp/) Your php.ini has an open_basedir restriction. The best solution is to edit your php.ini, find the open_basedir line and remove the values.. open_basedir = If you want to keep the restriction, you should add all of the paths mentioned in your error to the value. Quote Link to comment Share on other sites More sharing options...
0 Keith B. Posted August 25, 2021 Report Share Posted August 25, 2021 I was able to resolve this issue after several days of first getting ioncube to be recognized by my nginx server and then the this "realpath(): open_basedir restriction in effect. File(/www/wwwroot) is not within the allowed path(s): (/www/wwwroot/blesta.vpsjz.com/:/tmp/)" error. Well not exactly to the letter, but here's how I fixed it or got it to work. On my server the php.ini file was shared by all versions 5.6-8.0. All I had to do is to edit the 7.4-fm php.ini via Hestia, and the changes were made globally. on the line #305 in my case I added everything that was included in the () after "File(/www/wwwroot) is not within the allowed path(s):" which in Hejiaqiao case is /www/wwwroot/blesta.vpsjz.com/:/tmp/. So it should appear as: ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory ; or per-virtualhost web server configuration file. ; http://php.net/open-basedir open_basedir = /www/wwwroot/blesta.vpsjz.com/:/tmp/ Next log into the VPS or server, website or whatever as root in my case. navigate to the folder where Blesta is located. In my case: cd /home/user/web/example.com/public_htmlNOTE: Be sure to drop all the tables and what not from the database that your using for Blesta before starting step 3. Now RUN php ./index.php install Now just follow the onscreen prompts such as providing the Database, Database User Name, and Password and the setup should complete as normally. I hope that this helps. I have been trying to get this software to work to try it out for a week. Paul 1 Quote Link to comment Share on other sites More sharing options...
Question
hejiaqiao
Something went wrong.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.