Post by Shop » Tue Jan 31, 2023 9:18 pm

I also need advice on this:

Warning: realpath(): open_basedir restriction in effect. File(/users/zalohovane) is not within the allowed path(s): (/users/zalohovane/57278/:/users/tmp/shoppc.cz:/usr/share/php:/tmp) in /users/zalohovane/57278/admin/controller/common/security.php on line 19
Last edited by Shop on Wed Feb 01, 2023 7:36 am, edited 2 times in total.

Newbie

Posts

Joined
Sun May 31, 2020 10:28 pm

Post by Cue4cheap » Tue Jan 31, 2023 9:57 pm

Not enough details so I am assuming you are using a webhost, not your own set-up. So the answer is: contact your webhost.

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Shop » Tue Jan 31, 2023 10:22 pm

Yes, I use hosting, I just contacted support, they just told me that I have to set up everything on the web server myself, that it's under my control. So I don't know what to set next...

Newbie

Posts

Joined
Sun May 31, 2020 10:28 pm

Post by Cue4cheap » Tue Jan 31, 2023 11:44 pm

What OC version?
If 4.x maybe this might help: viewtopic.php?p=852681

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Shop » Wed Feb 01, 2023 1:22 am

I've also already gone through this topic, it didn't help me at all, the code is already there on those lines, I don't know what exactly I should overwrite there?

Newbie

Posts

Joined
Sun May 31, 2020 10:28 pm

Post by Cue4cheap » Wed Feb 01, 2023 4:45 am

I have been hinting at this but you are not picking up on it. You are not providing enough info.
What OC versions? All 4 digits. 4.x.x.x or 3.x.x.x etc. This will give us an idea if it is a version 4 issue or not.
Is this a clean install or did you add modifications? If you added mods, what ones?

And: This is a webhost issue. IF you are on a VPS where the webhost says it is your responsibility, and will not help, then you need to up your game on what you need to do to be your own webhost admin or move hosts.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Shop » Wed Feb 01, 2023 7:22 am

This is OC Version 4.0.1.1
I need advice now with this, I see this message in the administration interface:

Warning: realpath(): open_basedir restriction in effect. File(/users/zalohovane) is not within the allowed path(s): (/users/zalohovane/57278/:/users/tmp/shoppc.cz:/usr/share/php:/tmp) in /users/zalohovane/57278/admin/controller/common/security.php on line 19

and I also get a message on a separate window:

Important Security Notification!
Storage path
It is very important that you move the storage directory outside of the web directory (e.g. public_html, www or htdocs).
Current Path
/users/zalohovane/57278/system/storage/

Newbie

Posts

Joined
Sun May 31, 2020 10:28 pm

Post by ADD Creative » Wed Feb 01, 2023 6:07 pm

Use phpinfo() to see what your open_basedir and $_SERVER['DOCUMENT_ROOT'] variables are set to.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by IP_CAM » Wed Feb 01, 2023 7:52 pm

This is OC Version 4.0.1.1

Are you aware of the known fact, that the OC-Version you use is an unfinished Prototype Version ?

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Shop » Thu Feb 02, 2023 6:09 am

How exactly should I do this? Thanks

Newbie

Posts

Joined
Sun May 31, 2020 10:28 pm

Post by by mona » Thu Feb 02, 2023 10:57 am

OC 4 is not ready for commercial site use 3.0.3.8

Move the storage directory
https://www.imakeitwork.net/how-to-move ... -opencart/

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ADD Creative » Thu Feb 02, 2023 6:21 pm

Shop wrote:
Thu Feb 02, 2023 6:09 am
How exactly should I do this? Thanks
You would out the following in a .php file, such as myphpinfo.php. Upload it to your website and go to the file in a web browser. Remember to remove the file once finished. I quick search should give you a few guides.

Code: Select all

<?php

phpinfo();

?>
To be honest it you don't know the basics. Using a non-stable version 4 on what looks like non-managed hosting is going to have a steep learning curve.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by rohansaadat2 » Wed Dec 06, 2023 1:22 pm

I'm guessing you are using a webhost rather than your own setup because there aren't enough information. In other words, get in touch with your web host. Contact your hosting provider and ask them to resolve this issue on their side.

Newbie

Posts

Joined
Wed Nov 29, 2023 7:50 pm

Post by rohansaadat2 » Mon Dec 11, 2023 11:35 pm

[url=https://thegeometrydashapk.com/ wrote:Shop[/url] post_id=853104 time=1675171106 user_id=508365]
I also need advice on this:

Warning: realpath(): open_basedir restriction in effect. File(/users/zalohovane) is not within the allowed path(s): (/users/zalohovane/57278/:/users/tmp/shoppc.cz:/usr/share/php:/tmp) in /users/zalohovane/57278/admin/controller/common/security.php on line 19
Hey! So, your PHP script is throwing a fit about "open_basedir restriction." It's basically saying, "Hey, you can't touch (/users/zalohovane) because it's not in the allowed zone."

Quick fix: Check your PHP config for open_basedir and add "/users/zalohovane" to the approved paths. Just keep it secure, okay? If you need help, hit me up! 🚀

Newbie

Posts

Joined
Wed Nov 29, 2023 7:50 pm
Who is online

Users browsing this forum: No registered users and 99 guests