Amazon Elastic Beanstalk

**Silverstripe Version: 4.7.1

Question:

Has anyone had any luck deploying a Silverstripe project to Elastic Beanstalk on Amazon? The project seems to deploy, but something is wrong I am getting:

mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server](php - Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server - Stack Overflow)

I don;t know if I have to do something in .ebextensions or what.

Thanks

This seems kind of old, but you probably need to define your database environment variables in the beanstalk environment variable section. Alternatively, you could use the AWS secrets manager, which is the preferred way to get the database, username, password to access the database. Are you using RDS? there’s a few things that have to happen for everything to work.