By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,637 Members | 2,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,637 IT Pros & Developers. It's quick & easy.

phpBB2 - Clear text password in config.php

P: n/a
Is there a way to avoid having the DB password (and/or ID for that matter)
clear in config.php?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hercule Poirot wrote:
Is there a way to avoid having the DB password (and/or ID for that matter)
clear in config.php?


1: place it outside document root
2: use include with a full path to pull it in (or add the directory to
the library path).

That way if the web server isn't configured properly and php scripts
aren't executed the include will not work.
Jul 17 '05 #2

P: n/a
"Hercule Poirot" <bl**@blah.com> wrote in message
news:10*************@news.supernews.com...
Is there a way to avoid having the DB password (and/or ID for that matter)
clear in config.php?


On a shared server, the database password should be set in httpd.conf for it
to be safe from other users (and httpd.conf needs to be restricted to root
access only).
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.