Project:Support desk/Sections/Installation

__NEWSECTIONLINK__ = Installation/Legalities Support =

Cleaning up after upgrade to 1.13.1?

 * MediaWiki 1.13.1
 * PHP 5.2.4 (apache2handler)
 * MySQL 5.0.45-community-nt

Ok so I have updated my wiki using the update.php. I noticed some changes that I had made to "specialcontributions.php" were not having the effect I was after. So I have now found that the special files have been moved to a folder called "Specials" within the "includes" folder. This tells me that a number of files have been moved and I now have duplicates! Is there a way to do a "clean up" after an update? Thanks -Joel 10:18, 23 September 2008 (UTC)

Receiving a PHP Fatal Error: Class 'WebRequest' not found in includes/Setup.php

 * MediaWiki: 1.13.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a-community
 * URL: CellAO

I'm receiving an error

Fatal error: Class 'WebRequest' not found in /home/pastxter/public_html/cellao/includes/Setup.php on line 147

When I click the "Install MediaWiki!" button after the initial checks have completed. I'm not sure why this is happening

$wgRequest = new WebRequest; is Line 147

It's like AutoLoader.php doesn't actually include includes\WebRequest.php like it seems to be supposed to

-Charles —207.232.113.236 04:27, 20 August 2008 (UTC)

(RESOLVED) Vulnerability that needs to be fixed
me and some friends were scanning my site and found a vulnerability. please fix it...

/index.php?title=Main_Page&action=edit&gen=js&useskin=>">alert(398498917898)%3B

--68.91.112.121 25 August 2008


 * Please give your site info and un-mark this topic as resolved if you want help. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  17:47, 20 September 2008 (UTC)

Fatal: mbstring.func_overload is active! Cannot install MediaWiki...

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a-community
 * URL: Site

I would like to install Mediawiki on my www.mavenfrance.com shared HostServer. I cannot install mediawiki and have this fatal error : MediaWiki 1.13.0 Installation Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list. Checking environment... Please include all of the lines below when reporting installation problems.

PHP 5.2.6 installed Found database drivers for: MySQL Fatal: mbstring.func_overload is active! This option causes errors and may corrupt data unpredictably; you cannot install or use MediaWiki unless this option is disabled. Cannot install MediaWiki.

How can I Resolve this problem ? Thanks

