<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Projekt%3AMaintenance</id>
	<title>Projekt:Maintenance - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Projekt%3AMaintenance"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Projekt:Maintenance&amp;action=history"/>
	<updated>2026-04-06T02:38:34Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Projekt:Maintenance&amp;diff=741&amp;oldid=prev</id>
		<title>mw&gt;Oetterer: /* Git */</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Projekt:Maintenance&amp;diff=741&amp;oldid=prev"/>
		<updated>2015-02-23T10:42:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Git&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Update mediawiki core ==&lt;br /&gt;
Remember your file layout looks like this:&lt;br /&gt;
{{code|io|&lt;br /&gt;
drwxr-xr-x  8 www-data www-data 4096 Feb 18 12:43 .git                           // your repository files&lt;br /&gt;
-rw-r--r--  1 www-data www-data  362 Feb 18 12:06 .gitignore                     // ignore files for your repo&lt;br /&gt;
-rw-------  1 www-data www-data   58 Oct 21 17:11 _admin_login.php               // located in this file are the credentials for the local admin login&lt;br /&gt;
drwxr-xr-x  2 www-data www-data 4096 Feb 18 12:06 _config                        // this is where your config files are located&lt;br /&gt;
drwxr-xr-x 51 www-data www-data 4096 Feb 18 12:41 _extensions                    // this is the assortment of available extensions&lt;br /&gt;
drwxr-xr-x  3 www-data www-data 4096 Dec 16 09:58 _images                        // this is your image directory, almost empty after unpacking&lt;br /&gt;
drwxr-xr-x  5 www-data www-data 4096 Feb 17 12:39 _init                          // this is where all starter files and some useful scripts are located&lt;br /&gt;
-rwx------  1 www-data www-data  593 Oct 21 17:11 get_new_version_going          // a small script to initialize a new version (update, not upgrade) of the mediawiki software&lt;br /&gt;
lrwxrwxrwx  1 www-data www-data   16 Feb 18 12:40 mediawiki -&amp;gt; mediawiki-1.23.8  // a symbolic link to the current mediawiki core software&lt;br /&gt;
drwxr-xr-x 12 www-data www-data 4096 Feb 18 12:39 mediawiki-1.23.8               // the current mediawiki core software&lt;br /&gt;
drwxr-xr-x  2 www-data www-data 4096 Oct 23 13:04 php_temp                       // folder for temporary files and session data&lt;br /&gt;
}}&lt;br /&gt;
In this example the core software runs on version 1.23.5. Identify your new version number and execute these to commands (in this example we upgrade to 1.23.42):&lt;br /&gt;
{{code|bash|code=&lt;br /&gt;
wget http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.42.tar.gz&lt;br /&gt;
tar xvzf mediawiki-1.23.42.tar.gz&lt;br /&gt;
}}&lt;br /&gt;
You should have a new directory called &amp;lt;code&amp;gt;mediawiki-1.23.42&amp;lt;/code&amp;gt; in the above listing. Now cd in it and run&lt;br /&gt;
{{code|bash|code=&lt;br /&gt;
../get_new_version_going&lt;br /&gt;
}}&lt;br /&gt;
After that all you have to do is remove the symbolic link pointing to your old core software and create a new one pointing to &amp;lt;code&amp;gt;mediawiki-1.23.42&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{ambox|text=It is recommended setting your wiki to read only during the upgrade. Do this by setting &amp;lt;code&amp;gt;$wgReadOnly=&amp;quot;Upgrading&amp;quot;&amp;lt;/code&amp;gt; or some other string.}}&lt;br /&gt;
&lt;br /&gt;
You should also run update.php after each upgrade:&lt;br /&gt;
{{code|bash|code=&lt;br /&gt;
php mediawiki/maintenance/update.php&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Update extensions ==&lt;br /&gt;
The extensions are located in &amp;lt;code&amp;gt;./_extensions&amp;lt;/code&amp;gt;. Most of them have a directory indicating their version number and a symbolic link pointing to them. Something like:&lt;br /&gt;
{{code|io|code=&lt;br /&gt;
lrwxrwxrwx  1 www-data www-data   16 Oct 12 21:56 ApprovedRevs -&amp;gt; ApprovedRevs.0.7&lt;br /&gt;
drwxr-xr-x  5 www-data www-data 4096 Oct 12 21:54 ApprovedRevs.0.7&lt;br /&gt;
lrwxrwxrwx  1 www-data www-data   19 Aug 22 14:37 Arrays -&amp;gt; Arrays.2.0rc3_alpha&lt;br /&gt;
drwxr-xr-x  3 www-data www-data 4096 Aug 22 14:36 Arrays.2.0rc3_alpha&lt;br /&gt;
}}&lt;br /&gt;
When there is a new version just unpack it here, be sure to include ne new version number in the directory name and let the symbolic link point to the new directory (mind the user and directory rights in the newly downloaded extension and run &amp;lt;code&amp;gt;chown&amp;lt;/code&amp;gt; if needed).&lt;br /&gt;
&lt;br /&gt;
As ususual you should run update.php after each update:&lt;br /&gt;
{{code|bash|code=&lt;br /&gt;
php mediawiki/maintenance/update.php&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Extension w/o version numbers are most likely either installed by composer or downloaded via git:&lt;br /&gt;
=== Composer ===&lt;br /&gt;
Some extensions are installed via [[wpen:composer|composer]]. Namely:&lt;br /&gt;
* lingo&lt;br /&gt;
* semantic-extra-special-properties&lt;br /&gt;
* semantic-glossary&lt;br /&gt;
* semantic-media-wiki&lt;br /&gt;
* semantic-result-formats&lt;br /&gt;
&lt;br /&gt;
You can find an actual overview of all composer installed extensions in the file &amp;lt;code&amp;gt;./mediawiki/composer.json&amp;lt;/code&amp;gt;. With a fresh install of this platform it should look like this:&lt;br /&gt;
{{code|php|code=&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;require&amp;quot;: {&lt;br /&gt;
        &amp;quot;mediawiki/semantic-media-wiki&amp;quot;: &amp;quot;~2.0&amp;quot;,&lt;br /&gt;
        &amp;quot;mediawiki/semantic-extra-special-properties&amp;quot;: &amp;quot;*&amp;quot;,&lt;br /&gt;
        &amp;quot;mediawiki/lingo&amp;quot;: &amp;quot;*&amp;quot;,&lt;br /&gt;
        &amp;quot;mediawiki/semantic-result-formats&amp;quot;: &amp;quot;*&amp;quot;,&lt;br /&gt;
        &amp;quot;mediawiki/semantic-glossary&amp;quot;: &amp;quot;*&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Go to your mw core root directory and hit &amp;lt;code&amp;gt;composer update&amp;lt;/code&amp;gt;. Your composer installed extensions should update automatically.&lt;br /&gt;
{{warning|text=When you hit {{code snippet|lang=bash|code=./mediawiki/composer update}} you have to reapply a small patch to semantic mediawiki core code.&amp;lt;br /&amp;gt;You can find the patch notes in the file {{code snippet|lang=bash|./_extensions/_patched}}.}}&lt;br /&gt;
&lt;br /&gt;
=== Git ===&lt;br /&gt;
To play it safe either note the commit you're running the extension on or backup the directory. Then hit {{code snippet|lang=bash|code=git pull}}.&lt;br /&gt;
&lt;br /&gt;
== Maintenance scripts ==&lt;br /&gt;
You should run them regularely, either by hand or as recommenden by cron:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;mediawiki/maintenance/runJobs.php&amp;lt;/code&amp;gt; to clean the job queue on a daily or hourly basis (please consider specifying a parameter --maxjobs 1000)&lt;br /&gt;
* &amp;lt;code&amp;gt;_extensions/SemanticMediaWiki/maintenance/rebuildData.php&amp;lt;/code&amp;gt; to rebuild the smw store. probably once per week or month so:&lt;br /&gt;
** &amp;lt;code&amp;gt;php rebuildData.php -ftp -d 20&amp;lt;/code&amp;gt;, to clear the store (thus removing false entries) and rebuild the properties and after that a couple of times&lt;br /&gt;
** &amp;lt;code&amp;gt;php rebuildData.php -d 20&amp;lt;/code&amp;gt;, to rebuild the new data&lt;br /&gt;
* &amp;lt;code&amp;gt;_extensions/SemanticGlossary/maintenance/rebuildGlossaryCache.php&amp;lt;/code&amp;gt; to rebuild the semantic glossary cache. probably once per week or month so:&lt;br /&gt;
&lt;br /&gt;
Remember to set an environment variable with the mediawiki working directory:&lt;br /&gt;
{{code|lang=bash|code=&lt;br /&gt;
export MW_INSTALL_PATH=/var/www/&amp;lt;wikiname&amp;gt;/mediawiki&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Clean up session files ===&lt;br /&gt;
You should also clean up all session files, located &amp;lt;code&amp;gt;./php_temp&amp;lt;/code&amp;gt;. Best do this with a cron job.&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>