As I said, I tested your rpm @giacomo
[root@NS7DEV ~]# rpm -qa rh-php56-php-fpm
rh-php56-php-fpm-5.6.25-1.el7.x86_64
[root@NS7DEV ~]# rpm -qa nethserver-rh-php56-php-fpm
nethserver-rh-php56-php-fpm-0.0.1-1.ns7.noarch
the first odd thing for me is
[root@NS7DEV ~]# config show rh-php56-php-fpm
rh-php56-php-fpm=service
TCPPorts=9000
access=green
status=enabled
you don’t need a green access, php-fpm run on the localhost
the installation went smoothly, no errors in logs.
Once installed I created a virtualhost, set accordingly the dns on my network, put a phpinfo
[root@NS7DEV ~]# echo '<?php phpinfo(); ?>' > /var/lib/nethserver/vhost/plop.com/info.php
set in the virtualhost plop.com the directive to use the rh-php56-php-fpm
<VirtualHost *:443>
DocumentRoot "/var/lib/nethserver/vhost/plop.com"
ServerName plop.com
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
...
then restarted apache, when I reach the plop.com/info.php I can see that I use php56
good work
side note:
-
you use the 9000 port, if you make a nethserver-rh-php70-php-fpm you won’t start the php70 because the port is already in use.
-
the port 9000 could be restricted to the localhost.