From: Martin G. <gim...@gi...> - 2002-09-16 17:21:35
|
Jeff Dairiki <da...@da...> writes: > Maybe, since we have a configuration script, the configuration > script should do all the figuring of the defaults and autodetected > values. (I.e. everything that's now down in lib/config.php.) > > Then it can generate a single config file with all required settings > as constants. Are you sure it's a good idea to have the script write a file with the settings? This was how my first attempt at a configuration tool worked, but I've now moved away from the idea. The problem is that it rarely works... It only works if the webserver has write permission to the installation directory of PhpWiki. At my server PHP runs as the user 'nobody' whereas the files are owned by user 'gimpster'. The configuration tool also has to be protected so that others cannot change the configuration. This is not a problem, but it has to be considered. The current configurator lets you create a configuration that you can /download/ and then later upload using FTP or whatever mechanism you use for this. Just a couple of thoughts... -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |