Why two config files?

Discussion regarding Joomla! 1.5 security issues.
Joomla! Vulnerable Extensions: http://feeds.joomla.org/JoomlaSecurityV ... Extensions

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
rvences
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon May 21, 2007 10:12 pm

Why two config files?

Post by rvences » Tue Sep 11, 2007 4:06 pm

Hi there, in some times I'm paranoid and check parts of code, and now i do it and  have one question, why the Joomla 1.5RC2 have two config files, one in [JOOMLA DIRECTORY]/configuration.php and other in [JOOMLA DIRECTORY / LIBRARIES / JOOMLA]/config.php
They are in different classes, but the information in configuration.php overwrite the information in config.php if they exist to use it later in one Object, so my question is you use this to put some information in config.php and the rest in configuration.php to security reason or you use config.php to test or why ???

Thanks a lot for read this and for your answer

Best Regards

User avatar
RobS
Joomla! Ace
Joomla! Ace
Posts: 1366
Joined: Mon Dec 05, 2005 10:17 am
Location: New Orleans, LA, USA
Contact:

Re: Why two config files?

Post by RobS » Mon Sep 17, 2007 5:22 pm

rvences wrote: Hi there, in some times I'm paranoid and check parts of code, and now i do it and  have one question, why the Joomla 1.5RC2 have two config files, one in [JOOMLA DIRECTORY]/configuration.php and other in [JOOMLA DIRECTORY / LIBRARIES / JOOMLA]/config.php
They are in different classes, but the information in configuration.php overwrite the information in config.php if they exist to use it later in one Object, so my question is you use this to put some information in config.php and the rest in configuration.php to security reason or you use config.php to test or why ???
There are two configuration files because Joomla! 1.5 is essentially two systems built in a stack whereas Joomla! 1.0.x was one big system.  Joomla! 1.5 consists of the new Joomla! Content Management Framework and the Joomla! 1.5 Content Management System.  When using Joomla! 1.5 as a CMS, all you need to be concerned about is the configuration.php file in the root of the Joomla! installation.  There is another configuration file in the libraries folder that is strictly for the Joomla! 1.5 Content Management Framework so that it could be used as a stand-alone framework for other applications.  The configuration file in the libraries folder is mostly for documentation purposes and to keep track of which configuration parameters the framework itself depends on.

I hope that answers your question.
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Locked

Return to “Security in Joomla! 1.5”