yum install php

不言
不言Original
2018-04-28 15:40:175247browse

This article mainly introduces the installation of php with yum, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

yum installationphp

Installation like this

yum -y install php

After installation like this, there are almost no extensions. For example, if you want to build wordPress, you need to use the mysql database. PHP at this time cannot meet our needs. Therefore, additional mysql extensions must be installed. Install like this

yum -y php-mysql

After the installation is completed, the .so extension related to operating mysql will be added to the PHP installation directory.

yum installationphp

So install

yum -y install php

After this installation, there are almost no extensions, such as building wordPress The mysql database is used. PHP at this time cannot meet our needs. Therefore, additional mysql extensions must be installed. Install like this

yum -y php-mysql

After the installation is completed, the .so extension related to operating mysql will be added to the PHP installation directory.

Related recommendations:

centos7 YUM Install PHP5.6

Install the php development environment under window

The above is the detailed content of yum install php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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