Extension:AzureSDK
From MediaWiki.org
(Redirected from Extension:AzureStorage)
|
AzureSDK Release status: stable |
|
|---|---|
| Description | This plugin provides extensions with the ability to use the Windows Azure SDK for PHP. |
| Author(s) | Microsoft |
| Last version | 0.3.1 |
| MediaWiki | 1.21 |
| License | No license specified |
| Download | |
| Check usage and version matrix | |
This extension provides the Windows Azure SDK for PHP. This needed to be installed if you want MediaWiki to use Azure as its file backend.
Installation [edit]
Setting up the Azure SDK [edit]
- Download the extension into your MediaWiki extensions folder.
- Add the following line add the end of LocalSettings.php.
require_once( "$IP/extensions/AzureSDK/AzureSDK.php" );
Setting up an Azure file backend (optional) [edit]
If you want your wiki to use an Azure file backend, you will also have to append the following to your LocalSettings.php.
$wgFileBackends[] = array( 'name' => 'localAzure', 'class' => 'AzureFileBackend', '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;