Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: php-fpm is mixing configs of different vhosts.

$
0
0
itpp2012 Wrote:
-------------------------------------------------------
> open_basedir should be set in php.ini and not be passed via nginx.
>
> ea.
>
> [PATH=/webroot/www.testsite123.nl]
> open_basedir = /webroot/www.testsite123.nl
> doc_root = /webroot/www.testsite123.nl

open_basedir can be passed via nginx without problem, bad advice.

To the original question: it should work. I suggest you to check whether other PHP configuration files like hosts.ini (per host or per path) or php-fpm.conf (per pool) already load 'open_basedir' admin value that cannot be altered later by nginx with PHP_ADMIN_VALUE. Check with phpinfo() call which files are being loaded and what is master and local value for 'open_basedir'. This will help you to track the issue.

Good luck!

Andrejs

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>