MediaWiki

This forum is for all contributions that do not concern directly the making of the distribution.
Could be : artwork, websites development, goodies, advocacy etc.

MediaWiki

Postby isadora » May 14th, '11, 14:38

Today, while swimming in free time, i decided playing around with MediaWiki.
Installation and configuration took some time, but resulted in my first Wiki.
It's only in use now for playing, and maybe i can use it one time to store my documentation.

For those interested, i will give an overview of the procedure i followed to get the Wiki "on air".

Image
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: MediaWiki

Postby isadora » May 14th, '11, 14:55

And following a global overview of the steps to come to my result:

Installing MediaWiki for Mageia.

Software used:

Mageia 1 Beta 2
MediaWiki 1.16.2
PHP 5.3.6
MySQL 5.5.10
Apache 2.2.17
Optional: PHPMyAdmin 3.3.10


Next following the instructions at:
http://www.mediawiki.org/wiki/Manual:Installation_guide

Go into setup by visiting:
http://localhost/mediawiki/index.php

First message after setting up the wiki starts:

MediaWiki 1.16.2 Installation
Can't write config file, aborting

In order to configure the wiki you have to make the config subdirectory writable
by the web server. Once configuration is done you'll move the created
LocalSettings.php to the parent directory, and for added safety you can then
remove the config subdirectory entirely.

To make the directory writable on a Unix/Linux system, need to be root:

cd /usr/share/mediawiki
chmod a+w config


Afterwards retry to start the setup.


After restarting setup, following url follows:
http://localhost/mediawiki/config/index.php
containing environment-information:

Checking environment...

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

PHP 5.3.6 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.
Session save path (/var/lib/php) appears to be valid.
PHP's memory_limit is 128M bytes.
Couldn't find 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.
Found GD graphics library built-in.
Installation directory: /usr/share/mediawiki
Script URI path: /mediawiki
Installing MediaWiki with php file extensions
Environment checked. You can install MediaWiki.


Wiki name: isadora
Contact e-mail: changed root@localhost into ********@********
Admin username: WikiSysop
Password: *********

Database name: wikidb
DB username: wikiuser
DB password: ********

Superuser account: enabled
Superuser name: root
Superuser password: ********

All other options: default

Press button: Install MediaWiki

Error: Attempting to connect to database server as root...failed due to
authentication errors. Check passwords.
(Solution: Leave field Superuser password blank.)
Again: Press button: Install MediaWiki


Followed by:

Checking environment...

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

PHP 5.3.6 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.
Session save path (/var/lib/php) appears to be valid.
PHP's memory_limit is 128M bytes.
Couldn't find 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.
Found GD graphics library built-in.
Installation directory: /usr/share/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 root...success.
Connected to mysql 5.5.10; enabling MySQL 4.1/5.0 charset mode
Attempting to create database...
Created database wikidb
Creating tables... done.
Populating interwiki table... done.
Initializing statistics...
Granting user permissions to wikiuser on wikidb... success.
Created sysop account WikiSysop.

Creating LocalSettings.php...

Installation successful! Move the config/LocalSettings.php file to the
parent directory, then follow this link (1) to your wiki.

You should change file permissions for LocalSettings.php as required to
prevent other users on the server reading passwords and altering configuration
data. (not done)
Have changed permissions for root (user and group) to read and write.


Then, follow link (1) to go to wiki.
Bringing up:
http://localhost/mediawiki/index.php/Main_Page, including following information:

Main Page

MediaWiki has been successfully installed.

Consult the User's Guide for information on using the wiki software.
[edit] Getting started

Configuration settings list
MediaWiki FAQ
MediaWiki release mailing list


And from now on it is time for the real playing around!!!
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: MediaWiki

Postby isadora » May 15th, '11, 00:36

Just saw mediawiki 1.16.5 appear into the Mageia build system.
Try the update later on, thanks boklm.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: MediaWiki

Postby Germ » May 15th, '11, 02:04

You certainly have more free time than I do. :mrgreen:
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 571
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA


Return to Other

Who is online

Users browsing this forum: No registered users and 1 guest

cron