Re: [Wikitech-l] [SPAM] Re: Error After Upgrade on Ubuntu

2009-02-18 Thread Aryeh Gregor
On Wed, Feb 18, 2009 at 4:48 PM, Michael Daly
 wrote:
> Jan Luca wrote:
>
>> Have you run "php /usr/share/mediawiki/maintenance/update.php"
>
> Could I have an "official" response on the relative appropriateness of
> the above versus:
>
> cd /usr/share/mediawiki/maintenance
> php update.php

It makes no difference.  I always use the first form (php
maintenance/xxx) for all scripts, and haven't had one break yet.
update.php doesn't access the filesystem anyway, except to get
includes, and those are always loaded in a working dir-independent
way.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] [SPAM] Re: Error After Upgrade on Ubuntu

2009-02-18 Thread Michael Daly
Jan Luca wrote:

> Have you run "php /usr/share/mediawiki/maintenance/update.php"

Could I have an "official" response on the relative appropriateness of 
the above versus:

cd /usr/share/mediawiki/maintenance
php update.php

At one time, following Jan's advice was not likely to work and running 
the script after cd-ing to the appropriate directory would work.  Now I 
see more people suggesting Jan's version of the command.

Is it the intent of Mediawiki developers to ensure that _all_ scripts 
should run from any directory if the path to the script is provided as 
part of the argument to php?

Mike


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l