Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/mediawiki/files: postupgrade-1.13-en.txt postinstall-1.13-en.txt
Date: Mon, 29 Sep 2008 06:38:51
Message-Id: E1KkCPA-0005wh-RF@stork.gentoo.org
1 pva 08/09/29 06:38:48
2
3 Added: postupgrade-1.13-en.txt postinstall-1.13-en.txt
4 Log:
5 Version bump, remove old/broken. Should install all files, bug #236411, thank Dan Johnston for report. Dropped access_restrict patch - let administrator decide what to restrict, fixes bug #236872, thank Michael Mair-Keimberger for report.
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
7
8 Revision Changes Path
9 1.1 www-apps/mediawiki/files/postupgrade-1.13-en.txt
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/postupgrade-1.13-en.txt?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/postupgrade-1.13-en.txt?rev=1.1&content-type=text/plain
13
14 Index: postupgrade-1.13-en.txt
15 ===================================================================
16 These instructions help you to upgrade your mediawiki installation.
17
18 Please NOTE: at this point it is supposed that you've already read
19 RELEASE-NOTES and done full wiki backup, as described here:
20 http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
21
22
23 Run the update script
24 =====================
25
26 Note: Make sure there's an AdminSettings.php file in the wiki root, and it
27 contains up to date information. The user needs full permissions (shell
28 access) on the database. If there is no AdminSettings.php, create it:
29
30 $ cd ${MY_INSTALLDIR}
31 $ cp AdminSettings.sample AdminSettings.php
32
33 Now edit AdminSettings.php.
34
35 The preferred method of performing the update is using the command-line
36 maintenance script, although it is also possible to re-run the web-based
37 installer. To run command-line maintenance script, change to the maintenance
38 directory and execute the update script:
39
40 $ cd ${MY_INSTALLDIR}/maintenance
41 $ php update.php
42
43 MediaWiki will inspect the existing schema and update it to work with the new
44 code, adding tables and columns as needed.
45
46 For alternative ways to upgrade your wiki, please, take a look at:
47 http://www.mediawiki.org/wiki/Manual:Upgrading
48
49
50 Upgrade extensions
51 ==================
52
53 Certain extensions have been updated in order to work with MediaWiki 1.13. Be
54 sure to upgrade to the latest versions of such extensions. You might need to
55 perform manual updates to custom extensions.
56
57
58 Test the update
59 ===============
60
61 Once the upgrade has completed, browse to the wiki and check basics such as
62 viewing and editing pages to ensure things still work as expected.
63
64 Visit Special:Version and check that the version shown is correct.
65
66
67
68 1.1 www-apps/mediawiki/files/postinstall-1.13-en.txt
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/postinstall-1.13-en.txt?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/postinstall-1.13-en.txt?rev=1.1&content-type=text/plain
72
73 Index: postinstall-1.13-en.txt
74 ===================================================================
75 To complete installation you need to proceed the following steps:
76 =================================================================
77
78 1. Temporarily make the MediaWiki config/ directory writable to the user the
79 web server is running as. The quickest way is to make the directory world
80 writable. For example:
81
82 $ cd ${MY_INSTALLDIR}
83 $ chmod a+w config
84
85
86 2. Configure database.
87 a.) If you know the root password on your database, the MediaWiki installation
88 script can create a new database for you.
89
90 b.) If you don't know the root password, MediaWiki still needs database to
91 work with. So, please, read the following link and find solution which suits
92 your needs best:
93
94 http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#Create_a_database
95
96
97 3. Now continue the installation through web browser by accessing the
98 following page:
99
100 lynx http://${VHOST_HOSTNAME}${VHOST_APPDIR}/config/
101
102
103 4. After the setup script has finished running successfully, a file called
104 LocalSettings.php is created in the "config" directory. Move this file to the
105 root wiki directory (${MY_INSTALLDIR}):
106
107 $ mv config/LocalSettings.php .
108
109 Set stringent permissions on the LocalSettings.php file:
110
111 $ chown <webserver-user>:root LocalSettings.php
112 $ chmod 600 LocalSettings.php
113
114 And delete the "config" directory:
115
116 $ rm -rf config
117
118
119 5. Once you have done the above, your wiki should be ready to use!
120
121 http://${VHOST_HOSTNAME}${VHOST_APPDIR}/
122
123
124 Enabling Optional Features and other configuration
125 ==================================================
126
127 Allow images and other files to be uploaded through the wiki
128 ------------------------------------------------------------
129
130 If you wish to enable images and other files to be uploaded through wiki then
131 edit the LocalSettings.php file and set \$wgEnableUploads to 'true':
132
133 \$wgEnableUploads = true;
134
135 Now if MediaWiki was built with the imagemagick USE-flag the directory
136 permissions are correct, otherwise install ImageMagick and adjust permissions
137 on the images directory to allow the web server to write. For example:
138
139 $ chown <webserver-user>:<webserver-group> ${MY_INSTALLDIR}/images
140
141 IMPORTANT: Uploads need to be set up properly in order to be secure! For more
142 details take a look at the following page:
143
144 http://www.mediawiki.org/wiki/Manual:$wgEnableUploads
145
146
147 Math Support
148 ------------
149
150 If you wish to enable the math support then you need to build MediaWiki with
151 'math' USE-flag enabled or required support executable will no be present.
152 After you've installed MediaWiki with math USE-flag enabled edit
153 LocalSettings.php file to set the \$wgUseTeX to 'true':
154
155 \$wgUseTeX = true;
156
157
158 Other
159 -----
160
161 For other tweaks, continue with the following:
162 http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#See_also