From: Matt B. <ma...@ma...> - 2005-10-21 11:03:03
|
Hi, As part of my work packaging PHPwiki for Debian I had to write a script to migrate old index.php based configurations to the new config.ini file. The script works reasonably well and handles most of the configuration variables. The major omission is that it doesn't attempt to migrate external authentication configuration at all (stuff like DB query strings etc). It's written in perl (sorry) and takes a single command line argument which is the path to a template file to use as the basis for the new config.ini. Your old configuration should be fed to stdin and you'll get the new configuration on stdout. The script can be found at http://www.mattb.net.nz/patches/phpwiki/migrate-phpwiki-config An example template configuration file is at http://www.mattb.net.nz/patches/phpwiki/config-template.ini There might be a little bit of Debian specific stuff there, but it should be fairly general. Run the script without arguments for more detailed usage information. Not sure if anyone is still using old wikis or if you've all upgraded by now, but maybe this will be of use to someone. Cheers -- Matt Brown ma...@ma... Mob +64 275 611 544 www.mattb.net.nz |