• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

php-fpm w/ php 5.6 and plesk 12.5 problem

Ricardo1234

New Pleskian
hi all,

i've upgraded to plesk 12.5 and running PHP 5.3.3 and PHP 5.6.14 on different domains.

all I can select is run PHP as FastCGI applcation and not php-fpm from the Hosting Settings panel, PHP Support drop down list.

How do i set PHP to run with PHP-FPM and php 5.6.14?

what am i missing? any thing else i need to install?


thanks in advance
Ric
 

Attachments

  • plesk12.5.jpg
    plesk12.5.jpg
    24.1 KB · Views: 38
Hi Ricardo1234,

could you please reply with the output of:

/usr/local/psa/bin/php_handler --list

You might like the idea, that you could use the "php_handler Utility" as well to enable and disable an installed PHP - handler:

Enable PHP - handler with the ID "plesk-php52-cgi"

/usr/local/psa/bin/php_handler --enable -id plesk-php52-cgi

Disable PHP - handler with the ID "plesk-php52-cgi"

/usr/local/psa/bin/php_handler --enable -id plesk-php52-cgi


For more informations, how to use the "php_handler Utility", please see:

 
/usr/local/psa/bin/php_handler --list output:
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
cgi 5.3.3 by OS vendor 5.3.3 5.3 cgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
fastcgi 5.3.3 by OS vendor 5.3.3 5.3 fastcgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
module 5.3.3 by OS vendor 5.3.3 5.3 module /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
plesk-php56-cgi 5.6.14 5.6.14 5.6 cgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true disabled
plesk-php56-fastcgi 5.6.14 5.6.14 5.6 fastcgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled
plesk-php56-fpm 5.6.14 5.6.14 5.6 fpm /opt/plesk/php/5.6/sbin/php-fpm /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled

i've noted plesk-php56-fpm is enabled HOWEVER not present at the dropdown list as per my previous post.

Any ideas?

Thanks
 
Hi Ricardo1234,

you should disable the php-handler "module" ( the Apache module ), to avoid possible issues/errors/failures. It is even strongly recommended to avoid the usage of the "Apache module" option, as it's security model is not safe.

When you choosed another option than "Apache module", then you should as well be able to see all possible options, depending to your choosen PHP version.
Consider as well to read and use suggestions from: Multiple PHP Versions in Plesk 12.0 Out of the Box! ( Forum link )
 
Hi UFHH01,

[root@www php-fpm.d]# /usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
cgi 5.3.3 by OS vendor 5.3.3 5.3 cgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false disabled
fastcgi 5.3.3 by OS vendor 5.3.3 5.3 fastcgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
fpm 5.3.3 by OS vendor 5.3.3 5.3 fpm /usr/sbin/php-fpm /usr/bin/php /etc/php.ini false enabled
module 5.3.3 by OS vendor 5.3.3 5.3 module /usr/bin/php-cgi /usr/bin/php /etc/php.ini false disabled
plesk-php56-cgi 5.6.14 5.6.14 5.6 cgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true disabled
plesk-php56-fastcgi 5.6.14 5.6.14 5.6 fastcgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled
plesk-php56-fpm 5.6.14 5.6.14 5.6 fpm /opt/plesk/php/5.6/sbin/php-fpm /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled

[root@www php-fpm.d]# rpm -qa|grep "plesk-php"
plesk-php56-pear-1.9.4-centos6.15102115.noarch
plesk-php56-mysql-5.6.14-centos6.15102115.x86_64
plesk-php56-dba-5.6.14-centos6.15102115.x86_64
plesk-php56-process-5.6.14-centos6.15102115.x86_64
plesk-php56-opcache-5.6.14-centos6.15102115.x86_64
plesk-php56-snmp-5.6.14-centos6.15102115.x86_64
plesk-php56-release-5.6.14-centos6.15102115.x86_64
plesk-php56-5.6.14-centos6.15102115.x86_64
plesk-php56-cli-5.6.14-centos6.15102115.x86_64
plesk-php56-odbc-5.6.14-centos6.15102115.x86_64
plesk-php56-bcmath-5.6.14-centos6.15102115.x86_64
plesk-php56-redis-2.2.5-centos6.15081011.x86_64
plesk-php56-xmlrpc-5.6.14-centos6.15102115.x86_64
plesk-php56-ldap-5.6.14-centos6.15102115.x86_64
plesk-php56-mcrypt-5.6.14-centos6.15102115.x86_64
plesk-php56-enchant-5.6.14-centos6.15102115.x86_64
plesk-php56-soap-5.6.14-centos6.15102115.x86_64
plesk-php56-imagick-3.1.2-centos6.15081011.x86_64
plesk-php56-tidy-5.6.14-centos6.15102115.x86_64
plesk-php56-fpm-5.6.14-centos6.15102115.x86_64
plesk-php56-ioncube-loader-5.0.18-centos6.15101214.x86_64
plesk-php56-pdo-5.6.14-centos6.15102115.x86_64
plesk-php56-xml-5.6.14-centos6.15102115.x86_64
plesk-php56-pgsql-5.6.14-centos6.15102115.x86_64
plesk-php56-mbstring-5.6.14-centos6.15102115.x86_64
plesk-php56-intl-5.6.14-centos6.15102115.x86_64
plesk-php56-xdebug-2.2.3-centos6.15081011.x86_64
plesk-php56-pspell-5.6.14-centos6.15102115.x86_64
plesk-php56-imap-5.6.14-centos6.15102115.x86_64
plesk-php56-gd-5.6.14-centos6.15102115.x86_64
plesk-php56-devel-5.6.14-centos6.15102115.x86_64

I've got al installed an working but with fastcgi and not PHP-FPM. I cannot select PHP-FPM from the list because there isn't any option listed. If you look carefully at the picture i've posted before you'll not that there isn't any option such as "run as FPM applcation". The only options listed no matter what i do it "run application as fastcgi". So in other words.. there isn't any option to select.

Am i mising something?

Thanks in advance
Ricardo
Ricardo
 
Hi Ricardo1234,

did you as well check the subscriptions settings and the depending service plan settings? Did you try to change ( and re-change ) the subscription settings, or depending service plan settings, to make sure that the issue is not caused by one of them?

Can you ensure, that PHP5-FPM is running ( "ps aux | grep fpm" ) and that a domain-specific conf - file was created at for example "/etc/php5/fpm/pool.d/" ( this path can vary, depending to your system configuration and local modification, please locate the standart PHP-FPM - file "www.conf" and use your own path, according to your installation configuration ) ?
Does the domain-specific socket exists at "/var/www/vhosts/system/(subdomain).example.com/" ( "(subdomain)." is added as an example, please remove "(" and ")" and replace "subdomain" with your correct subdomain - name ).
 
@UFHH01
Problem has been resolved. I've reinstalled nginx (also deleted nginx ".conf" files) and all is showing up as expected.

Very grateful for your help.

Regards
Rico
 
HI @UFHH01
I have just moved from plesk 12.0 to 12.5 and getting same error which was not happening in plesk 12.0,

error Log: No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/mydomain.com/php-fpm.sock (*) failed

According to your last comment, I checked domain-specific socket file. I run ls command uder dir /var/www/vhosts/system/ , it listed directory like MyDomain.com (CamelCase) not mydomain.com.

I also tried to create new directory like mydomain.com under system directosr, and trying to copy entire directory MyDomain.com to mydomail.com, everything gets copied except php-fpm.sock.

I cant Uninstall and reinstall nginx, the this error happening on Prod-Server, if I do so manually, then will plesk run normally or will it get stuck somewhere ?
 
Back
Top