我已经使用php-osx.liip.ch中的二进制包将我的mac中预装的php更新到版本7.2.2。我试图使用laravel与nginx和php-fpm,发现我的php-fpm版本是5.5.28。 (php-osx.liip包没有php-fpm扩展名)。如何将php-fpm更新到最新版本。
php-fpm -v
PHP 5.5.38 (fpm-fcgi) (built: Oct 29 2017 20:49:27)
php -v
PHP 7.2.2 (cli) (built: Feb 1 2018 13:23:34) ( NTS )
which php
/usr/local/php5/bin/php
which php-fpm
/usr/sbin/php-fpm
ls -l /usr/local
lrwxr-xr-x 1 root admin 37 May 1 23:11 php5 -> /usr/local/php5-7.2.2-20180201-132629
drwxr-xr-x 12 root wheel 408 Nov 12 2014 php5-5.5.13-20140530-105025
drwxr-xr-x 14 root wheel 476 Jan 13 2015 php5-5.6.2-20141102-094039
drwxr-xr-x 14 root wheel 476 Jun 27 2016 php5-7.0.8-20160626-123411
drwxr-xr-x 14 root wheel 476 May 1 23:11 php5-7.2.2-20180201-132629
drwxr-xr-x 8 anoopd wheel 272 Nov 1 2017 sbin
ls -l /usr/local/php5-7.2.2-20180201-132629
drwxr-xr-x 163 root wheel 5542 May 1 23:11 bin
-rw-r--r-- 1 root wheel 440 Feb 1 17:56 entropy-php.conf
drwxr-xr-x 9 root wheel 306 May 1 23:11 etc
drwxr-xr-x 102 root wheel 3468 May 1 23:11 include
drwxr-xr-x 13 root wheel 442 May 1 23:11 info
drwxr-xr-x 201 root wheel 6834 May 1 23:11 lib
-rwxr-xr-x 1 root wheel 16436032 Feb 1 17:56 libphp7.so
drwxr-xr-x 27 root wheel 918 May 1 23:11 php.d
drwxr-xr-x 8 root wheel 272 May 1 23:11 sbin
drwxr-xr-x 13 root wheel 442 May 1 23:11 share
drwxr-xr-x 7 root wheel 238 May 1 23:11 ssl
drwxr-xr-x 4 root wheel 136 May 1 23:11 var
ls -l /usr/local/php5-7.2.2-20180201-132629/sbin
-rwxr-xr-x 1 root wheel 9032 Feb 1 17:56 genccode
-rwxr-xr-x 1 root wheel 8800 Feb 1 17:56 gencmn
-rwxr-xr-x 1 root wheel 47344 Feb 1 17:56 gennorm2
-rwxr-xr-x 1 root wheel 20248 Feb 1 17:56 gensprep
-rwxr-xr-x 1 root wheel 19416 Feb 1 17:56 icupkg
-rwxr-xr-x 1 root wheel 16532980 Feb 1 17:56 php-fpm
ls -l /usr/local/php5-7.2.2-20180201-132629/etc
-rw-r--r-- 1 root wheel 1094 Feb 1 17:56 freetds.conf
-rw-r--r-- 1 root wheel 370 Feb 1 17:56 locales.conf
-rw-r--r-- 1 root wheel 1274 Feb 1 17:56 pear.conf
-rw-r--r-- 1 root wheel 1192 Feb 1 17:56 pear.conf.default
-rw-r--r-- 1 root wheel 4468 Feb 1 17:56 php-fpm.conf.default
drwxr-xr-x 3 root wheel 102 May 1 23:11 php-fpm.d
-rw-r--r-- 1 root wheel 219 Feb 1 17:56 pool.conf