Changes

Jump to: navigation, search

OPS705 Assignment 2

716 bytes added, 21:13, 29 March 2023
Modify Wordpress Configuration File
# Open '''wp-config.php''' in a plain text editor. I recommend Sublime. (https://www.sublimetext.com/download)
=== Adding Database Connector Info As as Environment Variables ===
In this file (wp-config.php), you will be adding database connector information as '''environment variables''', not the actual connector information. Find the following lines and add the bolded values:
# define('DB_NAME', '''getenv('DB_NAME'))''';
# define('DB_PASSWORD', '''getenv('DB_PASSWORD'))''';
# define('DB_HOST', '''getenv('DB_HOST'))''';
 
=== Adding Authentication Unique Keys and Salts as Environment Variables ==
In the same file (wp-config.php), you'll be adding the authentication keys and salts from the previous section as '''environment variables'''. Find the following lines and add the bolded values:
# define('AUTH_KEY', '''getenv('AUTH_KEY'))''';
# define('SECURE_AUTH_KEY', '''getenv('SECURE_AUTH_KEY'))''';
# define('LOGGED_IN_KEY', '''getenv('LOGGED_IN_KEY'))''';
# define('NONCE_KEY', '''getenv('NONCE_KEY'))''';
# define('AUTH_SALT', '''getenv('AUTH_SALT'))''';
# define('SECURE_AUTH_SALT', '''getenv('SECURE_AUTH_SALT'))''';
# define('LOGGED_IN_SALT', '''getenv('LOGGED_IN_SALT'))''';
# define('NONCE_SALT', '''getenv('NONCE_SALT'))''';
= Task 4: Elastic Beanstalk =

Navigation menu