Mediawiki Update Version 1.17.0 vers 1.18.0
L'installation initiale de MediaWiki a été faite à l'aide de la commande aptitude
. Or aucune mise à jour n'a été réalisée automatiquement. Cette procédure décrit la montée de version réalisée manuellement sur la machine. La mise à jour est similaire au passage sous la version 1.17.0, l'analyse des fichiers n'est donc pas reproduite.
Sommaire
Votre avis
Nobody voted on this yet
|
|
Installation nouvelle version
Le fichier mediawiki-1.18.0.tar.gz
est téléchargé, depuis http://www.mediawiki.org/wiki/Download, et placé dans le répertoire /usr/share
. La décompression de ce tar va créé les fichiers à installer juste à côté de l'installation active:
#cd /usr/share #sudo tar -xzf mediawiki-1.18.0.tar.gz #sudo chown -R www-data:www-data /usr/share/mediawiki-1.18.0
Mise en place instance
Une fois déployée, une nouvelle instance est mise en place à l'aide des liens comme cela a été réalisé pour la précédente version. Mais il faut noter le fichier OBSOLETE
dans le répertoire config
, sur lequel le lien sera quand même mis en place. Le répertoire maintenance
ne sera pas lié, car il contient les fichiers de mise à jour non nécessaire au bon fonctionnement.
Les répertoires suivants sont copiés depuis la précédente installation:
- extensions: Contient les extensions installés
- images: Contient les images précédemment mises en place sur la précédente version.
#sudo mkdir /var/lib/mediawiki-1.18.0 #sudo cp -R /var/lib/mediawiki-1.17.0/extensions /var/lib/mediawiki-1.18.0 #sudo cp -R /var/lib/mediawiki-1.17.0/images /var/lib/mediawiki-1.18.0 #sudo ln -s /etc/mediawiki/AdminSettings.php /var/lib/mediawiki-1.18.0/AdminSettings.php #sudo ln -s /etc/mediawiki/LocalSettings.php /var/lib/mediawiki-1.18.0/LocalSettings.php #sudo ln -s /usr/share/mediawiki-1.18.0/api.php /var/lib/mediawiki-1.18.0/api.php #sudo ln -s /usr/share/mediawiki-1.18.0/api.php5 /var/lib/mediawiki-1.18.0/api.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/bin /var/lib/mediawiki-1.18.0/bin #sudo ln -s /usr/share/mediawiki-1.18.0/cache /var/lib/mediawiki-1.18.0/cache #sudo ln -s /usr/share/mediawiki-1.18.0/img_auth.php /var/lib/mediawiki-1.18.0/img_auth.php #sudo ln -s /usr/share/mediawiki-1.18.0/img_auth.php5 /var/lib/mediawiki-1.18.0/img_auth.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/includes /var/lib/mediawiki-1.18.0/includes #sudo ln -s /usr/share/mediawiki-1.18.0/index.php /var/lib/mediawiki-1.18.0/index.php #sudo ln -s /usr/share/mediawiki-1.18.0/index.php5 /var/lib/mediawiki-1.18.0/index.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/languages /var/lib/mediawiki-1.18.0/languages #sudo ln -s /usr/share/mediawiki-1.18.0/load.php /var/lib/mediawiki-1.18.0/load.php #sudo ln -s /usr/share/mediawiki-1.18.0/load.php5 /var/lib/mediawiki-1.18.0/load.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/mw-config /var/lib/mediawiki-1.18.0/mw-config #sudo ln -s /usr/share/mediawiki-1.18.0/opensearch_desc.php /var/lib/mediawiki-1.18.0/opensearch_desc.php #sudo ln -s /usr/share/mediawiki-1.18.0/opensearch_desc.php5 /var/lib/mediawiki-1.18.0/opensearch_desc.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/profileinfo.php /var/lib/mediawiki-1.18.0/profileinfo.php #sudo ln -s /usr/share/mediawiki-1.18.0/redirect.php /var/lib/mediawiki-1.18.0/redirect.php #sudo ln -s /usr/share/mediawiki-1.18.0/redirect.php5 /var/lib/mediawiki-1.18.0/redirect.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/redirect.phtml /var/lib/mediawiki-1.18.0/redirect.phtml #sudo ln -s /usr/share/mediawiki-1.18.0/resources /var/lib/mediawiki-1.18.0/resources #sudo ln -s /usr/share/mediawiki-1.18.0/serialized /var/lib/mediawiki-1.18.0/serialized #sudo ln -s /usr/share/mediawiki-1.18.0/skins /var/lib/mediawiki-1.18.0/skins #sudo ln -s /usr/share/mediawiki-1.18.0/StartProfiler.sample /var/lib/mediawiki-1.18.0/StartProfiler.sample #sudo ln -s /usr/share/mediawiki-1.18.0/thumb.php /var/lib/mediawiki-1.18.0/thumb.php #sudo ln -s /usr/share/mediawiki-1.18.0/thumb.php5 /var/lib/mediawiki-1.18.0/thumb.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/trackback.php /var/lib/mediawiki-1.18.0/trackback.php #sudo ln -s /usr/share/mediawiki-1.18.0/trackback.php5 /var/lib/mediawiki-1.18.0/trackback.php5 #sudo ln -s /usr/share/mediawiki-1.18.0/wiki.phtml /var/lib/mediawiki-1.18.0/wiki.phtml
Contrairement à la version 1.17.0, des plugins sont disponibles dans le répertoire extensions
. Des liens sont donc placés:
#sudo ln -s /usr/share/mediawiki-1.18.0/extensions/ConfirmEdit /var/lib/mediawiki-1.18.0/extensions/ConfirmEdit #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/Gadgets /var/lib/mediawiki-1.18.0/extensions/Gadgets #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/Nuke /var/lib/mediawiki-1.18.0/extensions/Nuke #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/ParserFunctions /var/lib/mediawiki-1.18.0/extensions/ParserFunctions #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/Renameuser /var/lib/mediawiki-1.18.0/extensions/Renameuser #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/Vector /var/lib/mediawiki-1.18.0/extensions/Vector #sudo ln -s /usr/share/mediawiki-1.18.0/extensions/WikiEditor /var/lib/mediawiki-1.18.0/extensions/WikiEditor
A noter, le plugin ParserFunctions
avait déjà été installé sur la précédente version. La mise ne place du lien vient remplacée l'installation précédente.
Mise à jour de la base de données
Les exemples d'exécution montre la nécessité d'avoir les droits d'accès suivants sur la base de données, dans le cas de MySql:
- create: Pour la création de nouvelles tables.
- alter: Pour la mise à jour de tables existantes.
- index: Pour la création de nouveaux index.
En supposant que le compte utilisé est wikiuser
, et la base de données wikidb
, les trois requêtes SQL doivent être exécutées. En effet, après la précédente installation les droits avaient été supprimés:
mysql> GRANT CREATE ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALTER ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT INDEX ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 ROWS affected (0.00 sec)
La mise à jour s'effectue par l'exécution du script update.php
, situé dans le répertoire maintenance
de l'installation:
#cd /usr/lib/mediawiki-1.18.0/maintenance #php update.php A copy of your installation's LocalSettings.php must exist and be readable in the source directory. Use --conf to specify it.
Le message d'erreur est suffisamment clair, le fichier LocalSettings.php
n'est pas trouvé. Celui-ci est nécessaire car il contient les informations de connexion à la base de données par exemple.
#php update.php --conf /etc/mediawiki/LocalSettings.php PHP Fatal error: Cannot redeclare class SiteConfiguration in /usr/share/mediawiki-1.17.0/includes/SiteConfiguration.php on line 18
Sur cette tentative, le message d'erreur indique une erreur de code, mais avec un emplacement de fichier vers l'ancienne version installée. Il faut modifier le paramètre MW_INSTALL_PATH
dans le fichier LocalSettings.php
indiquant l'emplacement d'installation.
#define('MW_INSTALL_PATH','/var/lib/mediawiki-1.17.0');
define('MW_INSTALL_PATH','/var/lib/mediawiki-1.18.0');
#php update.php --conf /etc/mediawiki/LocalSettings.php PHP Fatal error: Call to a member function addMessage() on a non-object in /var/lib/mediawiki-1.18.0/extensions/specialdeleteoldrevisions2/SpecialDeleteOldRevisions2.php on line 560
Il semble donc y avoir une incompatibilité du plugin SpecialDeleteOldRevision2 avec la nouvelle version de MediaWiki. Ce plugin est donc désactivé dans un premier temps.
# Extension DeleteOldRevisions
#$wgGroupPermissions['sysop']['DeleteOldRevisions'] = true;
#require_once("$IP/extensions/specialdeleteoldrevisions2/SpecialDeleteOldRevisions2.php");
#php update.php --conf /etc/mediawiki/LocalSettings.php MediaWiki 1.18.0 Updater Going to run database updates for wikidb-ejnwiki_ Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards ...hitcounter table already exists. ...have rc_type field in recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. PHP Warning: require(/var/lib/mediawiki-1.18.0/maintenance/convertLinks.php): failed to open stream: No such file or directory in /usr/share/mediawiki-1.18.0/includes/AutoLoader.php on line 918 PHP Fatal error: require(): Failed opening required '/var/lib/mediawiki-1.18.0/maintenance/convertLinks.php' (include_path='/var/lib/mediawiki-1.18.0:/var/lib/mediawiki-1.18.0/includes: /var/lib/mediawiki-1.18.0/languages:.:/usr/share/php:/usr/share/pear') in /usr/share/mediawiki-1.18.0/includes/AutoLoader.php on line 918
A cette tentative, il apparait l'absence du fichier /var/lib/mediawiki-1.18.0/maintenance/convertLinks.php
. En effet, le lien vers le répertoire maintenance
n'avait pas été mis en place. Il est donc rajouté:
#sudo ln -s /usr/share/mediawiki-1.18.0/maintenance /var/lib/mediawiki-1.18.0/maintenance
#php update.php --conf /etc/mediawiki/LocalSettings.php MediaWiki 1.18.0 Updater Going to run database updates for wikidb-ejnwiki_ Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards ...hitcounter table already exists. ...have rc_type field in recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...have pagelinks; skipping old links table updates ...il_from OK ...have rc_ip field in recentchanges table. ...PRIMARY key already set on image table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...have user_token field in user table. ...have wl_notificationtimestamp field in watchlist table. ...watchlist talk page rows already present ...user table does not contain user_emailauthenticationtimestamp field. ...page table already exists. ...have log_params field in logging table. ...logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. ...revision table does not contain inverse_timestamp field. ...have rev_text_id field in revision table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have user_email_token field in user table. ...have ar_text_id field in archive table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. ...image table does not contain img_type field. ...already have unique user_name index. ...user_groups table exists and is in current format. ...have ss_total_pages field in site_stats table. ...user_newtalk table already exists. ...transcache table already exists. ...have iw_trans field in interwiki table. ...trackbacks table already exists. ...wl_notificationtimestamp is already nullable. ...times key already set on logging table. ...have ipb_range_start field in ipblocks table. ...no page_random rows needed to be set ...have user_registration field in user table. ...templatelinks table already exists ...externallinks table already exists. ...job table already exists. ...have ss_images field in site_stats table. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...have ipb_anon_only field in ipblocks table. ...rc_ns_usertext key already set on recentchanges table. ...rc_user_text key already set on recentchanges table. ...have user_newpass_time field in user table. ...redirect table already exists. ...querycachetwo table already exists. ...have ipb_enable_autoblock field in ipblocks table. ...index pl_namespace on table pagelinks includes field pl_from ...index tl_namespace on table templatelinks includes field tl_from ...index il_to on table imagelinks includes field il_from ...have rc_old_len field in recentchanges table. ...have user_editcount field in user table. ...page_restrictions table already exists. ...have log_id field in logging table. ...have rev_parent_id field in revision table. ...have pr_id field in page_restrictions table. ...have rev_len field in revision table. ...have rc_deleted field in recentchanges table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have ar_len field in archive table. ...have ipb_block_email field in ipblocks table. ...index cl_sortkey on table categorylinks includes field cl_from ...have oi_metadata field in oldimage table. ...usertext_timestamp key already set on archive table. ...img_usertext_timestamp key already set on image table. ...oi_usertext_timestamp key already set on oldimage table. ...have ar_page_id field in archive table. ...have img_sha1 field in image table. ...protected_titles table already exists. ...have ipb_by_text field in ipblocks table. ...page_props table already exists. ...updatelog table already exists. ...category table already exists. ...category table already populated. ...have ar_parent_id field in archive table. ...have user_last_timestamp field in user_newtalk table. ...rev_parent_id column already populated. ...protected_titles table has correct pt_title encoding. ...have ss_active_users field in site_stats table. ...ss_active_users user count set... ...have ipb_allow_usertalk field in ipblocks table. ...pl_namespace, tl_namespace, il_to indices are already UNIQUE. ...change_tag table already exists. ...tag_summary table already exists. ...valid_tag table already exists. ...user_properties table already exists. ...log_search table already exists. ...have log_user_text field in logging table. ...log_user_text field already populated. ...log_search table already populated. ...l10n_cache table already exists. ...external_user table already exists. ...ls_field_val key already set on log_search table. ...change_tag_rc_tag key already set on change_tag table. ...have rd_interwiki field in redirect table. ...transcache tc_time already converted. ...eu_wiki_id already renamed to eu_local_id. ...*_mime_minor fields are already long enough. ...rev_len column already populated. ...iwlinks table already exists. ...iwl_prefix_title_from key already set on iwlinks table. ...have ul_value field in updatelog table. ...have iw_api field in interwiki table. ...iwl_prefix key doesn't exist. ...iwl_prefix_from_title key doesn't exist. ...have cl_collation field in categorylinks table. ...categorylinks up-to-date. ...collations up-to-date. ...msg_resource table already exists. ...module_deps table already exists. ...ar_page_revid key doesn't exist. ...ar_revid key already set on archive table. ...ll_lang is up-to-date. Making user_last_timestamp nullable... A database query syntax error has occurred. The last attempted database query was: "ALTER TABLE `ejnwiki_user_newtalk` MODIFY user_last_timestamp varbinary(14) NULL default NULL " from within function "DatabaseBase::sourceFile( /usr/share/mediawiki-1.18.0/maintenance/archives/patch-user-newtalk-timestamp-null.sql )". Database returned error "1142: ALTER command denied to user 'wikiuser'@'localhost' for table 'ejnwiki_user_newtalk' (localhost)"
Le message d'erreur indique donc la nécessité du privilège de modification de tables au niveau de la base de données. L'ensemble des privilèges mis en place pour la version 1.17.0 est reproduit afin d'éviter les tentatives:
mysql> GRANT CREATE ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALTER ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT INDEX ON wikidb.* TO 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 ROWS affected (0.00 sec)
#php update.php --conf /etc/mediawiki/LocalSettings.php MediaWiki 1.18.0 Updater Going to run database updates for wikidb-ejnwiki_ Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards ...hitcounter table already exists. ...have rc_type field in recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...have pagelinks; skipping old links table updates ...il_from OK ...have rc_ip field in recentchanges table. ...PRIMARY key already set on image table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...have user_token field in user table. ...have wl_notificationtimestamp field in watchlist table. ...watchlist talk page rows already present ...user table does not contain user_emailauthenticationtimestamp field. ...page table already exists. ...have log_params field in logging table. ...logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. ...revision table does not contain inverse_timestamp field. ...have rev_text_id field in revision table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have user_email_token field in user table. ...have ar_text_id field in archive table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. ...image table does not contain img_type field. ...already have unique user_name index. ...user_groups table exists and is in current format. ...have ss_total_pages field in site_stats table. ...user_newtalk table already exists. ...transcache table already exists. ...have iw_trans field in interwiki table. ...trackbacks table already exists. ...wl_notificationtimestamp is already nullable. ...times key already set on logging table. ...have ipb_range_start field in ipblocks table. ...no page_random rows needed to be set ...have user_registration field in user table. ...templatelinks table already exists ...externallinks table already exists. ...job table already exists. ...have ss_images field in site_stats table. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...have ipb_anon_only field in ipblocks table. ...rc_ns_usertext key already set on recentchanges table. ...rc_user_text key already set on recentchanges table. ...have user_newpass_time field in user table. ...redirect table already exists. ...querycachetwo table already exists. ...have ipb_enable_autoblock field in ipblocks table. ...index pl_namespace on table pagelinks includes field pl_from ...index tl_namespace on table templatelinks includes field tl_from ...index il_to on table imagelinks includes field il_from ...have rc_old_len field in recentchanges table. ...have user_editcount field in user table. ...page_restrictions table already exists. ...have log_id field in logging table. ...have rev_parent_id field in revision table. ...have pr_id field in page_restrictions table. ...have rev_len field in revision table. ...have rc_deleted field in recentchanges table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have ar_len field in archive table. ...have ipb_block_email field in ipblocks table. ...index cl_sortkey on table categorylinks includes field cl_from ...have oi_metadata field in oldimage table. ...usertext_timestamp key already set on archive table. ...img_usertext_timestamp key already set on image table. ...oi_usertext_timestamp key already set on oldimage table. ...have ar_page_id field in archive table. ...have img_sha1 field in image table. ...protected_titles table already exists. ...have ipb_by_text field in ipblocks table. ...page_props table already exists. ...updatelog table already exists. ...category table already exists. ...category table already populated. ...have ar_parent_id field in archive table. ...have user_last_timestamp field in user_newtalk table. ...rev_parent_id column already populated. ...protected_titles table has correct pt_title encoding. ...have ss_active_users field in site_stats table. ...ss_active_users user count set... ...have ipb_allow_usertalk field in ipblocks table. ...pl_namespace, tl_namespace, il_to indices are already UNIQUE. ...change_tag table already exists. ...tag_summary table already exists. ...valid_tag table already exists. ...user_properties table already exists. ...log_search table already exists. ...have log_user_text field in logging table. ...log_user_text field already populated. ...log_search table already populated. ...l10n_cache table already exists. ...external_user table already exists. ...ls_field_val key already set on log_search table. ...change_tag_rc_tag key already set on change_tag table. ...have rd_interwiki field in redirect table. ...transcache tc_time already converted. ...eu_wiki_id already renamed to eu_local_id. ...*_mime_minor fields are already long enough. ...rev_len column already populated. ...iwlinks table already exists. ...iwl_prefix_title_from key already set on iwlinks table. ...have ul_value field in updatelog table. ...have iw_api field in interwiki table. ...iwl_prefix key doesn't exist. ...iwl_prefix_from_title key doesn't exist. ...have cl_collation field in categorylinks table. ...categorylinks up-to-date. ...collations up-to-date. ...msg_resource table already exists. ...module_deps table already exists. ...ar_page_revid key doesn't exist. ...ar_revid key already set on archive table. ...ll_lang is up-to-date. Making user_last_timestamp nullable... done. Adding user_email key to table user... ok Modifying up_property field of table user_properties...ok Creating uploadstash table...ok Creating user_former_groups table...ok Purging caches...done. Checking site_stats row...done. Checking existence of old default messages...done. Fixing protocol-relative entries in the externallinks table... Done, 0 rows updated. Done.
La 6ème tentative a donc été la bonne. Des droits ont été accordés sur le compte d'accès à la base de données. Mais ils ne sont pas nécessaires pour le bon fonctionnement du Wiki. Ils sont donc supprimés:
mysql> REVOKE CREATE ON wikidb.* FROM 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> REVOKE ALTER ON wikidb.* FROM 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> REVOKE INDEX ON wikidb.* FROM 'wikiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 ROWS affected (0.00 sec)
Mise à jour configuration Apache
La base étant mise à jour, il est donc nécessaire de modifier la configuration Apache, voir Publication sous Apache, pour pointer sur la nouvelle instance. Le fichier de configuration se trouve à l'emplacement /etc/mediawiki/apache.conf
est les emplacements sont modifiés ainsi:
# Uncomment this to add an alias.
# This does not work properly with virtual hosts..
Alias /wiki /var/lib/mediawiki-1.18.0
<Directory /var/lib/mediawiki_1.18.0/>
Options +FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>
# some directories must be protected
<Directory /var/lib/mediawiki-1.18.0/config>
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/lib/mediawiki_1.18.0/upload>
Options -FollowSymLinks
AllowOverride None
</Directory>
Sécurité des fichiers
Pour un peu plus de sécurité sur le serveur, les droits d'accès sur les fichiers installés sont modifiés ainsi:
#sudo chown -R www-data:www-data /var/lib/mediawiki-1.18.0
Lien maintenance
Le lien vers le répertoire maintenance
a été mis en place. Cependant, pour éviter d'exposer ces fichiers, le lien est cassé après la mise à jour.
#sudo rm /var/lib/mediawiki-1.18.0/maintenance