Commit graph

27 commits

Author SHA1 Message Date
Platonides
5cf5ec639b Allow to provide the db password inside a file instead of using
the command line, so that it isn't exposed in the process list.

Sadly, use of /dev/stdin or <(process) doesn't work in Linux, 
since they are shown as symlinks to pipe:[12345678] and php 
dereferences all of them. It has to be a real file.
However, such constructs work in Solaris, where they are 
presented as character devices.
2011-06-16 20:58:12 +00:00
Max Semenik
8b12b25902 Follow-up r89254 and r89481: re-did loading extension updates properly, now upgrading extension tables from web interface really works, and without notices 2011-06-05 19:52:03 +00:00
Tim Starling
6fec4e3fde Revert r87635, r87637, r87639, r87643 (MW_MIN_PHP_VERSION etc.): breaks HipHop support. 2011-05-15 13:21:16 +00:00
Happy-melon
cd128f4496 Follow-up r87637: the terrors of copy-and-paste. 2011-05-07 15:37:23 +00:00
Happy-melon
7055add799 Centralise the minimum-required-php-version in a MW_MIN_PHP_VERSION constant in Defines.php. This requires loading Defines.php before the PHP4 version checks, so include a big note reminding people not to include anything other than vanilla define() statements in there.
I have a sneaking suspicion that including Defines.php in the entry points might not play nicely with HipHop, but I can't test it (wrong OS).
2011-05-07 15:16:01 +00:00
Max Semenik
1a90a152dd Made install.php fail gracefully on PHP4 2011-04-12 15:37:51 +00:00
Max Semenik
57080f3779 Fixed fatal in r84971 2011-03-30 18:45:13 +00:00
Chad Horohoe
dba97b3e91 minor cleanup 2011-03-29 17:34:00 +00:00
Chad Horohoe
0678de8be4 Partial revert r78593 (adding --upgrade option to install.php). Rather than supporting the added complexity in the installer, just bail and tell them to run update.php, since they obviously have command line access :) 2011-03-25 19:06:24 +00:00
Chad Horohoe
44dd1794a1 Partially revert r69738 (splitting Installer/CoreInstaller). As discussed on CR, this probably wasn't the best route to go with this code.
We can figure that out sometime in 1.18
2011-01-21 15:27:16 +00:00
Chad Horohoe
26505b170a Fix concern raised by Brion in r74108 (but has really existed since the maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself.
Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild().

Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once().
2011-01-13 22:58:55 +00:00
Sam Reed
c03e16f3f2 Revert r79807 2011-01-07 18:08:35 +00:00
Sam Reed
00ed0f087f Allow CLI installer to set $whShowExceptionDetails 2011-01-07 05:43:51 +00:00
Chad Horohoe
520d777c14 Followup r79684: forgot to commit a file 2011-01-06 17:41:09 +00:00
Mark A. Hershberger
8ca8fd164c Not sure how I missed --scriptpath option since it was right above the wikiroot option I added, but I did. (ok, so I *do* know how I missed it, but it was a dumb mistake). 2010-12-19 05:32:55 +00:00
Mark A. Hershberger
cd28ef5cbe * Add --wikiroot option to CLI installer so the user can give something besides /wiki
* Add --upgrade option to CLI installer so we can throw an error when LocalSettings.php is present and provide an upgrade route to the user.
* Fixup CLI's showStatusMessage so allow CLI to throw an error and quit
2010-12-19 04:55:00 +00:00
Max Semenik
14991fbd39 Added --env-checks parameter to install.php that checks for prerequisites instead of installing 2010-11-16 18:13:35 +00:00
Max Semenik
3ce3cfc2a6 Rm superfuluous tab 2010-11-15 20:39:34 +00:00
Chad Horohoe
719483a29b Followup r70207, make path for LocalSettings.php configurable 2010-11-02 17:11:35 +00:00
Alexandre Emsenhuber
4aa5c729e8 Uncommented some used options; added the possibility to define $wgScriptPath 2010-10-02 07:39:17 +00:00
Ævar Arnfjörð Bjarmason
3f8c973e6d overrideConfig was moved to CoreInstaller in r69738, but new-index.php / maintenance/install.php wasn't updated 2010-07-24 17:12:51 +00:00
Mark A. Hershberger
c93f63a6ba admin parameter is required now since we no longer default to WikiSysop 2010-07-20 15:47:01 +00:00
Mark A. Hershberger
6653570e36 revert r69620 2010-07-20 15:12:29 +00:00
Mark A. Hershberger
271c363db1 Admin is required now. 2010-07-20 15:05:34 +00:00
Mark A. Hershberger
2dbed8d5cd * consolidate some installer functionals into the Installer class
* add beginning of CliInstallerOutput class
* make it possible to override LocalSettings from a maint script
* make basic cli installation possible (only tested mysql so far)
2010-06-27 21:48:51 +00:00
Mark A. Hershberger
e3644ae2c4 * Adapt install.php to a more “traditional” maintenance-style script so it can extend and use Maintenance class convenience methods.
* Add CliInstaller class and put it in the autoloads.
2010-06-23 01:08:34 +00:00
Chad Horohoe
a4393915e2 Merge new-installer branch to trunk
* This is not complete yet, and should not be used outside of testing. Using it on a production database may ruin everything. This is the reason for the second entry point of new-index.php. You've been warned. 
* Known issues are at [[mw:New-installer_issues]]. Please add new items to the list if you find them.
2010-05-07 12:25:01 +00:00