Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install php-pdo for centos7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report