Home > Article > Backend Development > How to install php using yum
How to install php using yum:
1. Add php’s yum software repository
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
2. Install php related software during execution Select yes for all
sudo yum install php71w.x86_64 php71w-cli.x86_64 php71w-common.x86_64 php71w-gd.x86_64 php71w-ldap.x86_64 php71w-mbstring.x86_64 php71w-mcrypt.x86_64 php71w-mysql.x86_64 php71w-pdo.x86_64
3. Install php71-fpm
sudo yum install php71w-fpm.x86_64
Wait for the installation to complete and enter php -version to view the php version.
For more related knowledge, please pay attention to PHP Chinese website! !
The above is the detailed content of How to install php using yum. For more information, please follow other related articles on the PHP Chinese website!