How to install php on centos7.5: 1. Add php user for running php-fpm process; 2. Unzip the php source code package; 3. Install dependency packages; 4. Copy relevant configuration files to php installation Path is enough.
The operating environment of this article: CentOS7.5 system, php7.4.1 version, DELL G3 computer
How to install php on centos 7.5?
CentOS-7.5 Compile and install php-7.4.1
##Travel record: Generally, yum is used to install the package, which is more resistant to source code compilation. After searching on Baidu, it was successfully installed~1. Environment preparationVirtual machine: centos 7Download the source file php-7.4.1:
wget https://www.php.net/distributions/php-7.4.1.tar.gz (Due to half of the download error on the server , change to local download and upload to server scp php-7.4.1.tar.gz root@server ip:/usr/local/)
2. Start installation
Add php user, used to run the php-fpm process
The above is the detailed content of How to install php on centos 7.5. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn