Last modified: 2010-05-15 15:33:06 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
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.
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 :)
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.
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?
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.