Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

file_exists(): open_basedir restriction in effect #3

Open
wioxjk opened this issue Jan 23, 2018 · 7 comments
Open

file_exists(): open_basedir restriction in effect #3

wioxjk opened this issue Jan 23, 2018 · 7 comments

Comments

@wioxjk
Copy link

wioxjk commented Jan 23, 2018

[Mon Jan 22 23:20:43.057240 2018] [proxy_fcgi:error] [pid 19444:tid 139912013186816] [client 192.168.60.83:55154] AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(../SimplePages/backend/confirm.ini) is not within the allowed path(s): (/srv/www.linux.pizza/htdocs:/tmp) in /srv/www.linux.pizza/htdocs/apps/SimplePages/config.php on line 25\n', referer: http://linux.pizza
Even if all file is in within the allowed path, it still triggers the "open_basedir" restriction.

@kolaente
Copy link
Contributor

Seems like it has something to do with using __DIR__ when looking for the file. I'll make some more tests and let you know.

@kolaente
Copy link
Contributor

Which url did you open when the error occured?

@wioxjk
Copy link
Author

wioxjk commented Jan 27, 2018

/admin

kolaente added a commit that referenced this issue Jan 31, 2018
@kolaente
Copy link
Contributor

kolaente commented Feb 3, 2018

It appears to be resolved, could you verify on your end?

@wioxjk
Copy link
Author

wioxjk commented Feb 3, 2018

[Sat Feb 03 18:43:47.118898 2018] [proxy_fcgi:error] [pid 22166:tid 139911738861312] [client 192.168.60.83:52048] AH01071: Got error 'PHP message: PHP Warning: require_once(../vendor/autoload.php): failed to open stream: No such file or directory in /srv/www.linux.pizza/htdocs/admin/install.php on line 10\nPHP message: PHP Fatal error: require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in /srv/www.linux.pizza/htdocs/admin/install.php on line 10\n'

Issue is still there, when downloading the master as a zip, and extracting it on the hosting.

@wioxjk
Copy link
Author

wioxjk commented Feb 3, 2018

The catalogue /vendor is not present in the master

@kolaente
Copy link
Contributor

kolaente commented Feb 4, 2018

Yes, you need to install the libraries with composer.

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

No branches or pull requests

2 participants