open_basedir error for client with multiple sites when using PHP-FPM
I have a client set up that has multiple sites attached to it.
When using PHP-FPM I receive a "require_once(): open_basedir restriction in effect" error for one particular site (web10).
Here is an example of the message...
[Tue Jul 12 17:59:15.433421 2016] [:error] [pid 12239] [client xx.xxx.xxx.xxx:56958] FastCGI: server "/var/www/clients/client1/web10/cgi-bin/php5-fcgi-*-443-domain.co.uk" stderr: PHP message: PHP Warning: require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/invoice/vendor/paragonie/random_compat/lib/error_polyfill.php) is not within the allowed path(s): (/var/www/clients/client1/web10/web:/var/www/clients/client1/web10/private:/var/www/clients/client1/web10/tmp:/var/www/domain.co.uk/web:/srv/www/domain.co.uk/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web1/web/invoice/vendor/paragonie/random_compat/lib/random.php on line 42
It looks like it's trying to call a file from web1 when it should be calling it from web10.
If I switch the site giving the error to HHVM that it all works fine.