Project:Support desk/Sections/Installation

__NEWSECTIONLINK__

= Installation/Legalities Support =

Page Linking Help Needed
Hi, is there a plugin that automatically links key words to other Wiki pages? At the moment I am manually creating links but I'm sure there must be another way?

Any help would be much appreciated!

Mediawiki Appliance Version 1.13.20 Problems
Downloaded rPath Mediawiki Appliance, Running it on VMwear PLayer but can't find the localsettings.php file to edit.

Can't find much documentation. Any help or documentation would be great!

Extension Licensing Guidelines
I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

mySQL database username

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9
 * MySQL version: 5.1.33

I am configuring MediaWiki, except the one part I am having problems with is when it is asking me for a database username and password and confirm password. Below that is the superuser account, which is root.

>>>''Granting user permissions... Query "GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `wikidb`.* TO 'username'@'%' IDENTIFIED BY 'password' " failed with error code "Can't find file: 'user' (errno: 2) (localhost)".'' <<<<

But it will not let me continue the configuration unless I specify a user and password since it will not let me leave it blank.

I am installing on Windows XP, just need some help with this issue. I am not very familiar with databases, i know the root user account info, but it is asking for a username and password and confirm password.

Any help would be much appreciated.

homerm@rosedale.ca

What server variables are needed
My neywork admin needs to set server variables to allow the upload to be successful...

Trying to load to www.high12.org,

current php and all info can be seen at www.high12.org/phpinfo.php

currently receive "?"s when attempt to load php is made...admin requesting server settings needed

attempted to register for the forum but never receive conformation email...so hear i am.

I am not able to open setup wiki page, getting the following error
Getting PHP 5.2.1 installed Could not find a suitable database driver! Issue while Installing Mediawiki.


 * MediaWiki version: 1.15.1
 * PHP version: 5.2.12
 * MySQL version: MySQL Server 5.1
 * OS: FreeBSD 8
 * URL: http://localhost/wiki

I am not able to open setup wiki page, getting the following error:

MediaWiki 1.15.1 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.12 installed

Installation of Mediawiki without web forms

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.12
 * MySQL version: 5.2.12

Since I have, generated all in one place, the answers requested on the MediaWiki install form, I would like to install new instances of MediaWiki
 * without using the form manually
 * without driving the form programatically (with, say, )
 * without hacking
 * without reverse-engineering my own install script which calls into parts of MediaWiki to set it up

Isn't there a stable, maintained entrypoint for this? Shouldn't there be?

—Smaines 09:22, 23 March 2010 (UTC)

P.S. Apologies in advance if the answer to this is addressed elsewhere, or is otherwise obvious
 * Command-line installer is scheduled for 1.17, but currently there's no ready solution for this. Max Semenik 09:33, 23 March 2010 (UTC)

That will make a great product even better, thanks for getting back to me. —Smaines 13:29, 28 March 2010 (UTC)

Install failing to connect to MySQL instance

 * MediaWiki version: 1.15.2
 * PHP version: 5.3.2
 * MySQL version: 5.1.45
 * URL: Sorry, it's on my laptop, not the web. :-(

I'm having a problem installing MediaWiki on Windows 7. I did it all OK last week on Windows XP. (They are both in VMs under VMware Fusion on my MacBook.) The problem is in connecting to MySQL: "Attempting to connect to database server as root...failed with error [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."

The full install output is:

