Changes

Jump to: navigation, search

OPS705 Assignment 2

10 bytes added, 22:15, 29 March 2023
Task 3: Wordpress Source Code Modification
=== Adding Database Connector Info as Environment Variables ===
In this file (wp-config.php), you will be adding database connector information as '''environment variables''', not the actual connector information. (We'll add that information later.) Find the following lines and add the bolded values:
# define('DB_NAME', '''getenv('DB_NAME'))''';
# define('DB_USER', '''getenv('DB_USER'))''';
=== 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'))''';

Navigation menu