Last modified: 2010-05-15 15:33:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3086, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1086 - Install failed due to the required file path in updaters.inc on a PHP safe mode server
Install failed due to the required file path in updaters.inc on a PHP safe mo...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.4.x
PC FreeBSD
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-13 06:05 UTC by Junhua Wang
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Junhua Wang 2004-12-13 06:05:23 UTC
My ISP sets the PHP to safe mode thus I can not install MediaWiki without any
hack...

The error output said the files required in <MediaWiki>/maintenance/updaters.inc
can not be found.

I have solved this problem by adding little code as following:

1. in <MediaWiki>/config/index.php

@ini_set( "display_errors", true );

//added by Junhua Wang start
//get the absolute pathname of MediaWiki
if (!defined( "WIKI_PATH" )) {
	define( "WIKI_PATH", realpath ( "../".dirname (basename(__FILE__))));
}

$IP = WIKI_PATH;
@ini_set( "include_path", ".;$IP;$IP/includes;$IP/languages;$IP/maintenance" );
//added by Junhua Wang end

2. in <MediaWiki>/maintenance/updaters.inc
//modified by Junhua Wang start
require_once (WIKI_PATH . "/maintenance/convertLinks.inc");
require_once (WIKI_PATH . "/maintenance/InitialiseMessages.inc");
require_once (WIKI_PATH . "/maintenance/archives/moveCustomMessages.inc");
//modified by Junhua Wang end
Comment 1 Brion Vibber 2004-12-13 06:38:32 UTC
PHP's safe mode does not prevent installation. I just tested this myself to make sure it 
hasn't broken recently. (PHP 4.3.8 on Ubuntu Linux, MediaWiki 1.4beta3).

Can you provide some more details of your configuration? There may be some specific 
setting other than safe_mode itself which causes your problem.
Comment 2 Junhua Wang 2004-12-13 08:48:26 UTC
oh...I can not get the server information because the ISP disabled phpinfo()

But I do think the installer scripts should count many conditions in :)
Comment 3 Jeronimo Pellegrini 2005-03-30 02:39:03 UTC
The same problem happened to me. I am using Debian's apache package (1.3.33-4)
and PHP 4.3.10-10. Safe mode is off...
The modifications by Junhua Wang fixed it for me.

J.
Comment 4 Richard J. Holton 2005-03-30 03:21:27 UTC
Could this be related to Bug #1107? Please could someone who is in a position to
test/investigate check out the conversation there and report back here?
Comment 5 Rob Church 2005-12-15 18:07:20 UTC
No feedback on this one for a while, and it's been discussed all over in various
degrees; plenty of workarounds for the multitude of issues that tend to pop up
when ISPs are being mean and cretinous. Assuming this particular case was resolved.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links