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)

(RESOLVED) 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

I would like to install Mediawiki on my 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 ?

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

Follows these steps if you can not access to httpd.conf and php.ini from you Shared HostServer:
 * Create php.ini file in you public_html/ Home folder or www/
 * Add in your .htaccess : suPHP_ConfigPath /home/VOTREUSER/public_html/php.ini
 * Add in your php.ini : Magic_quotes_gpc = off

This should work (works in my case)

--Phillev 10:45, 11 October 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)

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: Localhost, for testing purposes


 * 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)

Can anyone give me any hints how to use HTML at $wgSiteNotice using mediawiki 1.13? I urgently need this feature since I have to change lots of code elsewise. Can't I just replace some files with older ones? Maziminke 02:01, 9 October 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)


 * In the .htaccess file in the domain root (create it if it doesn't already exist), add
 * —Emufarmers(T 10:16, 27 September 2008 (UTC)
 * —Emufarmers(T 10:16, 27 September 2008 (UTC)

Problem moving wiki site to a new host

 * MediaWiki version: 1.7 (I plan to upgrade after this move)
 * PHP version: 5.2.5
 * MySQL version: 5.0.45
 * URL: http://techforpeople.net/~greenpro (the copy is from http://www.greenpolicy.us; will redirect DNS when this works)

I am moving to a new host. I have MediaWiki Administrators Tutorial Guide and searched this site to find the same problem. I exported and imported the database content and confirmed it by comparing table row counts on each one, and moved the files over with tar. I edited and updated the LocalSettings.php file.

I now get a 404 Not Found error: The requested URL /Main_Page was not found on this server.

Does this mean it's not connecting the the database? I can access it from the shell command line and put the same username and password in the LocalSettings.php file. The old host was a dedicated VPS and the new one is shared. Does that affect something? Are the PHP or MySQL too new for the old MediaWiki that I have?

Thanks for any help (including links to responses to the same problem that I didn't find)

Dean74.4.182.142 16:26, 1 October 2008 (UTC)


 * You implemented very short URLs on your old server. On your new server, you must change $wgArticlePath and friends to their default values or apply the necessary rewriting/aliasing. —Emufarmers(T 18:16, 1 October 2008 (UTC)

Thanks - I got it working. Will need to look into whether I can use the short URLs on the new host, or if I even should try.

Dean 74.4.182.142

warning and fatal error on install...

 * MediaWiki version: 1.13.0rc1
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a-community
 * URL: http://www.mr-johnson.co.uk/wiki

I was trying to install mediawiki however after entering all the database details such as usernames and passwords etc the next page had the following (see warning at the end of this):


 * 1) PHP 5.2.6 installed
 * 2) Found database drivers for: MySQL PostgreSQL SQLite
 * 3) PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)
 * 4) Have XML / Latin1-UTF-8 conversion support.
 * 5) Session save path (/tmp) appears to be valid.
 * 6) PHP's memory_limit is 8M. Attempting to raise limit to 20M... ok.
 * 7) Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
 * 8) Found GNU diff3: /usr/bin/diff3.
 * 9) Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
 * 10) Found GD graphics library built-in.
 * 11) Installation directory: /home/alxjohns/public_html/mrjohnson/wiki
 * 12) Script URI path: /wiki
 * 13) Installing MediaWiki with php file extensions
 * 14) Environment checked. You can install MediaWiki.

Generating configuration file...
 * 1) Database type: MySQL
 * 2) Loading class: DatabaseMysql

Warning: AutoLoader::require(/home/alxjohns/public_html/mrjohnson/wiki/includes/db/Database.php) [autoloader.require]: failed to open stream: No such file or directory in /home/alxjohns/public_html/mrjohnson/wiki/includes/AutoLoader.php on line 507

