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" ); } */

The same problem
As its only a warning you can put an @ in front of the putenv/setenv lines and this will suppress the error messages.

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)

mysql-error: blob can't have default

 * MediaWiki version: 1.7.1
 * PHP version: 5.2.0
 * MySQL version: 5.0.32
 * URL: intranet-only

Here is the output from the setup-script:

* PHP 5.2.0-8+etch11 installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP's memory_limit is 16M. If this is too low, installation may fail! Attempting to raise limit to 20M... ok. * Have zlib support; enabling output compression. * Neither Turck MMCache nor eAccelerator nor APC are installed, can't use object caching functions * Found GNU diff3: /usr/bin/diff3. * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. * Installation directory: /var/lib/mediawiki1.7 * Script URI path: /mediawiki1.7 * Environment checked. You can install MediaWiki.

Generating configuration file... * Database type: MySQL * Loading class: DatabaseMysql * Attempting to connect to database server as root...success. * Connected to 5.0.32-Debian_7etch6-log; enabling MySQL 4.1/5.0 charset mode * Database twwikidb exists

Creating tables... using MySQL 5 table defs...Query "CREATE TABLE `user` ( user_id int(5) unsigned NOT NULL auto_increment, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL , user_email tinytext NOT NULL default , user_options blob NOT NULL , user_touched char(14) binary NOT NULL default , user_token char(32) binary NOT NULL default , user_email_authenticated CHAR(14) BINARY, user_email_token CHAR(32) BINARY, user_email_token_expires CHAR(14) BINARY, user_registration CHAR(14) BINARY, PRIMARY KEY user_id (user_id), UNIQUE INDEX user_name (user_name), INDEX (user_email_token) ) , DEFAULT CHARSET=utf8 " failed with error code "BLOB/TEXT column 'user_email' can't have a default value (192.168.xxx.xxx).

When I copy the statement into a query tool and drop the default="''" part for all blobs, it works fine?!

—194.94.5.91 16:16, 26 September 2008 (UTC) Andreas

Parse error upon installation

 * MediaWiki version: 1.13.1
 * PHP version: 4.4.9
 * MySQL version: 5.0
 * URL: http://hogwarts-interactive.com

I installed MediaWiki and have come across this error when I try to go to my main wiki page:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/8/d98476241/htdocs/hogwartsnew/wiki/includes/AutoLoader.php on line 10

My wiki page is:

http://hogwarts-interactive.com/wiki/

However if I go to http://hogwarts-interactive.com/wiki/index.php5 it works. How can I get the http://hogwarts-interactive.com/wiki/ URL to work properly?

Thank you for your time!

—98.243.173.84 05:30, 27 September 2008 (UTC)