Fedora-27-install-php-安装配置php

dnf update -y
dnf -y install php php-pear php-devel php-fpm php-mysqli php-gd php-cgi php-curl php-mbstring php-bcmath php-redis php-memcached php-memcache php-apc libmcrypt libmcrypt-devel mcrypt mhash php-mcrypt
#启动
systemctl start php-fpm
#开机自动启动
systemctl enable php-fpm


[root@localhost ~]# php -v
PHP 7.1.11 (cli) (built: Oct 25 2017 07:23:33) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
[root@localhost ~]#