pkg install php74 Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: php74: 7.4.0.r4 Number of packages to be installed: 1 The process will require 28 MiB more space. 4 MiB to be downloaded. Proceed with this action? [y/N]: y [1/1] Fetching php74-7.4.0.r4.txz: 100% 4 MiB 349.6kB/s 00:12 Checking integrity... done (0 conflicting) [1/1] Installing php74-7.4.0.r4... [1/1] Extracting php74-7.4.0.r4: 100%
pkg install php74-extensions-1.0
ls /var/run/ | grep .sock pcbind.sock syslogd.sockets
vi /usr/local/etc/php-fpm.conf listen = /var/run/php-fpm.sock listen.owner = www listen.group = www env[PATH] = /usr/local/bin:/usr/bin:/bin
service php_fpm restart Performing sanity check on php-fpm configuration: [27-Oct-2019 17:09:53] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful php_fpm not running? (check /var/run/php-fpm.pid). Performing sanity check on php-fpm configuration: [27-Oct-2019 17:09:54] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful Starting php_fpm.
ls /var/run/ | grep .sock php-fpm.sock rpcbind.sock syslogd.sockets
Ajout et démarrage du service dans /etc/rc.conf pour la prise en charge lors du boot
sysrc php_fpm_enable="YES" apache24_enable: -> YES service php-fpm start Performing sanity check on php-fpm configuration: [09-Nov-2019 08:17:44] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful Starting php_fpm.