Duplicate wp-config.php Files for my WordPress in Elastic Beanstalk Environment

0

I recently deployed a WordPress application using AWS Elastic Beanstalk with Nginx as the web server. Upon inspecting the file system, I've noticed that there are two identical wp-config.php files located in /var/app/current/ and /var/www/html/. I'm seeking clarification on why this duplication exists and where I should make edits to the wp-config.php file. I'd like to understand the purpose of this setup and ensure I'm following best practices for configuration management in Elastic Beanstalk environments. Any insights or guidance would be greatly appreciated.

profile picture
Vin
asked 8 months ago214 views
1 Answer
1
Accepted Answer

Hello.

Basically, if you edit wp-config.php located in the document root of Nginx, the setting will be reflected in WordPress.
If you connect to EC2 and look at the Nginx configuration file, the document root should be listed.
I think it's better to upload a new file in EC2 of Elastic Beanstalk than to directly modify it.
I think you are probably uploading the zip when creating the environment, but it is an image that the work will also be done when updating.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-versions.html

profile picture
EXPERT
answered 8 months ago
  • Thank you Riku for letting me know that it is better to upload a new file than to directly modify it.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions