How to install php in centos7: 1. Install php yum source; 2. Clean up old php through "yum -y remove php*"; 3. Install php streamlined extension; 4. Set php-fpm to start automatically at boot. That’s it.
The operating environment of this article: centos7 system, PHP7.2 version, DELL G3 computer
How to install php in centos7?
Centos7 install PHP7.2
Suggested method
1 2 3 4 5 6 7 8 9 10 |
|
Install php yum source
1 2 3 4 5 6 |
|
Clean up old php
1 |
|
Check the php version that can be installed
1 |
|
Install php streamlined extension
1 2 3 |
|
php-fpm starts automatically after booting
1 |
|
This installation method may cause yum info php and php - v The PHP versions displayed by the two commands are different
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to install php on centos 7. For more information, please follow other related articles on the PHP Chinese website!