Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Config.inc.php and password security?  (Read 13275 times)

0 Members and 1 Guest are viewing this topic.

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Config.inc.php and password security?
« on: January 27, 2008, 07:43:05 pm »

Is it possible (or even adisable) to move the sql username and password out of the config.inc.php and into a more secure folder on the server? I wonder if it could be a security risk, since the PHP is in fact plain text, unencrypted?

I just moved to BlueHost, where I was pointed to this article about PHP security:
http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&id=319

Thanks!
« Last Edit: January 28, 2008, 08:41:18 am by Joachim Müller »
Logged

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Config.inc.php and password security?
« Reply #1 on: January 27, 2008, 07:46:07 pm »

Forgot to mention, I found this post in a search...
http://forum.coppermine-gallery.net/index.php?topic=362.msg1864#msg1864

It is more than four years old, so perhaps this potential security hole has been addressed since then?
Logged

Nibbler

  • Guest
Re: Config.inc.php and password security?
« Reply #2 on: January 27, 2008, 08:02:52 pm »

You can move the file outside the webroot if you want. Just remember to update include/init.inc.php with the new path. Having the file there is standard for web scripts like Coppermine, the risk is small.
Logged

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Config.inc.php and password security?
« Reply #3 on: January 28, 2008, 12:02:39 am »

OK, thanks!
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
Re: Config.inc.php and password security?
« Reply #4 on: March 25, 2008, 05:14:15 pm »

Asking because I am new to Coppermine, how would the changes would look like if the paths would be the following:

Code: [Select]
http://www.mydomain.com/gallery (URL)

Code: [Select]
/home/mydomainID/public_html/gallery

If I would move the config out to even before /public_html, what would I have to change in the init.inc.php ?
I would appreciate any help. ;)
Thank you.

Wolfseye
Logged

Nibbler

  • Guest
Re: Config.inc.php and password security?
« Reply #5 on: March 25, 2008, 05:25:31 pm »

Code: [Select]
// Include config and functions files
if(file_exists('include/config.inc.php')){
                ob_start();
                require_once 'include/config.inc.php';
                ob_clean();
} else {

Change path there (2 times). Preferably using something like ../../include/config.inc.php to be more portable.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.