Jan_E
Verified User
My CB 2.0 setup:
The build was successful and I could change a domain to PHP-FPM by adding this to the Custom HTTPD setup:
But then some of my PHP-libraries in /usr/local/lib/php/share did not work anymore. No big deal, I thought. Just create a symlink from /usr/local/php54/lib/php/share to /usr/local/lib/php/share. Still no dice.
Digging deeper I found that the default open_basedir in /usr/local/directadmin/data/users/admin/php/php-fpm54.conf was set to
A strange path, because /usr/local/php53 does not even exist. I decided to add /usr/local/lib/php
We've got a liftoff! I did not test yet what happens if I rewrite_confs, but it would be best if CB 2.0 produces a correct (or even overcomplete) open_basedir.
Happy 2013!
Jan
Code:
php1_release=5.3
php2_release=5.4
php1_mode=mod_php
php2_mode=php-fpm
Code:
<IfModule mod_fastcgi.c>
<FilesMatch "\.(inc|php|php3|php4|php44|php5|php52|php53|phtml|phps)$">
SetHandler php54-fcgi
</FilesMatch>
</IfModule>
Digging deeper I found that the default open_basedir in /usr/local/directadmin/data/users/admin/php/php-fpm54.conf was set to
Code:
php_admin_value[open_basedir] = /home/admin/:/tmp/:/var/tmp/:/usr/local/php53/lib/:/usr/local/php54/lib/
Code:
php_admin_value[open_basedir] = /home/admin/:/tmp/:/var/tmp/:/usr/local/lib/php:/usr/local/php53/lib/:/usr/local/php54/lib/
Happy 2013!
Jan