brainforge
Basic Pleskian
Using Plesk 11.5 on Centos 6 server.
Built-in PHP version is 5.3.3.
I have additionally compiled and installed PHP 5.5.8.
Did not try to use yum as that would overwrite the built-in 5.3.3.
I used /usr/local/psa/bin/php_handler as below to show it in the domain setting scripting listing box
/usr/local/psa/bin/php_handler --add -displayname "5.5.8" \
-path /usr/local/php-5.5.8/bin/php-cgi \
-phpini /usr/local/php-5.5.8/etc/php.ini \
-type fastcgi -id "fastcgi-5.5.8"
All seems well and good.
In Plesk domain websites and domains settings it shows 5.5.
Followed these instructions:
http://brainforge.co.uk/downloads/category/26-php-plesk-centos
Now taken it a step further to try to use PHP-FPM with 5.5.8
Through Plesk panel installed the nginx and php-fpm components in the normal way.
Then tried to make it use the 5.5.8 executable as follows:
service php-fpm stop
rm -f /usr/sbin/php-fpm
ln -s /usr/local/php-5.5.8/sbin/php-fpm /usr/sbin/php-fpm
rm -f /etc/init.d/php-fpm
ln -s /usr/local/php-5.5.8/etc/init.d/php-fpm /etc/init.d/php-fpm
rm -f /usr/local/php-5.5.8/etc/php-fpm.conf
rm -f /usr/local/php-5.5.8/etc/php-fpm.d
ln -s /etc/php-fpm.conf /usr/local/php-5.5.8/etc
ln -s /etc/php-fpm.d /usr/local/php-5.5.8/etc
service php-fpm start
Again it seems to work OK.
However, in Plesk domain websites and domains settings it still shows 5.3.3, the site itself is using 5.5.8/
This is confusing.
Is there something similar to /usr/local/psa/bin/php_handler which will enable this to be corrected.
Built-in PHP version is 5.3.3.
I have additionally compiled and installed PHP 5.5.8.
Did not try to use yum as that would overwrite the built-in 5.3.3.
I used /usr/local/psa/bin/php_handler as below to show it in the domain setting scripting listing box
/usr/local/psa/bin/php_handler --add -displayname "5.5.8" \
-path /usr/local/php-5.5.8/bin/php-cgi \
-phpini /usr/local/php-5.5.8/etc/php.ini \
-type fastcgi -id "fastcgi-5.5.8"
All seems well and good.
In Plesk domain websites and domains settings it shows 5.5.
Followed these instructions:
http://brainforge.co.uk/downloads/category/26-php-plesk-centos
Now taken it a step further to try to use PHP-FPM with 5.5.8
Through Plesk panel installed the nginx and php-fpm components in the normal way.
Then tried to make it use the 5.5.8 executable as follows:
service php-fpm stop
rm -f /usr/sbin/php-fpm
ln -s /usr/local/php-5.5.8/sbin/php-fpm /usr/sbin/php-fpm
rm -f /etc/init.d/php-fpm
ln -s /usr/local/php-5.5.8/etc/init.d/php-fpm /etc/init.d/php-fpm
rm -f /usr/local/php-5.5.8/etc/php-fpm.conf
rm -f /usr/local/php-5.5.8/etc/php-fpm.d
ln -s /etc/php-fpm.conf /usr/local/php-5.5.8/etc
ln -s /etc/php-fpm.d /usr/local/php-5.5.8/etc
service php-fpm start
Again it seems to work OK.
However, in Plesk domain websites and domains settings it still shows 5.3.3, the site itself is using 5.5.8/
This is confusing.
Is there something similar to /usr/local/psa/bin/php_handler which will enable this to be corrected.