Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install php-pdo for centos7

Shulou Source: shulou.com Published: 2022-06-03 10:42:02 11月15日 Update

In this issue, the editor will bring you about how to install php-pdo in centos7. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Centos7 install php-pdo method: 1, install PHP and mariadb;2, execute "yum install php-mysqlnd" command; 3, execute "/ bin/systemctl restart httpd".

This article operating environment: centos7 system, php5.4.16&&mariadb5.5.52 version, Dell G3 computer.

How does centos7 install php-pdo?

Centos7 php (mariadb) install pdo

In the centos7 environment to install PDO, the installation is their own separate installation, first installed PHP (httpd) and then installed mariadb.

After the database installation is completed, there is no pdo support, according to the common module installation method, tossing back and forth for several days, domestic repeated Baidu does not have a matching environment, a variety of compilation errors.

Finally found the answer on stackoverflow, use yum install php-mysqlnd directly, and then have pdo extension support in / bin/systemctl restart httpd,phpinfo.

The above is the editor for you to share the centos7 how to install php-pdo, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Environment content method analysis support ordinary professional small and medium rich in content command that is data database article time more computer knowledge answer article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft MySQL Shulou Information Shulou Technology