Server rental store

Plugin Management

# Plugin Management

This article details the process of managing plugins (extensions) on our MediaWiki 1.40 installation. Proper plugin management is critical for maintaining a stable, secure, and feature-rich wiki. This guide is intended for newcomers to server administration tasks on this platform.

Understanding MediaWiki Plugins (Extensions)

MediaWiki's functionality is greatly extended through the use of plugins, officially called extensions. These are PHP scripts that add features like improved editing tools, new special pages, or integration with external services. Incorrectly installed or configured extensions can lead to site instability or security vulnerabilities. Therefore, a methodical approach to plugin management is essential. Refer to the configuration settings page for more general information.

Plugin Installation

The installation process generally involves these steps:

1. **Download the Extension:** Obtain the extension package from the MediaWiki extensions repository. Ensure the extension is compatible with MediaWiki 1.40. 2. **Upload the Extension Files:** Using SFTP or SSH, upload the extracted extension directory to the `extensions/` directory on the server. The full path is typically `/var/www/html/extensions/` but can vary based on your server setup. See How to install an extension for detailed instructions. 3. **Configure `LocalSettings.php`:** Edit the `LocalSettings.php` file (located in the main MediaWiki directory) to enable the extension. Add the following line, replacing `ExtensionName` with the actual directory name of the extension:

```php wfLoadExtension( 'ExtensionName' ); ``` Consult the extension's documentation for any additional configuration settings that need to be added to `LocalSettings.php`. 4. **Run `update.php`:** After modifying `LocalSettings.php`, run the `update.php` script (accessible via your web browser, e.g., `https://yourwiki.com/update.php`) to update the MediaWiki database schema and install any necessary database tables. This is a *crucial* step.

Important Configuration Details

Here's a table summarizing essential server details relevant to plugin management:

Parameter Value Description
Web Server Apache 2.4 The web server hosting the wiki.
PHP Version 7.4 The PHP version used by MediaWiki.
Database MariaDB 10.5 The database system storing wiki content.
MediaWiki Version 1.40 The current version of MediaWiki.
PHP Memory Limit 256M The maximum amount of memory PHP scripts can use. Increase if errors occur during plugin updates.

Plugin Configuration Options

Many plugins require specific configuration options. These are typically set within the `LocalSettings.php` file, or through a special configuration page accessible within the wiki itself (often a Special: page, like Special:Configure. Always refer to the plugin's documentation for detailed instructions.

Here's a sample table illustrating common configuration variables:

Variable Name Description Example Value
`$wgEnableEmail` Enables or disables email functionality. `true`
`$wgSMTPPort` The port for the SMTP server. `587`
`$wgUploadDirectory` Specifies the directory for uploaded files. `/var/www/html/images`
`$wgRateLimits` Controls rate limits for actions like editing and creating pages. `[ 'default' => [ 'actions' => 'edit,create', 'threshold' => 10, 'period' => 60 ] ]`

Plugin Updates and Removal

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️