[英]PHP 7.1 PDO Postgres "could not find driver" exception on AWS EC2 Linux AMI
Running PHP 7.1 on an AWS EC2 instance using the Amazon Linux AMI, my PHP application is giving the following exception while trying to connect to a PostgeSQL database with PDO:
uncaught exception "could not find driver"
查看/etc/php.d/
似乎沒有安裝 PostgreSQL 驅動程序。 如何在 Amazon ZEDC9F0A5A5D67797BF318E3 上安裝 PostgreSQL 的 PHP 7.1 PDO 驅動程序?
在 PHP 7.1 的 Amazon Linux 上,您要查找的命令是:
sudo yum install php71-pgsql
Yum 應該從amzn-updates
存儲庫中找到名為php71-pgsql-7.1.33-1.43.amzn1.x86_64
的 package。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.