Last modified: 2010-05-15 15:37:28 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 3146 - installer failure: generation of localsettings.php abort /w ini_set() error
installer failure: generation of localsettings.php abort /w ini_set() error
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-08-14 16:44 UTC by Ulrich
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Description Ulrich 2005-08-14 16:44:15 UTC
Error message when installing:

Warning: ini_set() has been disabled for security reasons in
/data/members/paid/u/h/ on line 117

Warning: main(includes/Defines.php): failed to open stream: No such file or
directory in /data/members/paid/u/h/
on line 121

Fatal error: main(): Failed opening required 'includes/Defines.php'
(include_path='.:/data/apache/php/mmp_lib:/data/session') in
/data/members/paid/u/h/ on line 121

Many thanks for explanation & help, U
Comment 1 Adam 2005-08-14 21:48:06 UTC
Did you upload all the files? Including those not in directories?
Comment 2 Ulrich 2005-08-15 07:42:04 UTC
Yes, all files uploaded into /wiki and subdirectories on the hoster's server. 

The procedure fails when calling ini_set() due to the host's security settings
which do not allow executing ini_set().

I have started to 
- copy all files requested (error messages ...) by the setup procedure into the
/config installation directory
- edit index.php in /config to load the files directly from /install directory

This method is not very practical ... and it may finally fail.

The better/generic solution should probably be to replace the ini_set() command
in config/index.php with something compatible to relatively narrow Apache settings?

Or hardcode the wiki directory path somewhere (where?) in config/index.php?
Comment 3 Michael Schuster 2005-10-31 20:33:47 UTC
Disabled ini_set()

If the php-function ini_set() has been disabled for security reasons you have to
change some paths. The row-numbers are for version 1.5.1. In the file

    * 122: require_once( "includes/Defines.php" );
      => require_once( "../includes/Defines.php" );
    * 123: require_once( "includes/DefaultSettings.php" );
      => require_once( "../includes/DefaultSettings.php" );
    * 124: require_once( "includes/MagicWord.php" );
      => require_once( "../includes/MagicWord.php" );
    * 125: require_once( "includes/Namespace.php" );
      => require_once( "../includes/Namespace.php" );
    * 166: require_once( "" );
      => require_once( "../" );
    * 167: require_once( "maintenance/" );
      => require_once( "../maintenance/" );
    * 465: require_once( "maintenance/" );
      => require_once( "../maintenance/" );
    * 1284: require_once( "languages/Names.php" );
      => require_once( "../languages/Names.php" );

In the file includes/DefaultSettings.php:

    * 27: require_once( 'includes/SiteConfiguration.php' );
      => require_once( '../includes/SiteConfiguration.php' );

Then you can run the script index.php again. Don't take notice of the fatal
error in includes/DefaultSettings.php. Just reload the page. After moving
config/LocalSettings.php to the folder above you have to comment out the
ini_set() in LocalSettings.php:

    * 8: ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
      => #ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
    * 12: ini_set( 'memory_limit', '20M' );
      => #ini_set( 'memory_limit', '20M' );

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