NethServer Version: 7.4
Module: php-scl
I’ve installed the php-scl module following the wiki’s instructions. Installation proceeded without apparent issue, but when I try to set a virtual host to use a different PHP version, I get this (completely useless) error at the top of the page:
The system log is a bit more useful:
May 20 22:24:21 neth systemd: Reloading.
May 20 22:24:21 neth esmith::event[23956]: [INFO] service php71-php-fpm restart
May 20 22:24:21 neth systemd: Stopping The PHP FastCGI Process Manager...
May 20 22:24:21 neth systemd: Starting The PHP FastCGI Process Manager...
May 20 22:24:21 neth systemd: Started The PHP FastCGI Process Manager.
May 20 22:24:21 neth systemd: Reloading.
May 20 22:24:21 neth esmith::event[23956]: [INFO] service httpd reload
May 20 22:24:21 neth systemd: Reloaded The Apache HTTP Server.
May 20 22:24:21 neth esmith::event[23956]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [1.250633]
May 20 22:24:21 neth esmith::event[23956]: Event: vhost-modify SUCCESS
May 20 22:25:15 neth /sbin/e-smith/db[24713]: /var/lib/nethserver/db/vhosts: OLD wx=vhost|Access|public|Description|Weather display|ForceSslStatus|enabled|FtpStatus|disabled|Indexes|disabled|PasswordStatus|disabled|PhpAllowUrlfOpen|disabled|PhpMaxExecTime|disabled|PhpMaxFileUploads|disabled|PhpMemoryLimit|0|PhpPostMaxSize|0|PhpUpMaxFileSize|0|PhpVersion|default|ServerNames|wx.familybrown.org|SslCertificate||status|enabled
May 20 22:25:15 neth /sbin/e-smith/db[24713]: /var/lib/nethserver/db/vhosts: NEW wx=vhost|Access|public|Description|Weather display|ForceSslStatus|enabled|FtpStatus|disabled|Indexes|disabled|PasswordStatus|disabled|PhpAllowUrlfOpen|disabled|PhpMaxExecTime|disabled|PhpMaxFileUploads|disabled|PhpMemoryLimit|0|PhpPostMaxSize|0|PhpUpMaxFileSize|0|PhpVersion|php72|ServerNames|wx.familybrown.org|SslCertificate||status|enabled
May 20 22:25:15 neth esmith::event[24717]: Event: vhost-modify wx
May 20 22:25:15 neth esmith::event[24717]: expanding /etc/httpd/conf.d/virtualhosts.conf
May 20 22:25:15 neth dbus[562]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
May 20 22:25:15 neth dbus-daemon: dbus[562]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
May 20 22:25:15 neth systemd: Starting Time & Date Service...
May 20 22:25:15 neth dbus[562]: [system] Successfully activated service 'org.freedesktop.timedate1'
May 20 22:25:15 neth dbus-daemon: dbus[562]: [system] Successfully activated service 'org.freedesktop.timedate1'
May 20 22:25:15 neth systemd: Started Time & Date Service.
May 20 22:25:21 neth esmith::event[24717]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [5.558229]
May 20 22:25:21 neth esmith::event[24717]: Action: /etc/e-smith/events/vhost-modify/S10nethserver-php-fpm_pool_creation SUCCESS [0.236261]
May 20 22:25:21 neth esmith::event[24717]: Action: /etc/e-smith/events/vhost-modify/S30nethserver-virtualhosts-setbasicpassword SUCCESS [0.177942]
May 20 22:25:21 neth esmith::event[24921]: Event: nethserver-vsftpd-save
May 20 22:25:21 neth esmith::event[24921]: expanding /etc/vsftpd/user_list
May 20 22:25:21 neth esmith::event[24921]: expanding /etc/vsftpd/vsftpd.conf
May 20 22:25:21 neth esmith::event[24921]: expanding /etc/vsftpd/chroot_list
May 20 22:25:21 neth esmith::event[24921]: expanding /etc/vsftpd/ftpusers
May 20 22:25:21 neth esmith::event[24921]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.262713]
May 20 22:25:22 neth esmith::event[24921]: Action: /etc/e-smith/events/nethserver-vsftpd-save/S20nethserver-vsftpd-mkdir SUCCESS [0.142237]
May 20 22:25:22 neth esmith::event[24921]: Action: /etc/e-smith/events/nethserver-vsftpd-save/S30nethserver-virtualhosts-ftp-chroot SUCCESS [0.190245]
May 20 22:25:22 neth esmith::event[24921]: Action: /etc/e-smith/events/nethserver-vsftpd-save/S40nethserver-vsftpd-setpasswd SUCCESS [0.154571]
May 20 22:25:22 neth esmith::event[24928]: Event: nethserver-firewall-base-save nethserver-vsftpd-save
May 20 22:25:22 neth esmith::event[24928]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S02providers-cleanup SUCCESS [0.201106]
May 20 22:25:22 neth esmith::event[24928]: expanding /etc/shorewall/zones
May 20 22:25:22 neth esmith::event[24928]: expanding /etc/shorewall/tcpri
May 20 22:25:22 neth esmith::event[24928]: expanding /etc/shorewall/mangle
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/actions
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/policy
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/rules
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/providers
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/hosts
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/modules
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/snat
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/rtrules
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/masq
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/nat
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/tcinterfaces
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/interfaces
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/stoppedrules
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/shorewall.conf
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/maclist
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/shorewall/tunnels
May 20 22:25:23 neth esmith::event[24928]: expanding /etc/lsm/lsm.conf
May 20 22:25:23 neth esmith::event[24928]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.697536]
May 20 22:25:23 neth systemd: Reloading.
May 20 22:25:24 neth kernel: ipt_ULOG: ULOG: fail to register logger.
May 20 22:25:24 neth kernel: ipt_ULOG: ULOG: fail to register logger.
May 20 22:25:24 neth logger: Shorewall reloaded
May 20 22:25:24 neth esmith::event[24928]: [NOTICE] Shorewall restart
May 20 22:25:24 neth esmith::event[24928]: Action: /etc/e-smith/events/nethserver-firewall-base-save/S89nethserver-shorewall-restart SUCCESS [1.312892]
May 20 22:25:24 neth systemd: Reloading.
May 20 22:25:24 neth esmith::event[24928]: [INFO] service lsm is disabled: skipped
May 20 22:25:24 neth esmith::event[24928]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.273215]
May 20 22:25:24 neth esmith::event[24928]: Event: nethserver-firewall-base-save SUCCESS
May 20 22:25:24 neth esmith::event[24921]: Action: /etc/e-smith/events/nethserver-vsftpd-save/S60firewall-adjust SUCCESS [2.571791]
May 20 22:25:25 neth systemd: Reloading.
May 20 22:25:25 neth esmith::event[24921]: [INFO] service vsftpd is disabled: skipped
May 20 22:25:25 neth esmith::event[24921]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.247234]
May 20 22:25:25 neth esmith::event[24921]: Event: nethserver-vsftpd-save SUCCESS
May 20 22:25:25 neth esmith::event[24717]: Action: /etc/e-smith/events/vhost-modify/S60nethserver-virtualhosts-ftp-save SUCCESS [3.644567]
May 20 22:25:25 neth systemd: Reloading.
May 20 22:25:25 neth esmith::event[24717]: [INFO] service php72-php-fpm restart
May 20 22:25:25 neth systemd: Stopping The PHP FastCGI Process Manager...
May 20 22:25:25 neth systemd: Starting The PHP FastCGI Process Manager...
May 20 22:25:25 neth php-fpm: [20-May-2018 22:25:25] ERROR: unable to bind listening socket for address '/var/run/php-fpm/wx-php72.sock': No such file or directory (2)
May 20 22:25:25 neth php-fpm: [20-May-2018 22:25:25] ERROR: FPM initialization failed
May 20 22:25:25 neth systemd: php72-php-fpm.service: main process exited, code=exited, status=78/n/a
May 20 22:25:25 neth systemd: Failed to start The PHP FastCGI Process Manager.
May 20 22:25:25 neth systemd: Unit php72-php-fpm.service entered failed state.
May 20 22:25:25 neth esmith::event[24717]: Job for php72-php-fpm.service failed because the control process exited with error code. See "systemctl status php72-php-fpm.service" and "journalctl -xe" for details.
May 20 22:25:25 neth systemd: php72-php-fpm.service failed.
May 20 22:25:25 neth esmith::event[24717]: [WARNING] restart service php72-php-fpm failed!
May 20 22:25:25 neth systemd: Reloading.
May 20 22:25:25 neth esmith::event[24717]: [INFO] service php70-php-fpm reload
May 20 22:25:25 neth systemd: Reloaded The PHP FastCGI Process Manager.
May 20 22:25:25 neth systemd: Reloading.
May 20 22:25:25 neth esmith::event[24717]: [INFO] service php56-php-fpm reload
May 20 22:25:25 neth systemd: Reloaded The PHP FastCGI Process Manager.
May 20 22:25:25 neth systemd: Reloading.
May 20 22:25:26 neth esmith::event[24717]: [INFO] service php71-php-fpm restart
May 20 22:25:26 neth systemd: Stopping The PHP FastCGI Process Manager...
May 20 22:25:26 neth systemd: Starting The PHP FastCGI Process Manager...
May 20 22:25:26 neth systemd: Started The PHP FastCGI Process Manager.
May 20 22:25:26 neth systemd: Reloading.
May 20 22:25:26 neth esmith::event[24717]: [INFO] service httpd reload
May 20 22:25:26 neth systemd: Reloaded The Apache HTTP Server.
May 20 22:25:26 neth esmith::event[24717]: Action: /etc/e-smith/events/actions/adjust-services FAILED: 1 [1.147442]
May 20 22:25:26 neth esmith::event[24717]: Event: vhost-modify FAILED
The system PHP version is 7.2:
…and a phpinfo() page in /var/www/html/ reflects that. But with the virtual host set to anything other than “default”, it doesn’t work.