Last modified: 2010-05-15 15:37:28 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 T5146, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3146 - installer failure: generation of localsettings.php abort /w ini_set() error
installer failure: generation of localsettings.php abort /w ini_set() error
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.5.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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/uhahn.net/htdocs/www/wiki/config/index.php on line 117

Warning: main(includes/Defines.php): failed to open stream: No such file or
directory in /data/members/paid/u/h/uhahn.net/htdocs/www/wiki/config/index.php
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/uhahn.net/htdocs/www/wiki/config/index.php 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
config/index.php:

    * 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( "install-utils.inc" );
      => require_once( "../install-utils.inc" );
    * 167: require_once( "maintenance/updaters.inc" );
      => require_once( "../maintenance/updaters.inc" );
    * 465: require_once( "maintenance/InitialiseMessages.inc" );
      => require_once( "../maintenance/InitialiseMessages.inc" );
    * 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.


Navigation
Links