Find the apache conf file for the website /etc/apache/sites-available/sitename.conf
Edit the file and add the environment variables.
database_name, database_user, database_password and database_host are unique to your MySQL instance.
SetEnv DB_NAME database_name