Release status: stable
|Description||Allows MediaWiki to use Windows Azure as the file backend|
|Author(s)||Thai Phan, Markus Glaser|
|Latest version||1.1.0 (2013-03-31)|
Translate the WindowsAzureStorage extension if possible
|Check usage and version matrix; code metrics|
WindowsAzureStorage enables MediaWiki to store uploaded files to the Windows Azure Storage service.
Requirements[edit | edit source]
This extension needs to have the WindowsAzureSDK extension installed in order to work.
Download[edit | edit source]
You can download the extension directly from the MediaWiki source code repository (browse code). You can get:
- One of the extensions tags
Not all extensions have tags. Some extensions have tags for each release, in which case those tags have the same stability as the release. To download a tag
- Go to the tags list
- Click the name of the tag you want to download
- Click "snapshot"
- The latest version of one of the extensions branches
Each extension has a master branch containing the latest code (might be unstable). Extensions can have further branches as well.
- Go to the branches list
- Click the branch name
- Click "snapshot"
- A snapshot made during the release of a MediaWiki version.
This might be unstable and is not guaranteed to work with the associated MediaWiki version.
After you've got the code, save it into the extensions/WindowsAzureStorage directory of your wiki.
If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows:
cd extensions git clone
Installation[edit | edit source]
To install this extension, you will need to modify your LocalSettings.php.
Activation[edit | edit source]
Add the following line to LocalSettings.php and then check to see if it shows up in Special:Version.
Configuration[edit | edit source]
Add the following to the end of LocalSettings.php to start using your Windows Azure Storage account as the file backend for your wiki. You will need to change your_azure_storage_account and your_azure_storage_account_key to the relevant values.
$wgFileBackends = array( 'name' => 'localAzure', 'class' => 'WindowsAzureFileBackend', 'lockManager' => 'nullLockManager', 'azureAccount' => 'your_azure_storage_account', 'azureKey' => 'your_azure_storage_account_key' ); $wgLocalFileRepo = array ( 'class' => 'LocalRepo', 'name' => 'local', 'backend' => 'localAzure', 'scriptDirUrl' => $wgScriptPath, 'scriptExtension' => $wgScriptExtension, 'url' => $wgScriptPath . '/img_auth.php', 'hashLevels' => 0, 'deletedHashLevels' => 0, 'zones' => array( 'public' => array( 'container' => 'public' ), 'thumb' => array( 'container' => 'thumb' ), 'temp' => array( 'container' => 'temp' ), 'deleted' => array( 'container' => 'deleted' ) ) ); $wgImgAuthPublicTest = false;