On 27/12/06, Tim Ware <tim(a)hyperarts.com> wrote:
I then changed the name of that file to
AdminSettings.pgp
That would have to be .php
X-Powered-By: PHP/4.4.4
Content-type: text/html
From the command line, what's being run is an old
PHP 4.4 CGI, not the
PHP 5 that MediaWiki needs. You need to use the PHP 5 CLI to
execute
the script.
I don't remember for sure, but I don't think deleteOldRevisions.php
uses $wgDBadminuser &c - I suspect it falls back to the existing
database settings, since those are all that's required.
IIRC, maintenance scripts can be told to use a specific
LocalSettings.php with the --config option at runtime.
*Please* back up everything. :)
Rob Church