This is one of the most complex setups I've seen yet.
One thing you might like to consider; you can actually make the configuration file(s) a
script, especially on Linux.
For example, if you wanted to make it a PHP script, all you'd need to do is add the first
line: #!/path/to/php-cli-binary
The rest of the script needs to be legal PHP (including the <?php ?> parts) and needs to
...