Fatal error: AutoLoader::require [function.require]: Failed opening required '/home/alxjohns/public_html/mrjohnson/wiki/includes/db/Database.php' (include_path='/home/alxjohns/public_html/mrjohnson/wiki:/home/alxjohns/public_html/mrjohnson/wiki/includes:/home/alxjohns/public_html/mrjohnson/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/alxjohns/public_html/mrjohnson/wiki/includes/AutoLoader.php on line 507

If you have any suggestions that would be great,

Regards,

A Johnson mrj@mr-johnson.co.uk

—212.159.12.88 20:01, 1 October 2008 (UTC)

Viewing config/index.php only lists PHP 5.2.6 installed and nothing else

 * MediaWiki version: 1.13.1
 * PHP version: PHP 5.2.6
 * MySQL version: mysql-server-5.0.45
 * URL: http://justwriteclick.com/wiki

When I go to /config/ in Firefox 3.0 to start the installation, the only text I see under Checking Environment... is

Please include all of the lines below when reporting installation problems.

* PHP 5.2.6 installed

My guess is that it's not getting to the driver point, but I'm not sure what to do to get it past this line.

I don't know if this info is relevant, but I have an .htaccess file at the root level with Wordpress info in it. I also tried installing 1.13.0 but got the same line. Octal permissions on the /config/ directory are 0777.

Thanks for any help you can offer!

—Annegentle 02:56, 2 October 2008 (UTC)

Logo not visible on Main Page?

 * MediaWiki version: 1.12.0_1
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a
 * URL:

I've added my own logo to my wiki site, but it's not viewable on the main page. I can login as admin, choose preferences, and Skin and preview the different skins and it's there when the preview page comes up. Any ideas?

Sorry, forgot to add subject in previous post. Carlton.

—168.215.186.133 15:26, 3 October 2008 (UTC)


 * Purge the cache. —Emufarmers(T 23:33, 4 October 2008 (UTC)

Updating across 6 versions

 * MediaWiki version: 1.7.1
 * PHP version: 5.2.5
 * MySQL version: 1.0.54
 * URL: http://techforpeople.net/~greenpro

I've got this old version of Mediawiki running and recently relocated to a new host. Seems like a good time to upgrade and get current. But I couldn't find anything in the upgrade docs that referred to upgrading such an old version. Are there any concerns in doing this - jumping six versions up to 1.13? Are the upgrade scripts set up to detect older versions and do any extra steps to the database?

I have made some mods, but really only to the skin, and I can fairly easily redo those.

Thanks

Dean 74.4.182.142


 * It should work; report any problems you might have! —Emufarmers(T 23:33, 4 October 2008 (UTC)

Wikimedia question

 * MediaWiki version: SVN build
 * PHP version: 5.26
 * MySQL version:
 * URL: n/a

How does the Wikimedia foundation have wikis without sysops?? Looking at m:Wikimedia projects without sysop, it seems impossible. How do the developers create the wikifarm without re-running the installer again?

I've tried to replicate this on a smaller scale on my localhost XAMPP installation, but it hasn't worked, so what do I need to do to fix it? —Naxram 09:06, 6 October 2008 (UTC)


 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6RC1-pl1-gentoo
 * MySQL version: 5.0.60
 * URL: none yet

Before installing mediawiki I'd like to check the veracity of the downloaded file. There's a sig file but where can I find the public key to verify this?

—132.239.12.245 20:55, 6 October 2008 (UTC)

Install script giving authentication error

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.4
 * MySQL version: 5.0.45
 * URL: intranet

"Attempting to connect to database server as root...failed due to authenticaion errors. Check passwords." I keep getting this error when running the install script. The database server is the same localhost I'm installing the wiki on, and the root password is definitely correct. In googling this error, I found that some people solved this by turning off safe mode in php.ini, however that option was already off on my machine. Anything else I can check?

Issue resolved! It appears it was asking for the mysql root password, not my system root password, leaving the password field blank allowed installation to continue.

—210.55.198.32 22:18, 12 October 2008 (UTC)

How do you log is as an Admin

 * MediaWiki version: Latest
 * PHP version: 5.2.5
 * MySQL version: 5.0.51a-community
 * URL: wwww.talktechnology.net

Hey, I was just wondering how you can log in as an Admin. Is there like a directory you need to go to, since it doesn't allow me to log in just by pressing login, and I know I have entered my information correctly.

Thanks in advance, Matt

Problem after upgrade to 1.13 (wiki not working in IE but working in Mozilla!)

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.3
 * MySQL version: 4.1.18-nt
 * URL: www.wikiscope.org

I have just finished to upgrate my wiki to the 1.13 version. On the same server I have another wiki, updated a while ago and running. However, this second wiki is giving me troubles.

Fatal error: Call to protected method LinkBatch::executeInto from context ''
 * With IE7, the Wiki is working fine unless I log in and then I get the typical error "Internet Explorer cannot display the webpage"
 * In Mozilla, the website run smoothly with only one error in the DynamicPageList2 (Version 0.7.8) extension. I had to comment out Line 953 ($linkBatch->executeInto($linkCache);), otherwise I get the following error:

During the update I did not get problems. I backuped DB and files, copied the new files and folder, moved extensions and included files that I need, restored permissions and ran the update.php script.

I would guess that, as usual, I have a problem with permissions or with the database, BUT I have not idea why with Mozilla is working almost all fine!!!

Any suggestion is welcome!

Solution
It was a problem of permission on the session folder... I was mislead by the fact that all was working properly in Mozilla. I have a few errors here and there but the Wiki is now up and running...

—Wikiscope 19:23, 20 October 2008 (UTC)