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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1086 - Install failed due to the required file path in on a PHP safe mode server
Install failed due to the required file path in on a PHP safe mo...
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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

The error output said the files required in <MediaWiki>/maintenance/
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__))));

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

2. in <MediaWiki>/maintenance/
//modified by Junhua Wang start
require_once (WIKI_PATH . "/maintenance/");
require_once (WIKI_PATH . "/maintenance/");
require_once (WIKI_PATH . "/maintenance/archives/");
//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.

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.