Community

Can we change the default location of the settings.php

Usually the file settings.php is taken from the folder sites/default/settings.php. This is known as default behaviour. The question is: Can one changes this default location so that the file settings.php is put at another folder. If this is possible, how. Thanks a lot for any advice.

Comments

I don't believe you can, without hacking core.

I don't believe you can, without hacking core.

If you look at the conf_path function in bootstrap.inc, the "sites" folder is hard-coded and it parses the URL to find settings files that are not in the "default" folder.

Thanks for trying to help me

I will look up that inc file, and I am interested in changing the location of the settings.php file even if it means changing the core file. I would appreciate it if you can help me further.

nobody click here