本文来自:http://blog.aboutc.net/linux/50/yum-install-php-on-linux
Fedora 20 源中已经有了PHP的源,直接可以使用以下命令安装即可:
# yum install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
# php -v PHP 5.5.9 (cli) (built: Feb 11 2014 08:25:33) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
# service php-fpm start
Starting php-fpm: [ OK ]
原文:http://www.cnblogs.com/usergaojie/p/4647647.html