—Phillev 20:42, 5 September 2008 (UTC)


 * You will have to disable that option in your PHP configuration file (php.ini) or ask your host to do so. —Emufarmers(T 03:56, 6 September 2008 (UTC)


 * I can not access to php.ini and my host is cautious to change this parameter. Have another choice such as .htaccess ? --Phillev 07:22, 12 September 2008 (UTC)

putenv Warning because of safe mode

 * MediaWiki version: 1.13.0
 * PHP version: 5.0.5-3 (cgi-fcgi)
 * The server uses PHP 5 only for files with the .php5 extension


 * MySQL version: 4.1.15-Debian_1
 * URL: http://derjoo.de/ffd

Safemode problem:
 * Warning: putenv [function.putenv]: Safe Mode warning: Cannot set environment variable 'LC_CTYPE' - it's not in the allowed list in /home/www/web2542/html/derjoo/ffd/includes/Setup.php on line 121

what happens if i just delete that putenv? i didnt even understand what LC_CTYPE does... thank you very much!!!

derjoo —84.168.65.36 10:35, 7 September 2008 (UTC)

Similar problem

 * MediaWiki version: 1.13.1
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.27-Debian_0.dotdeb.1
 * URL:

I'm getting an error:

Warning: putenv [function.putenv]: Safe Mode warning: Cannot set environment variable 'LC_CTYPE' - it's not in the allowed list in /wiki/includes/Setup.php on line 121

Where can I stop the PHP from trying to set the variable?

—Jbbdude 21:37, 7 September 2008 (UTC)

The same problem

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.0-8+etch10 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch5-log
 * URL: http://www.cibersociedad.net/congreso2009/w/

I have exactly the same problem as above in includes/Setup.php on line 121 ;( --Esenabre 11:20, 15 September 2008 (UTC).


 * What I've done is to comment the following lines and now it works (I don't know unitil when, though :) --Esenabre 13:19, 15 September 2008 (UTC)

/** Workaround for http://bugs.php.net/bug.php?id=45132 escapeshellarg destroys non-ASCII characters if LANG is not a UTF-8 locale putenv( 'LC_CTYPE=en_US.UTF-8' ); setlocale( LC_CTYPE, 'en_US.UTF-8' ); if ( !class_exists( 'AutoLoader' ) ) { require_once( "$IP/includes/AutoLoader.php" ); } */

Wiki installed nut ow I am stuck - please help!

 * MediaWiki version: 1.13.1
 * PHP version: 5
 * MySQL version: 4.1.22
 * URL: http://www.cocardsynergy.com/wiki/index.php?title=Main_Page

Here are the error messages I see on my page:

Warning: Invalid argument supplied for foreach in /home/sptrobb/public_html/cocardsynergy/wiki/languages/Language.php on line 2310 Warning: Invalid argument supplied for foreach in /home/sptrobb/public_html/cocardsynergy/wiki/languages/Language.php on line 2310 Warning: Invalid argument supplied for foreach in /home/sptrobb/public_html/cocardsynergy/wiki/includes/SpecialPage.php on line 218

I am totally lost and have no idea what to do to remedy this. An anyone help?

Robb Lejuwaan robbl@cocardsynergy.com —75.16.34.92 21:06, 13 September 2008 (UTC)

Parse error

 * MediaWiki version: 1.13
 * PHP version: 5.26
 * MySQL version: 5
 * URL: www.simpatico.com.qa/wiki

Using filezilla i gave 777 permission to the whole wiki folder. yet when I try to access www.simpatico.com.qa/wiki I get Parse error: syntax error, unexpected $end in /home/simpatic/public_html/wiki/includes/Defines.php on line 58

What to do? –78.100.2.3 03:24, 14 September 2008 (UTC)

(RESOLVED) CommonSettings.php
I can install MediaWiki properly, and have done so multiple times, however, trying to get CommonSettings.php to work is a nightmare for me. I really have no idea how to do this and would appreciate your help. I tried a few times but don't know how to get it to work in LocalSettings.php Thanks, AC —82.42.237.84 21:35, 14 September 2008 (UTC)
 * MediaWiki version: SVN repository
 * PHP version:
 * MySQL version:
 * URL:


 * Please give your Wiki info and then you may un-mark this topic from RESOLVED status. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  17:56, 20 September 2008 (UTC)

User access denied during installation.

 * MediaWiki version: 1.13.1
 * PHP version: PHP 5.2.6
 * MySQL version: MySQL5
 * URL: http://electroharmonix.ronsound.com

I keep getting the following error when attempting to install:

'''# Connected to 5.0.45-log; enabling MySQL 4.1/5.0 charset mode * Error selecting database wikidb: 1044 Access denied for user 'wikiuser'@'%' to database 'wikidb

I have the database created and the wikiuser is setup for all privileges. Can you explain what I'm doing wrong?

—75.62.114.48 18:24, 16 September 2008 (UTC)

Can't use HTML within $wgSiteNotice after upgrading to MW 1.13

 * MediaWiki version: 1.13
 * PHP version: 5
 * MySQL version: 5
 * URL: localhost

Hi all,

after upgrading my Mediawiki from 1.7.1 to 1.13 I can't use any HTML tags within the $wgSiteNotice variable. Only output I get is the raw text I inputted like

  

Localsettings.php is the same as before the update. I also updated the ParserFunctions extension but I'm not sure if my problem is connected to this extension. Did I forget to update any other files?

Any ideas? Every kind of help is appreciated!

Regards,

Maziminke 15:32, 18 September 2008 (UTC)


 * $wgSiteNotice started taking wikitext instead of raw HTML in MediaWiki 1.9 "for consistency with editable MediaWiki:Sitenotice and MediaWiki:Anonnotice." It seems like it went back and forth between wikitext and HTML in past versions, so you could make a request on bugzilla if you think the current functionality isn't sufficient. —Emufarmers(T 23:20, 18 September 2008 (UTC)
 * Thanks for your help. This totally explains the behavior but is a bad message for me since it means recoding lots of code.
 * You mentioned to put a request to mediawiki's bugzilla system but do you think anyone will care for a single user's opinion? What do you think about implementing a switch to enable/disable HTML at $wgSiteNotice? Since both functionalities should be somehow implemented this would be a nice way to keep HTML working when updating!?
 * Thanks once more for your help, Maziminke 23:56, 18 September 2008 (UTC)

(RESOLVED) Sharing MySQL Database with other Applications

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

I want to install MediaWiki on a site that only has one database, currently in use by the Joomla Content Management System. MediaWiki will be installed on a subdirectory of the site. I understand that when I install MediaWiki I will need to use a Database table prefix (for example wik_) since Joomla is installed under jos_. Is there anything else I need to do so that the installation of MediaWiki does not interfere with the tables already in my MySQL database?

Thank you!

—190.87.104.78 21:50, 18 September 2008 (UTC)


 * When using different prefixes everything should work fine. Maziminke 23:50, 18 September 2008 (UTC)


 * Please give your Wiki info and then you may un-mark this topic from RESOLVED status. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  17:59, 20 September 2008 (UTC)

(RESOLVED) PHP 5.2.6 Error

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

—66.117.231.194 15:44, 19 September 2008 (UTC)


 * Please give your Wiki info and then you may un-mark this topic from RESOLVED status. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  17:59, 20 September 2008 (UTC)

PHP Error After Install

 * MediaWiki version: 1.13.1
 * PHP version: 5.1.6
 * MySQL version: 5.0.27
 * URL: wiki.cis-elsalvador.org

I tried installing once, but got the following error Fatal error: Class 'LinkCache' not found in /var/www/wiki/includes/Title.php on line 1968

After replacing that file, I installed again. This time I got an "installation successful" message. After installing, I get the following error message: Fatal error: Class 'LinkCache' not found in /var/www/wiki/includes/Article.php on line 366

Tried replacing the file but that did not work.

—Arrbug 20:47, 19 September 2008 (UTC)

Doesn't load homepage

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a-community
 * URL: http://danfarrell.heliohost.org/wiki

Right now all I get when I go to my main page is:

Warning: require_once(/home/dan/public_html/wiki/includes/WebStart.php) [function.require-once]: failed to open stream: No such file or directory in /home/dan/public_html/wiki/index.php on line 40 Fatal error: require_once [function.require]: Failed opening required '/home/dan/public_html/wiki/includes/WebStart.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dan/public_html/wiki/index.php on line 40

What do I do? I have put all the files onto the server at /wiki, and created the MySQL database. I also changed the permissions of 0777 on wiki/config

—218.101.69.55 09:40, 20 September 2008 (UTC)


 * You are missing a file (or possibly several files). Get the download package onto your server and untar it there; do not upload the files individually unless you have no other choice. —Emufarmers(T 23:07, 20 September 2008 (UTC)

Authentication errors

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6
 * MySQL version: xampp-win32-1.6.7-installer.exe
 * URL: local installation

I have Problems with the MediWiki-Installation at the server: Attempting to connect to database server as root...failed due to authentication errors. Check passwords. Something's not quite right yet; make sure everything below is filled out correctly. ... Problems with the Superuser account: Check username and password
 * Working system: Windows XP, SP2

Detailed Error report: []

—212.203.91.124 15:20, 21 September 2008 (UTC)