Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/mediawiki/files: postinstall-1.18-en.txt
Date: Sun, 26 Feb 2012 04:10:45
Message-Id: 20120226041034.8E7C42004B@flycatcher.gentoo.org
1 radhermit 12/02/26 04:10:34
2
3 Added: postinstall-1.18-en.txt
4 Log:
5 Update post install instructions (fixes bugs #405573 and #405575), update php dependencies (fixes bug #401335), and remove depend.php eclass usage.
6
7 (Portage version: 2.2.0_alpha87/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 www-apps/mediawiki/files/postinstall-1.18-en.txt
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/files/postinstall-1.18-en.txt?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/files/postinstall-1.18-en.txt?rev=1.1&content-type=text/plain
14
15 Index: postinstall-1.18-en.txt
16 ===================================================================
17 To complete installation you need to proceed the following steps:
18 =================================================================
19
20 1. Temporarily make the "mw-config" directory writable to the user the web
21 server is running as. The quickest way is to make the directory world
22 writable. For example:
23
24 $ cd ${MY_INSTALLDIR}
25 $ chmod a+w mw-config
26
27
28 2. Configure database.
29 a.) If you know the root password on your database, the MediaWiki installation
30 script can create a new database for you.
31
32 b.) If you don't know the root password, MediaWiki still needs database to
33 work with. So, please, read the following link and find solution which suits
34 your needs best:
35
36 http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#Create_a_database
37
38
39 3. Now continue the installation through web browser by accessing the
40 following page:
41
42 http://${VHOST_HOSTNAME}${VHOST_APPDIR}/mw-config/
43
44
45 4. After the setup script has finished running successfully, a file called
46 LocalSettings.php is created in the "mw-config" directory. Move this file to the
47 root wiki directory (${MY_INSTALLDIR}):
48
49 $ mv mw-config/LocalSettings.php .
50
51 Set stringent permissions on the LocalSettings.php file:
52
53 $ chown <webserver-user>:root LocalSettings.php
54 $ chmod 600 LocalSettings.php
55
56 And delete the "mw-config" directory:
57
58 $ rm -rf mw-config
59
60
61 5. Once you have done the above, your wiki should be ready to use!
62
63 http://${VHOST_HOSTNAME}${VHOST_APPDIR}/
64
65
66 Enabling Optional Features and other configuration
67 ==================================================
68
69 Allow images and other files to be uploaded through the wiki
70 ------------------------------------------------------------
71
72 If you wish to enable images and other files to be uploaded through wiki then
73 edit the LocalSettings.php file and set \$wgEnableUploads to 'true':
74
75 \$wgEnableUploads = true;
76
77 Now if MediaWiki was built with the imagemagick USE-flag the directory
78 permissions are correct, otherwise install ImageMagick and adjust permissions
79 on the images directory to allow the web server to write. For example:
80
81 $ chown <webserver-user>:<webserver-group> ${MY_INSTALLDIR}/images
82
83 IMPORTANT: Uploads need to be set up properly in order to be secure! For more
84 details take a look at the following page:
85
86 http://www.mediawiki.org/wiki/Manual:$wgEnableUploads
87
88
89 Math Support
90 ------------
91
92 Math support has been removed from the core mediawiki package from 1.18.0
93 onwards. See http://www.mediawiki.org/wiki/Extension:Math to enable math
94 support.
95
96
97 Other
98 -----
99
100 For other tweaks, continue with the following:
101 http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#See_also