MediaWiki 1.15.2 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.3.2 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path (C:\Windows\Temp) appears to be valid. PHP's memory_limit is 128M. Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: C:\Programs\Apache Software Foundation\Apache2.2\htdocs\wiki Script URI path: /wiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Warning: $wgSecretKey key is insecure, generated with mt_rand. Consider changing it manually. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. Attempting to connect to database server as root...failed with error [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I am setting the passwords correctly. MySQL is running OK and I can connect to it using the same password I am giving MediaWiki. I have tried opening a firewall hole for the MySQL port and TCP/IP is enabled. In attacking the problem I have uninstalled and reinstalled MySQL several times and PHP once... I'm about out of ideas. :-( 

—Mikepeat 23:44, 5 April 2010 (UTC)


 * PS - I've been through the "OLD_PASSWORD" rigmarole detailed at http://dev.mysql.com/doc/mysql/en/old-client.html... it didn't help. :-( --Mikepeat 00:26, 6 April 2010 (UTC)


 * I have exactly the same problem :| Saturnian 20:14, 11 April 2010 (UTC)
 * I found the solution. The field Database Host must be changed from localhost to 127.0.0.1. Saturnian 20:44, 11 April 2010 (UTC)


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

—94.183.142.80 07:55, 13 April 2010 (UTC)

Installation problem Mediawiki
--- XAMPP version: 1.7.4-beta (when I used 1.7.3, I got a message that it does not work with wiki 1.15.3 - or something like this)
 * MediaWiki version: 1.15.3
 * PHP version:
 * MySQL version:
 * URL:

After installing the XAMPP 1.7.4-beta and starting all 3 servers from the XAMPP Control, I followed the instructions at: http://techjournal.318.com/web-development/installing-mediawiki-on-mac-os-x/

I repeated the process meticulously, and when I reached the wiki setup, after feeding all the required parameters I clicked on the "Install Mediawiki" but I keep getting the message:

Something's not quite right yet; make sure everything below is filled out correctly

Here is the whole page pasted: - MediaWiki 1.15.3 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.3.2 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path (/Applications/XAMPP/xamppfiles/temp/) appears to be valid. 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 GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: /Applications/XAMPP/xamppfiles/htdocs/mediawiki Script URI path: /mediawiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as adyuser1...failed due to authentication errors. Check passwords. Something's not quite right yet; make sure everything below is filled out correctly.

Site config

Wiki name: Preferably a short word without punctuation, i.e. "Wikipedia". Will appear as the namespace name for "meta" pages, and throughout the interface.

Contact e-mail: Displayed to users in some error messages, used as the return address for password reminders, and used as the default sender address of e-mail notifications.

Language: Select the language for your wiki's interface. Some localizations aren't fully complete. Unicode (UTF-8) is used for all localizations.

Copyright/license: No license metadata Public Domain GNU Free Documentation License 1.2 (Wikipedia-compatible) GNU Free Documentation License 1.3 A Creative Commons license - choose A notice, icon, and machine-readable copyright metadata will be displayed for the license you pick.

Admin username: Password: Password confirm: An admin can lock/delete pages, block users from editing, and do other maintenance tasks. A new account will be added only when creating a new wiki database.

The password cannot be the same as the username.

Object caching: No caching DBA (not recommended) Memcached Memcached servers: An object caching system such as memcached will provide a significant performance boost, but needs to be installed. Provide the server addresses and ports in a comma-separated list.

MediaWiki can also detect and support eAccelerator, Turck MMCache, APC, and XCache, but these should not be used if the wiki will be running on multiple application servers.

DBA (Berkeley-style DB) is generally slower than using no cache at all, and is only recommended for testing.

E-mail, e-mail notification and authentication setup

E-mail features (global): Enabled Disabled Use this to disable all e-mail functions (password reminders, user-to-user e-mail, and e-mail notifications) if sending mail doesn't work on your server.

User-to-user e-mail: Enabled Disabled The user-to-user e-mail feature (Special:Emailuser) lets the wiki act as a relay to allow users to exchange e-mail without publicly advertising their e-mail address.

E-mail notification about changes: Disabled Enabled for changes to user discussion pages only Enabled for changes to user discussion pages, and to pages on watchlists (not recommended for large wikis) For this feature to work, an e-mail address must be present for the user account, and the notification options in the user's preferences must be enabled. Also note the authentication option below. When testing the feature, keep in mind that your own changes will never trigger notifications to be sent to yourself. There are additional options for fine tuning in /includes/DefaultSettings.php; copy these to your LocalSettings.php and edit them there to change them. E-mail address authentication: Disabled Enabled If this option is enabled, users have to confirm their e-mail address using a magic link sent to them whenever they set or change it, and only authenticated e-mail addresses can receive mails from other users and/or change notification mails. Setting this option is recommended for public wikis because of potential abuse of the e-mail features above. Database config

Database type: MySQL PostgreSQL SQLite Database host: If your database server isn't on your web server, enter the name or IP address here.

Database name: DB username:Check username DB password:and password DB password confirm: If you only have a single user account and database available, enter those here. If you have database root access (see below) you can specify new accounts/databases to be created. This account will not be created if it pre-exists. If this is the case, ensure that it has SELECT, INSERT, UPDATE, and DELETE permissions on the MediaWiki database.

Superuser account: Use superuser account Superuser name: Superuser password: If the database user specified above does not exist, or does not have access to create the database (if needed) or tables within it, please check the box and provide details of a superuser account,	such as root, which does.

MySQL specific options Database table prefix: If you need to share one database between multiple wikis, or between MediaWiki and another web application, you may choose to add a prefix to all the table names to avoid conflicts. Avoid exotic characters; something like mw_ is good. Storage Engine Select one: InnoDB MyISAM InnoDB is best for public web installations, since it has good concurrency support. MyISAM may be faster in single-user installations. MyISAM databases tend to get corrupted more often than InnoDB databases.

Database character set Select one: MySQL 4.1/5.0 binary MySQL 4.1/5.0 UTF-8 MySQL 4.0 backwards-compatible UTF-8 This option is ignored on upgrade, the same character set will be kept.

WARNING: If you use backwards-compatible UTF-8 on MySQL 4.1+, and subsequently back up the database with mysqldump, it may destroy all non-ASCII characters, irreversibly corrupting your backups!.

In binary mode, MediaWiki stores UTF-8 text to the database in binary fields. This is more efficient than MySQL's UTF-8 mode, and allows you to use the full range of Unicode characters. In UTF-8 mode, MySQL will know what character set your data is in, and can present and convert it appropriately, but it won't let you store characters above the Basic Multilingual Plane.

--

—84.228.123.93 19:20, 14 April 2010 (UTC)

Installation Problems - Something's not quite right yet; make sure everything below is filled out correctly

 * MediaWiki version: MediaWiki 1.15.3
 * XAMPP version: 1.7.4-beta1 (I also tried 1.7.3 but received a message that this version doesn't work with the latest Mediawiki - or something like that
 * PHP version:
 * MySQL version:
 * URL:

After installing XAMPP and starting the 3 servers, I extracted the files from the Mediawiki .tar file (mediawiki-1.15.3), placed them into a folder I named "Mediawiki" and moved the folder in the htdocs folder. Then I changed the attributes of the config folder in the Mediawiki folder with 'chmod' to allow everything (chmod a+w config). I defined a new database and allowed all the privileges to it. - All these procedures I performed according to the instructions at the site: http://techjournal.318.com/web-development/installing-mediawiki-on-mac-os-x/ When browsing to the http://localhost/mediawiki/config/index.php, I fed all the parameters required but still received the message: "Something's not quite right yet; make sure everything below is filled out correctly"

Here is the paste of the screen as you instruct on this wiki page: -- MediaWiki 1.15.3 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.3.2 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path (/Applications/XAMPP/xamppfiles/temp/) appears to be valid. 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 GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: /Applications/XAMPP/xamppfiles/htdocs/mediawiki Script URI path: /mediawiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as adyuser1...failed due to authentication errors. Check passwords. Something's not quite right yet; make sure everything below is filled out correctly.

Site config

Wiki name: Preferably a short word without punctuation, i.e. "Wikipedia". Will appear as the namespace name for "meta" pages, and throughout the interface.

Contact e-mail: Displayed to users in some error messages, used as the return address for password reminders, and used as the default sender address of e-mail notifications.

Language: Select the language for your wiki's interface. Some localizations aren't fully complete. Unicode (UTF-8) is used for all localizations.

Copyright/license: No license metadata Public Domain GNU Free Documentation License 1.2 (Wikipedia-compatible) GNU Free Documentation License 1.3 A Creative Commons license - choose A notice, icon, and machine-readable copyright metadata will be displayed for the license you pick.

Admin username: Password: Password confirm: An admin can lock/delete pages, block users from editing, and do other maintenance tasks. A new account will be added only when creating a new wiki database.

The password cannot be the same as the username.

Object caching: No caching DBA (not recommended) Memcached Memcached servers: An object caching system such as memcached will provide a significant performance boost, but needs to be installed. Provide the server addresses and ports in a comma-separated list.

MediaWiki can also detect and support eAccelerator, Turck MMCache, APC, and XCache, but these should not be used if the wiki will be running on multiple application servers.

DBA (Berkeley-style DB) is generally slower than using no cache at all, and is only recommended for testing.

E-mail, e-mail notification and authentication setup

E-mail features (global): Enabled Disabled Use this to disable all e-mail functions (password reminders, user-to-user e-mail, and e-mail notifications) if sending mail doesn't work on your server.

User-to-user e-mail: Enabled Disabled The user-to-user e-mail feature (Special:Emailuser) lets the wiki act as a relay to allow users to exchange e-mail without publicly advertising their e-mail address.

E-mail notification about changes: Disabled Enabled for changes to user discussion pages only Enabled for changes to user discussion pages, and to pages on watchlists (not recommended for large wikis) For this feature to work, an e-mail address must be present for the user account, and the notification options in the user's preferences must be enabled. Also note the authentication option below. When testing the feature, keep in mind that your own changes will never trigger notifications to be sent to yourself. There are additional options for fine tuning in /includes/DefaultSettings.php; copy these to your LocalSettings.php and edit them there to change them. E-mail address authentication: Disabled Enabled If this option is enabled, users have to confirm their e-mail address using a magic link sent to them whenever they set or change it, and only authenticated e-mail addresses can receive mails from other users and/or change notification mails. Setting this option is recommended for public wikis because of potential abuse of the e-mail features above. Database config

Database type: MySQL PostgreSQL SQLite Database host: If your database server isn't on your web server, enter the name or IP address here.

Database name: DB username:Check username DB password:and password DB password confirm: If you only have a single user account and database available, enter those here. If you have database root access (see below) you can specify new accounts/databases to be created. This account will not be created if it pre-exists. If this is the case, ensure that it has SELECT, INSERT, UPDATE, and DELETE permissions on the MediaWiki database.

Superuser account: Use superuser account Superuser name: Superuser password: If the database user specified above does not exist, or does not have access to create the database (if needed) or tables within it, please check the box and provide details of a superuser account,	such as root, which does.

MySQL specific options Database table prefix: If you need to share one database between multiple wikis, or between MediaWiki and another web application, you may choose to add a prefix to all the table names to avoid conflicts. Avoid exotic characters; something like mw_ is good. Storage Engine Select one: InnoDB MyISAM InnoDB is best for public web installations, since it has good concurrency support. MyISAM may be faster in single-user installations. MyISAM databases tend to get corrupted more often than InnoDB databases.

Database character set Select one: MySQL 4.1/5.0 binary MySQL 4.1/5.0 UTF-8 MySQL 4.0 backwards-compatible UTF-8 This option is ignored on upgrade, the same character set will be kept.

WARNING: If you use backwards-compatible UTF-8 on MySQL 4.1+, and subsequently back up the database with mysqldump, it may destroy all non-ASCII characters, irreversibly corrupting your backups!.

In binary mode, MediaWiki stores UTF-8 text to the database in binary fields. This is more efficient than MySQL's UTF-8 mode, and allows you to use the full range of Unicode characters. In UTF-8 mode, MySQL will know what character set your data is in, and can present and convert it appropriately, but it won't let you store characters above the Basic Multilingual Plane. --

—Robertfischer 20:56, 14 April 2010 (UTC)