Post by duder258 » Tue May 22, 2018 9:26 am

After installing OpenCart and going into the Administrative area I get the following error message show at the top of the page.

Code: Select all

Warning: realpath(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\goatgirlsoapandmore.com) is not within the allowed path(s): (C:/Inetpub/vhosts/goatgirlsoapandmore.com\;C:\Windows\Temp\) in C:\Inetpub\vhosts\goatgirlsoapandmore.com\httpdocs\admin\controller\common\security.php on line 26.
I also get the security notification to move the storage directory but I'm not sure how to do that or where to move it to.
Last edited by straightlight on Wed May 06, 2020 6:54 pm, edited 1 time in total.
Reason: Added code tags.

Newbie

Posts

Joined
Sat May 05, 2018 5:33 am

Post by sw!tch » Wed May 23, 2018 2:11 am

Some web hosts have open_basedir restrictions on so you may need to have them correct it.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Qphoria » Wed May 23, 2018 2:28 am

You can ask your host to disable open basedir restrictions

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by annettek » Wed May 06, 2020 6:30 pm

i just chnaged it in the

ngix - .user.ini
apache php.ini
this is what is was originally
open_basedir=/www/wwwroot/www.site.com:/tmp/:/proc/
just edit it what you need ie below
open_basedir=/www/wwwroot/:/tmp/:/proc/

just alter this to allow files in the directory before main web folder.

Annette Kennedy
Thanks For Any Help In Advance


User avatar
Newbie

Posts

Joined
Fri Apr 10, 2020 6:30 pm

Post by Rodriguezs » Fri May 08, 2020 11:44 pm

Once you know you have the right file name, if you're still seeing errors, I'd recommend disabling the file to see if the error continues. Additionally, you can set up error logging to see the root cause of the error you're seeing. Hope that helps dgcustomerfirst

Newbie

Posts

Joined
Fri May 08, 2020 11:29 pm
Who is online

Users browsing this forum: No registered users and 55 guests