1. Install php7.1 version and apache2.4 version via brew
2, xampp integrated development environment (php5.4 apache2.4.9)
3 has been installed on mac system before, and the following is the previous integrated environment php.ini
extension=php_sockets.dl
;extension=php_pdo_mysql.dll
mysql
4php7.1 php.ini
4mysqlphp7.1php7.1php.ini