Home > Article > Backend Development > yum install php
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
php
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.
php
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:
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!