mysql settings in settings.dat

3 posts by 3 authors in: Forums > CMS Builder
Last Post: August 18, 2010   (RSS)

Re: [rjbathgate] mysql settings in settings.dat

By Jason - August 18, 2010

Hi,

CMS Builder won't support anything like that in the settings file. If you could tell me more about what you're trying to accomplish I can see if there are other solutions for you.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [rjbathgate] mysql settings in settings.dat

By Dave - August 18, 2010

Hi Rob,

There should be a file in /data/ called /data/how_to_use_settings_files.txt which explains how to do that. Here's the contents:


HOW TO USE MULTIPLE SETTINGS FILES
-------------------------------------

If you run CMS Builder on both a development and a live server, you can create a
copy of settings.dat.php for your development environment by naming it after
your development host (typically localhost).

For example, if you create a copy called settings.localhost.php, CMS Builder
will use that file when it's running on localhost, but default to
settings.dat.php when it runs anywhere else.

This functionality is especially useful for supplying separate MySQL details.
Once you have this set up, you won't have to worry about overwriting the "wrong
version" of a settings file; you can safely upload and download both files with
FTP and the correct one will be used on each server.

Note: Only ever use custom settings files for development servers, always use
the default file for your "live" or production server. That way if you live
domain name changes things won't break.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com