AMI Linux 2023 PDO MariaDB Error

0

I have an AMI Linux 2023 running with MariaDB. I can't make a PDO connection from my PHP script to my RDS running MariaDB. I followed this tutorial to Install LAMP 2023: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2023.html

The tutorial says to install following packages:

sudo dnf install -y httpd wget php-fpm php-mysqli php-json php php-devel

I assume that only

php-mysqli

driver was installed for PHP but not the PDO driver. I am kind of new to AWS. How can I install the PDO driver on my instance? I looked up all available packages here: https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.2.html. I located

php8.2-pdo

package. Do I just need to run

sudo dnf install -y php8.2-pdo

? Do I need to make additional changes after installation?

Luke
질문됨 7달 전244회 조회
1개 답변
0

Hello.

What kind of error?
If it is a timeout error, there may be a problem with the network settings such as the RDS security group.
Please configure the inbound rules of the RDS security group to allow connections from EC2.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html

profile picture
전문가
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