Yum method to install php7 pdo extension: 1. Execute the command "yum install autoconf -y"; 2. Find pdo_mysql; 3. Check whether there is any problem with the expansion package; 4. Set the corresponding installation database path; 5. Just compile it.
The operating environment of this article: linux5.9.8 system, php7.2.7 version, Dell G3 computer
How to install php7 pdo extension with yum ? PHP7 installs the pdo_mysql extension
Because when I was compiling and installing php7.2.7, I didn't notice that pdo_mysql failed.
But it takes a long time to recompile and install php7.2.7.
Baidu, there is an autoconf for linux
yum install autoconf -y
Open the php installation package path and find pdo_mysql
Enter the folder
Check whether there is a problem with the expansion package
/datas/soft/php72/bin/phpize
Set the corresponding installation database path: (Here I use mariadb locally because the company’s test environment uses this)
./configure --with-php-config=/datas/soft/php72/bin/php-config --with-pdo-mysql=/datas/soft/mariadb/ make clean make && make install
Compiled successfully, as shown below
Recommended: "PHP Video Tutorial"
The above is the detailed content of How to install php7 pdo extension in yum. For more information, please follow other related articles on the PHP Chinese website!