Project:Support desk/Sections/Installation

__NEWSECTIONLINK__ = Installation/Legalities Support =

MySQL Database Authentication Problem

 * MediaWiki: 1.12.0
 * PHP: 5.2.4
 * MySQL: 5.0.24a
 * URL: Company Intranet

In the Database Config section of installation, MediaWiki asks for the MySQL database name, username, and password.

I provide all of this information, but then I click the install button, I keep getting an error telling me to check the username and password. I don't get it. I followed installation instructions explicitly.

My MySQL commands are as follows: mysqladmin -u root -p create wikidb mysql -u root -p -e "GRANT ALL PRIVILEGES ON wikidb.* TO wikiuser IDENTIFIED BY 'wiki_password'" mysql -u root -p -e "SET PASSWORD FOR wikiuser = OLD_PASSWORD('wiki_password')" mysql -u root -p -e "FLUSH PRIVILEGES" Where I've changed "wikiuser" and "wiki_password" to something more appropriate. The syntax is fine, and no typos exist. I enter the information letter for letter in the Database Config section, and I still receive the password authentication error, and for the life of me, I cannot figure out why.

Chris at MFS.

—72.85.252.217 19:57, 22 July 2008 (UTC)

(RESOLVED) Upgrading to MW 1.12 without shell access

 * MediaWiki: 1.12.0
 * PHP: 5.1.6 (apache2filter)
 * MySQL: 4.1.20
 * URL: http://en.wiki-products.org

I updated the english version of our wiki from Version 1.11 to 1.12. Since we don't have shell access and "proc_open" is disabled by our hosting company, there was only "Alternative 2" left. So I copied all the files of the 1.12-version into the existing folders of our wiki. In that way old files were replaced but things like extensions and images were kept. Everything worked fine but after running the installation there was a fatal error when browsing the wiki. It said: "Fatal error: Call to undefined method ParserOptions::enableLimitReport in /home/httpd/vhosts/wiki-products.org/subdomains/en/httpdocs/includes/Article.php on line 3172". Since i didn't know what to make of that, I replaced "Article.php" with the old 1.11-version (lucky me, I did the back-up before) and now things seem to be running fine again. However, before I go on to upgrade the much larger (and more important) german version of our wiki, I would like to be sure, that this is the way to do it and that no further problems will emerge from this. Thanks for helping!

—Gollum 11:11, 23 July 2008 (UTC)


 * Just to let you know. This problem was resolved by upgrading to Mediawiki 1.13 . My best, --Gollum 11:15, 5 September 2008 (UTC)

Once installed via ftp, I cannot continue configuration thru /config/index.php

 * MediaWiki: v1.12.0
 * PHP: PHP5
 * MySQL: 5.0.45
 * URL: http://wiki.php5.ict-idcollege.nl/

Hi,

I've installed MediaWiki on the Host (MediaWiki v1.12.0, PHP5, MySQL 5.0.45) of our school. 'Feel a bit a newb (which I am) but I do hope someone can help me with this. Anyway, I have installed via ftp, and can get to the index.php script in public_html by entering the above URL. All directories and scrips seem to be in place, I've set the file attributes of the /config folder to '777'.

I then get to see the initial index.php in the root. Once I click on the 'Please set up the wiki first.' link (which should redirect me to /config/index.php), I get to the 'Admin' login screen of my Host. Does this somehow ring a bell to you?

Thanks for your help in this. Erik Coolen, The Netherlands (ecoolen@ict-idcollege.nl) —82.169.26.209 11:22, 23 July 2008 (UTC)

Weird sudden failure of wiki

 * MediaWiki: very latest version (just installed a few days ago)
 * PHP: 5.2.5
 * MySQL: 5.0.45-community-log
 * URL: http://wiki/berrysoft.net

I changed nothing on my server, and now when I go to my wiki (http://wiki.berrysoft.net) I get this: Warning: require_once(/home/berrysof/public_html/wiki/extensions/InterWikiLinkManager/InterWikiLinkManager.php) [function.require-once]: failed to open stream: No such file or directory in /home/berrysof/public_html/wiki/LocalSettings.php on line 138

Fatal error: require_once [function.require]: Failed opening required '/home/berrysof/public_html/wiki/extensions/InterWikiLinkManager/InterWikiLinkManager.php' (include_path='/home/berrysof/public_html/wiki:/home/berrysof/public_html/wiki/includes:/home/berrysof/public_html/wiki/languages:.:/usr/local/php52/pear') in /home/berrysof/public_html/wiki/LocalSettings.php on line 138 I have no clue what to do!

Patrick Waugh Berrysoft Studios —98.211.63.103 20:09, 27 July 2008 (UTC)
 * There is a line in your  that says  . However, the file it's referring to doesn't exist. Either correct the line to refer to the right file, or remove the line altogether. --Catrope 09:01, 7 September 2008 (UTC)

No install directory in /usr/share/doc/mediawiki-x.y.z/INSTALL on fedora 9
On fedora 9 i ran yum install mediawiki. Install went well, but there was suppose to be

"After installation, open the file /usr/share/doc/mediawiki-x.y.z/INSTALL.fedora and follow the instructions there."

The only dirs. were.

-rw-r--r-- 1 root root 17997 2008-03-03 01:05 COPYING -rw-r--r-- 1 root root   162 2008-03-03 01:05 FAQ -rw-r--r-- 1 root root 211867 2008-03-03 01:05 HISTORY -rw-r--r-- 1 root root  3535 2008-03-03 01:05 README -rw-r--r-- 1 root root 29739 2008-03-03 01:05 RELEASE-NOTES -rw-r--r-- 1 root root 12816 2008-03-03 01:05 UPGRADE

Empty page after installing Wiki

 * MediaWiki: 1.1.2
 * PHP: 5.2.6
 * MySQL: 5.0.51a
 * URL: Wiki

Changed my hosting to PHP5. Trying to install wiki - setup goes just fine, with info about moving LocalSettings.php to directory above... After i moved it, and pointing to mysite/wiki - just empty page goes out. No errors, no warnings. Empty page.

Solved as described above: LocalSettings.php add: $wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';

—82.179.222.150 15:55, 4 August 2008 (UTC)

Don't create localsettings.php after to click install mediawiki button

 * MediaWiki: mediawiki-1.11.2
 * PHP: PHP5.2.5 Zend Optimizer
 * MySQL: MySQL 5.0.45
 * URL: ...

Hi~!

I have a question.

When I try to install mediawiki in my PC, do not create localsettings.php

When I have clicked install button for installing mediawiki, I.E window shutdowned.

What I have to do for install mediawiki?

—210.127.34.1 03:37, 6 August 2008 (UTC)

Install Error

 * MediaWiki: Version MediaWiki 1.12.0
 * PHP: Version 5.2.6
 * MySQL: Not using MySQL - using Postgres version 8.3.3
 * URL: http://localhost:9372/wiki/config/index.php

Install Error: Call to undefined function pg_escape_string in /var/www/html/wiki/includes/DatabasePostgres.php

I'm not able to install and configure MediaWiki. My system configuration is running RedHat Linux release 4, and the initial page reports the following: PHP 5.2.6 installed Found database drivers for: PostgreSQL PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. PHP's memory_limit is 128M. Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Installation directory: /var/www/html/wiki Script URI path: /wiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. I can enter the configuration screen, but it crashes with the following message Generating configuration file.. Database type: PostgreSQL Loading class: DatabasePostgres Attempting to connect to database "postgres" as superuser "postgres"... Checking the version of Postgres...version 8.3 is OK.

Fatal error: Call to undefined function pg_escape_string in /var/www/html/wiki/includes/DatabasePostgres.php on line 1215 I've never used PHP and have absolutely no idea what this means. :^(

I don't know if it's relevant, but one of the problems I had was in setting up PHP5; RHEL4 doesn't have an installable package, so I created it from source using the instructions at: http://www.blazonry.com/scripting/install_apache.php#dso

Roger —198.152.70.2 14:30, 6 August 2008 (UTC)


 * Hi, Has anybody got any ideas about this?
 * 198.152.70.2 07:30, 11 August 2008 (UTC)


 * Hi, I'm adding another comment to keep this question live. Cheers
 * 198.152.70.2 07:33, 15 August 2008 (UTC)


 * Help anybody?
 * 198.152.70.2 08:03, 21 August 2008 (UTC)
 * You don't have PostgreSQL support in PHP, so you need to recompile PHP, this time with PostgreSQL support enabled. --Catrope 09:03, 7 September 2008 (UTC)

(RESOLVED) Upgrade from MW 1.11.0 to 1.12.0

 * MediaWiki: Version MediaWiki 1.11.0 & 1.12.0
 * PHP: Version 5.2.5
 * MySQL: using MySQL 5.0

I tried the upgrade of MediaWiki on my computer (before to do it on the real server). I used the Alternative #2, because I don't have shell access on the final server. Whatever, everything seems to go well (no error message during the "installation"), but the wiki is then unavailable : there is only one white page without errors. What's the problem then ? What can I do ? :-(

Matt84 12:11, 12 August 2008 (UTC)
 * A blank page mean that there's a PHP error, but hidden. See How to debug to enable error reporting and then come back with the error message. i Alex  21:25, 16 August 2008 (UTC)


 * seems ok now. Thanks. Matt84 19:53, 3 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)

New Namespace edit goes to edit of Talk page
I have set up a special namespace. But when I try to edit a page the session opens as a talk page, and when I go to the actual page, the talk page opens!

Installed
 * Configure (Version 0.5.7) 	Allow authorised users to configure the wiki by a web-based interface 	Alexandre Emsenhuber Parser hooks
 * EmbedVideo (Version 0.1.2) 	Adds a parser function aembedding video from popular sources. 	Jim R. Wilson - wilson.jim.rgmail.com
 * Google Co-op Extension 	Using Google Co-op 	Liang Chen The BiGreat
 * NiceCategoryList 	generate a category page showing all pages in a category, including subcategories 	Kichik, Johan the Ghost Andre
 * GoogleTranslate (Version 0.2) 	Ajax-based link translation that translates edittext from/to via GoogleTranslate 	Per Feldvoss Olsen
 * Please ensure that you gave your custom namespace an even number, that it has an associated talk page whose number is exactly one higher (and therefore odd), and that the namespace numbers are 100 or higher. --Catrope 09:05, 7 September 2008 (UTC)

Old versions of Mediawiki?

 * MediaWiki: 1.13.0
 * PHP: 5.2.6 (cgi)
 * MySQL: 5.0.51a-community
 * URL: (in development)

Do we have old versions of Mediawiki somewhere? I had 1.9.3 and when I upgraded to 1.13.0, it gives me an "illegal mix of collations" error, when I view Page logs. I thought I'd try incrementally upgrading the software to see if that would work. —Kenny5 04:11, 25 August 2008 (UTC)


 * Are you looking for a list such as Important Release Notes? Manual:Upgrading to 1.13 could help too. -- :bdk: 19:06, 3 September 2008 (UTC)

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

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)


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