GoAdmio
GoAdmio Documentation

MediaWiki

From the GoAdmio knowledge base.

MediaWiki

This page explains the MediaWiki one-click installer in GoAdmio. It lets you install a complete MediaWiki wiki on a domain in a single step — no manual file upload, no database setup, no configuration.

Location: Admin Panel → Scripts → MediaWiki
Location (User Panel): Scripts → MediaWiki (if enabled for the account)



Overview

MediaWiki is a free, open-source wiki software — the platform that powers Wikipedia and thousands of other wikis. It is designed for collaborative documentation, knowledge bases, and community-edited content.

GoAdmio's one-click installer handles the entire setup:

  • Downloads the latest MediaWiki release
  • Creates the database and database user
  • Configures MediaWiki's LocalSettings.php with the correct credentials
  • Installs MediaWiki in the chosen directory
  • Runs the installation wizard (wiki name, admin user, admin password)
The result is a fully working wiki, ready for content.

> Note: The one-click installer is for new installations. For migrating an existing MediaWiki wiki, use Backup Wizard or restore from a MediaWiki backup.



What the Page Shows

| Field | Description |
|---|---|
| Domain | The domain to install MediaWiki on (e.g., example.com) |
| Directory | The installation path (e.g., /home/example.com/www) |
| Version | The MediaWiki version to install (e.g., Latest Version) |
| Database Name | The database to use — prefixed with the account username |
| Database Username | The database user — prefixed with the account username |
| Database Password | The password for the database user — you must enter a new password |
| Install | Run the installation |

> Important: The Database Password field does not auto-generate. You must enter a new password for the new database. Choose a strong password and store it securely.



Prerequisites

Before installing MediaWiki:

  1. A domain is set up on the account — see Create New Account or Addon Domains.
  2. DNS points to the server — the domain resolves to the GoAdmio server. See DNS Manager and Track DNS.
  3. The document root exists — usually www/<domain> — see Change Document Root.
  4. The domain is not suspended — see Suspend Account.
  5. The account has disk space and database limits — see Show Accounts Over Quota and Add/Modify Packages.
  6. PHP and MySQL are running — see Service Status.
  7. PHP version is compatible — MediaWiki 1.39+ requires PHP 7.4+; newer versions require PHP 8.x. See MultiPHP Manager.
> Tip: MediaWiki benefits from adequate PHP memory. Ensure memory_limit is at least 256M — see PHP Configuration. Large wikis may need more.

How to Install MediaWiki

Step 1 — Open the installer

  1. Log in to the GoAdmio Admin Panel (or User Panel).
  2. Navigate to Scripts → MediaWiki.

Step 2 — Select the domain

  1. Choose the Domain from the dropdown.
  2. The Directory field auto-fills with the account's document root.
  3. Adjust the directory if you want MediaWiki in a subdirectory (e.g., /home/example.com/www/wiki).

Step 3 — Choose the version

  1. Select the Version — usually Latest Version.
  2. If other versions are available, choose the one you need.
> Tip: Always use the latest version — it includes security fixes and performance improvements. Older versions are not recommended for new wikis.

Step 4 — Configure the database

  1. The Database Name and Database Username are pre-filled with the account's username prefix.
  2. Add a suffix if you want a specific name (e.g., wiki), or leave the default.
  3. Enter a new password in the Database Password field.
- Use a strong password — the installer does not generate one. - Store the password in a password manager.

> Warning: The database password is not auto-generated. If you leave it blank or use a weak password, the database is at risk. Use a strong password and save it immediately.

Step 5 — Install

  1. Click Install.
  2. GoAdmio downloads MediaWiki, creates the database, and installs the files.
  3. The installation may take a minute or two.
  4. When complete, GoAdmio shows the MediaWiki installation wizard or a link to it.

Step 6 — Complete the MediaWiki setup

  1. Open the installation wizard at https://<domain>/mw-config/ (or the URL shown).
  2. Language — choose the wiki language.
  3. Welcome — review the setup steps.
  4. Connect to the database — verify the pre-filled credentials.
  5. Name the wiki — enter the wiki name and admin username.
  6. Admin user — set a strong admin password and email.
  7. Options — configure metadata, licensing, and caching.
  8. Install — run the installation.
  9. Download LocalSettings.php — the installer provides the config file. Save it to the wiki directory (e.g., /home/example.com/www/LocalSettings.php).
  10. Delete the mw-config directory — MediaWiki requires this for security.
  11. Log in at https://<domain>/index.php/Special:UserLogin with the credentials you set.
