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:
Here is my connnection string in Codeigniter:
And here is the error I see when I navigate to the site:
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?