2010-06-01 18:04:41 +02:00
|
|
|
To complete installation you need to proceed the following steps:
|
|
|
|
=================================================================
|
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
1. Temporarily make the "mw-config" directory writable to the user the web
|
|
|
|
server is running as. The quickest way is to make the directory world
|
2010-06-01 18:04:41 +02:00
|
|
|
writable. For example:
|
|
|
|
|
|
|
|
$ cd ${MY_INSTALLDIR}
|
2013-04-16 08:51:30 +02:00
|
|
|
$ chmod a+w mw-config
|
2010-06-01 18:04:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
2. Configure database.
|
|
|
|
a.) If you know the root password on your database, the MediaWiki installation
|
|
|
|
script can create a new database for you.
|
|
|
|
|
|
|
|
b.) If you don't know the root password, MediaWiki still needs database to
|
|
|
|
work with. So, please, read the following link and find solution which suits
|
|
|
|
your needs best:
|
|
|
|
|
|
|
|
http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#Create_a_database
|
|
|
|
|
|
|
|
|
|
|
|
3. Now continue the installation through web browser by accessing the
|
|
|
|
following page:
|
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
http://${VHOST_HOSTNAME}${VHOST_APPDIR}/mw-config/
|
2010-06-01 18:04:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
4. After the setup script has finished running successfully, a file called
|
2013-04-16 08:51:30 +02:00
|
|
|
LocalSettings.php is created in the "mw-config" directory. Move this file to the
|
2010-06-01 18:04:41 +02:00
|
|
|
root wiki directory (${MY_INSTALLDIR}):
|
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
$ mv mw-config/LocalSettings.php .
|
2010-06-01 18:04:41 +02:00
|
|
|
|
|
|
|
Set stringent permissions on the LocalSettings.php file:
|
|
|
|
|
|
|
|
$ chown <webserver-user>:root LocalSettings.php
|
|
|
|
$ chmod 600 LocalSettings.php
|
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
And delete the "mw-config" directory:
|
2010-06-01 18:04:41 +02:00
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
$ rm -rf mw-config
|
2010-06-01 18:04:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
5. Once you have done the above, your wiki should be ready to use!
|
|
|
|
|
|
|
|
http://${VHOST_HOSTNAME}${VHOST_APPDIR}/
|
|
|
|
|
|
|
|
|
|
|
|
Enabling Optional Features and other configuration
|
|
|
|
==================================================
|
|
|
|
|
|
|
|
Allow images and other files to be uploaded through the wiki
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
If you wish to enable images and other files to be uploaded through wiki then
|
|
|
|
edit the LocalSettings.php file and set \$wgEnableUploads to 'true':
|
|
|
|
|
|
|
|
\$wgEnableUploads = true;
|
|
|
|
|
|
|
|
Now if MediaWiki was built with the imagemagick USE-flag the directory
|
|
|
|
permissions are correct, otherwise install ImageMagick and adjust permissions
|
|
|
|
on the images directory to allow the web server to write. For example:
|
|
|
|
|
|
|
|
$ chown <webserver-user>:<webserver-group> ${MY_INSTALLDIR}/images
|
|
|
|
|
|
|
|
IMPORTANT: Uploads need to be set up properly in order to be secure! For more
|
|
|
|
details take a look at the following page:
|
|
|
|
|
|
|
|
http://www.mediawiki.org/wiki/Manual:$wgEnableUploads
|
|
|
|
|
|
|
|
|
|
|
|
Math Support
|
|
|
|
------------
|
|
|
|
|
2013-04-16 08:51:30 +02:00
|
|
|
Math support has been removed from the core mediawiki package from 1.18.0
|
|
|
|
onwards. See http://www.mediawiki.org/wiki/Extension:Math to enable math
|
|
|
|
support.
|
2010-06-01 18:04:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
Other
|
|
|
|
-----
|
|
|
|
|
|
|
|
For other tweaks, continue with the following:
|
|
|
|
http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#See_also
|