Skip to content
New issue

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

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

Already on GitHub? # to your account

Option to set PHP path to avoid open_basedir errors #64

Closed
corsch opened this issue Jun 15, 2022 · 1 comment
Closed

Option to set PHP path to avoid open_basedir errors #64

corsch opened this issue Jun 15, 2022 · 1 comment

Comments

@corsch
Copy link

corsch commented Jun 15, 2022

Description
If PHP is hardened by open_basedir you get a lot of "open_basedir restriction in effect." errors in the nextcloud.log

It looks like the MediaDC App is searching for the follolowing forbidden paths for php:
/usr/local/sbin/php7.4.30
/usr/local/bin/php7.4.30
/usr/sbin/php7.4.30
/usr/bin/php7.4.30
/sbin/php7.4.30
/bin/php7.4.30
/usr/local/sbin/php7.4
/usr/local/bin/php7.4
/usr/sbin/php7.4
/usr/bin/php7.4
/sbin/php7.4
/bin/php7.4
/usr/local/sbin/php7
/usr/local/bin/php7
/usr/sbin/php7
/usr/bin/php7
/sbin/php7
/bin/php7

In my case the correct PHP binary would be in /usr/bin/php

This could be fixed by an configuration option to set the correct PHP binary.

@andrey18106
Copy link
Member

Added PHP path option in MediaDC 0.1.10. Closing.

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

No branches or pull requests

2 participants