SetEnv MYSQL_USER "susannah"
SetEnv MYSQL_PASSWORD "y23a!t@ce8"
Inside the <VirtualHost> directive for the
site in the main configuration file, include this separate file as
follows:
Include "/usr/local/apache/database-passwords"
Make sure that the separate file that contains the passwords (e.g.,
/usr/local/apache/database-passwords) is not
readable by any users other than the one that controls the
appropriate virtual host. When Apache starts up and is reading in
configuration files, it's usually running as root,
so it is able to read the included file.