Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file_exists(): open_basedir restriction in effect. #66

Closed
jorenvh1 opened this issue Jun 2, 2017 · 1 comment
Closed

file_exists(): open_basedir restriction in effect. #66

jorenvh1 opened this issue Jun 2, 2017 · 1 comment

Comments

@jorenvh1
Copy link

jorenvh1 commented Jun 2, 2017

Hey

I'm using glide to do some image manipulations on an uploaded image.
When testing locally, everything works but when we deploy to a combell shared hosting, I get the following error:
file_exists(): open_basedir restriction in effect. File(/data/sites/web/scribblrmtantwerpeu/tmp/phpmkV0Wn/f1b906abc87cd37f44c511f8dd7acc88) is not within the allowed path(s): (/data/sites/web/scribblrmtantwerpeu:/usr/local/php-7.1/lib/php:/usr/bin:/tmp:/data/vendor-scripts:/data/sites/web/disabled:/etc/ssl/certs)

I guess this is trying to check if the file exists in the tmp folder. The problem is that it starts from the basepath, which we don't have access to. The root of our shared hosting in this case is 'scribblrmtantwerpeu'

Any way we can fix this?

@freekmurze
Copy link
Member

This problem is probably caused by the underlying package Glide. Open an issue at their repo.

(pro-tip: don't use shared hosting 😬)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants