PHP-FPM open_basedir not working with Apache 2.4

Saud Iqbal asked:

Is there any way to define open_basedir to virtualhost file in my Apache Event MPM? I tried everything and it just does not want to work. Tried fastcgi_param PHP_VALUE open_basedir="/home/user/web/:/usr/share/phppgadmin/";

Also tried http://php.net/manual/en/ini.sections.php and that is also not working.

My answer:


You can’t pass PHP configuration values from Apache when using php-fpm. They must be placed in either the PHP ini file, or the php-fpm pool configuration file.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.