PHP cannot connect to AWS RDS server

Posted by Eugene Lim on Server Fault See other posts from Server Fault or by Eugene Lim
Published on 2013-06-28T09:16:49Z Indexed on 2013/06/28 10:22 UTC
Read the original article Hit count: 385

I have a EC2 Instance with apchane, PHP and phpmyadmin. I have connect phpmyadmin to manage the aws RDS server. they are in the same security group. But when i try to use a php script to connect to the AWS rds server, it gave me SQLSTATE[HY000] [2003] Can't connect to MySQL server on (xxx.xxx.xxx.xxx).

I did some researched, and most of them says use setsebool -P httpd_can_network_connect=1 reference: http://www.filonov.com/2009/08/07/sqlstatehy000-2003-cant-connect-to-mysql-server-on-xxx-xxx-xxx-xxx-13/

But i have no idea which server to configure? and how to?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about amazon-web-services