[Xerte-dev] Re: config.php should it be config-dist.php?

Ron Mitchell ronm at mitchellmedia.co.uk
Wed Jul 18 12:33:44 BST 2012


Both Moodle and Mahara only have config-dist.php which you have to edit before installing. In my experience people are used to doing that and also copying updates over the top of the install directory without having to avoid copying config.php e.g. it doesn't exist in the update. 

 

In Moodle and Mahara there are hard coded settings required in config.php so again in my experience people are used to this.

 

As for why are there hard coded settings in config - David will know better than I but is that much different to how things were where you had to rename demo.txt or switch.txt?

 

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 18 July 2012 11:38
To: For Xerte technical developers
Subject: [Xerte-dev] Re: config.php should it be config-dist.php?

 

It depends on which system you mean - Wordpress requires you to edit a config file and it makes the install awkward in my mind.

 

Drupal doesn't require any editing, unless you want to multi site.

 

I don't think moodle has a dist?

 

I don't think config dist is standard for all

 

You might want to phrase the problem as - why are there hard coded settings in config.php?


On 18 Jul 2012, at 11:07, "Ron Mitchell" <ronm at mitchellmedia.co.uk> wrote:

Hi

been wondering about this... 

 

Although at the moment there isn't much to configure in config.php apart from commenting/un-commenting the required authentication method renaming config.php to config-dist.php would follow the way other apps do this. The reason it's relevant is when dragging the latest code over the top of an existing install where at the moment config.php overwrites the existing file and therefore changes the authentication back to guest.

 

Having said that I guess changing it to config-dist.php has implications for the quick xampp install code where the file would need to be copied/renamed like what used to happen with demo.txt.

 

If we don't rename I guess there needs to be a reminder somewhere about not overwriting an existing 1.8 config.php

 

Just wondering...

 

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. 

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120718/2e528bd5/attachment.html>


More information about the Xerte-dev mailing list