drwj4061 2019-05-25 22:52
浏览 67

使用PHP,PDO和PostgreSQL设置Linux2 AMI AWS EC2

I need to set up a web server on AWS (Linux 2 AMI) with PHP7.2, and the database I'm using on RDS is PostgreSQL, and I'm also using Codeigniter3.

I followed this tutorial, but it installs mariadb, so I'm guessing there must be some other package I should install. I have tried a bunch of things and probably installed a bunch of unecessary stuff, so I'm not sure if I need to wipe it out and start fresh or what.

I've installed the following packages:

enter image description here

enter image description here

enter image description here

Here is my connnection string in Codeigniter:

enter image description here

And here is the error I see when I navigate to the site:

enter image description here

I've tried looking in my php.ini file, but I don't see really anywhere where there's an extension for pgsql that I would uncomment or anything, which is what I've seen referenced elsewhere online.

I ultimately need a working EC2 instance with PHP7.2 and a PDO driver for at least postgresl10.6, which is what my RDS instances are. I'm hoping someone can give me some guidance here.

What package(s) am I missing, or what step in the configuration have I missed that would make this work?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 软件测试决策法疑问求解答
    • ¥15 win11 23H2删除推荐的项目,支持注册表等
    • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
    • ¥15 qt6.6.3 基于百度云的语音识别 不会改
    • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
    • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
    • ¥15 lingo18勾选global solver求解使用的算法
    • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来