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
Disabling open_basedir on domain level doesn't work #53
Comments
@hannesbe what's the contents of this post at https://forum.nginx.org/read.php?3,234856,238870#msg-238870 describes working setup that centmin mod php-fpm uses as well edit: hmmm
strange as it works for me though |
|
hmm seems for now you'd need to disable open_basedir restrictions globally in /usr/local/nginx/conf/php.conf :) thanks for bringing this to my attention 👍 |
I've spend many hours trying to figure out strange behavior when setting op a Laravel domain. Laravel requires access outside the site's root, so I disabled
open_basedir
by copying/usr/local/nginx/conf/php.conf
to/usr/local/nginx/conf/php_l5.conf
, commenting outfastcgi_param PHP_ADMIN_VALUE open_basedir
and including/usr/local/nginx/conf/php_l5.conf
instead of/usr/local/nginx/conf/php.conf
in/usr/local/nginx/conf/conf.d/example.com.conf
.At first it seems to work, but I'm getting random 500s every few pages loaded. php-fpm log shows
PHP Warning: Unknown: open_basedir restriction in effect
. The allowed path(s) mentioned in the log are from other domains that haveopen_basedir
enabled through/usr/local/nginx/conf/php.conf
.tail -1000 /var/log/php-fpm/www-php.error.log |grep open_base
Looks alot like this: https://forum.nginx.org/read.php?3,234856
To work around this, I needed to remove
fastcgi_param PHP_ADMIN_VALUE open_basedir=.....
from all location level references (/usr/local/nginx/conf/php-wpsc.conf
and `/usr/local/nginx/conf/php.conf). Only then it was really always disabled.Regards,
Hannes
The text was updated successfully, but these errors were encountered: