[Mediawiki-l] Problem installing MediaWiki (third call)

GraphoPhile graphophile at ouvaton.org
Mon Oct 10 08:21:47 UTC 2005


As I get answers out of scope I suspect that my explanation is not clear, I modify it in consequence

1. The problem : PHP memory not available on the server

Message when installing MediaWiki on Ouvaton.org's server : "/PHP's memory_limit is 8M. If this is too low, installation may fail! Attempting to raise limit to 20M ... failed."

The installation blocked. Ouvaton doesn't want to change the memory limit.

2. The solution tested to bypass the problem
Make the installation on a local machine and then move the database and the LocalSettings file to Ouvaton's server, changing path variables (1).

MediaWiki works OK on the local machine.

After moving the database and modified LocalSettings file, when opening MediaWiki on the distant machine : http://wikisic.ouvaton.org/wiki/ the problem is :

Warning: main(includes/SkinTemplate.php): failed to open stream: No such file or directory in /data/www/w/i/kisic.ouvaton.org/html/wiki/skins/MonoBook.php on line 17 

Fatal error: main(): Failed opening required 'includes/SkinTemplate.php' (include_path='.;/data/www/w/i/kisic.ouvaton.org/html/wiki;/data/www/w/i/kisic.ouvaton.org/html/wiki/includes;/data/www/w/i/kisic.ouvaton.org/html/wiki/languages') in /data/www/w/i/kisic.ouvaton.org/html/wiki/skins/MonoBook.php on line 17

I suspect that one or more of the path I modified in LocalSettings are not OK.
1. How do these path look for a "direct" installation on a LAMP server ?
2. Could it be an other problem ?

Thanks in advance for any help

Christian

http://www.rue-vico.com/clbois/

(1) The LocalSettings.php file with variables for path changed from local values to values for distant servers, changes on LINE 9 , LINE 29 and LINE 49 (in blue)

<?php


# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.

          #LOCAL IP WAS $IP = "c:\\program files\\easyphp1-7\\www\\wikisic\\wiki"; CHANGED to ...
          L 9 $IP = "/data/www/w/i/kisic.ouvaton.org/html/wiki";

ini_set( "include_path", ".;$IP;$IP/includes;$IP/languages" );
require_once( "includes/DefaultSettings.php" );

# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
} elseif ( empty( $wgConfiguring ) ) {
## Compress output if the browser supports it
if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename = "WikiSic";

             # LOCAL value for variable was $wgScriptPath = "/wikisic/wiki"; CHANGED TO ...
          L 29 $wgScriptPath = "/data/www/w/i/kisic.ouvaton.org/html/wiki";

$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";

## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "$wgScript/$1";
# $wgArticlePath = "$wgScript?title=$1";

$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
$wgLogo = "$wgStylePath/common/images/wiki.png";

$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";

$wgEmergencyContact = "admin at localhost";
$wgPasswordSender = "admin at localhost";

         #LOCAL VALUE WAS "localhost" CHANGED TO ...
          L 49 $wgDBserver = "sql.ou-data.net";
$wgDBname = "wikisic";
$wgDBuser = "wikisic";
$wgDBpassword = "XXXXX";
$wgDBprefix = "";

## To allow SQL queries through the wiki's Special:Askaql page,
## uncomment the next lines. THIS IS VERY INSECURE. If you want
## to allow semipublic read-only SQL access for your sysops,
## you should define a MySQL user with limited privileges.
## See MySQL docs: http://www.mysql.com/doc/en/GRANT.html
#
# $wgAllowSysopQueries = true;
# $wgDBsqluser = "sqluser";
# $wgDBsqlpassword = "sqlpass";

# If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = $wgEnablePersistentLC = true;

## Shared memory settings
$wgUseMemCached = false;
$wgMemCachedServers = array();
#$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name() == 'apache';

## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
# $wgDisableUploads = false;
$wgUseImageResize = false;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
# $wgUseTeX = true;
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki = $wgSitename;

$wgLanguageCode = "fr";
$wgUseLatin1 = false;


$wgProxyKey = "217005cc64d7e6f72323d874d41c8ed2b9e4a515ba572012210c8256117b656";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
# $wgDefaultSkin = 'monobook';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.2";
$wgRightsIcon = "${wgStylePath}/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl"; # Not yet used

?>





More information about the MediaWiki-l mailing list