> Tip: The MediaWiki admin username is not the same as the hosting account username. Choose a distinct, non-obvious admin username to reduce brute-force risk.

What the Installer Creates

| Item | Created? | Notes |
|---|---|---|
| MediaWiki files | ✅ Yes | In the chosen directory |
| Database | ✅ Yes | With the account's username prefix |
| Database user | ✅ Yes | With the account's username prefix |
| LocalSettings.php | ⚠️ Download | The installer provides it; you must save it to the wiki directory |
| MediaWiki admin user | ⚠️ Via the wizard | You set it in step 6 |
| Wiki name | ⚠️ Via the wizard | You set it in step 6 |
| SSL certificate | ❌ No | Install separately — see Install Free SSL Certificate |
| Caching | ⚠️ Depends | MediaWiki supports object caching (Redis, Memcached) and file caching |
| Security extensions | ❌ No | Recommended: ConfirmEdit (CAPTCHA), SpamBlacklist |

> Important: MediaWiki is unique — the installer does not write LocalSettings.php automatically. You must download it from the wizard and upload it to the wiki directory. Without it, the wiki will not work.

> Note: The installer creates a working wiki, but a production MediaWiki site also benefits from:
> - SSL — see Install Free SSL Certificate
> - Caching — MediaWiki's object cache or file cache
> - Anti-spam extensions — ConfirmEdit, SpamBlacklist
> - Backups — see Backup Wizard



After Installing

| Task | Why |
|---|---|
| Download and save LocalSettings.php | Required — the wiki will not work without it |
| Delete the mw-config directory | Critical security step |
| Log in to the wiki | Confirm the wiki works — /index.php/Special:UserLogin |
| Install an SSL certificate | HTTPS is essential — see Install Free SSL Certificate |
| Redirect HTTP to HTTPS | See Redirect HTTP to HTTPS |
| Configure email | MediaWiki sends password resets and notifications — see Email Accounts |
| Enable caching | Configuration → Performance in LocalSettings.php |
| Install anti-spam extensions | Wikis are spam targets — ConfirmEdit, SpamBlacklist |
| Set up backups | Wikis need regular backups — see Backup Wizard |
| Update MediaWiki and extensions | Security and performance |
| Configure pretty URLs | SEO-friendly URLs — see the MediaWiki manual |

> Warning: The mw-config directory must be deleted after installation. Leaving it in place is a serious security risk — an attacker can reinstall MediaWiki and take over the wiki.



Common Scenarios

"The installation succeeded but the wiki does not load"

  1. Check that LocalSettings.php is saved in the wiki directory — this is the most common issue with MediaWiki.
  2. Check DNS — does the domain resolve to the server? See Track DNS.
  3. Check the web server — is it running? See Service Status.
  4. Check the SSL certificate — if HTTPS is enforced but no certificate, the site will not load.

"The wiki says 'LocalSettings.php not found'"

The installer did not save LocalSettings.php to the wiki directory.

  1. Re-run the wizard, or
  2. Download LocalSettings.php from the wizard's final page.
  3. Upload it to the wiki directory via File Manager.
  4. Confirm the file is at the same level as index.php.

"The installation fails with a database error"

  1. Check the database password — it must be filled in.
  2. Check the database limit — the account may have reached its database quota. See Add/Modify Packages.
  3. Check MySQL — is it running? See Service Status.
  4. Check disk space — the account may be over quota. See Show Accounts Over Quota.

"MediaWiki email is not working"

MediaWiki uses PHP's mail() function by default, which is often unreliable. Configure SMTP instead:

  1. Create a mailbox — see Email Accounts.
  2. Edit LocalSettings.php and add:
```php $wgSMTP = [ 'host' => 'mail.example.com', 'port' => 587, 'auth' => true, 'username' => 'wiki@example.com', 'password' => 'your-mailbox-password', ];
↑