• Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
  • Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
home/Knowledge Base/Web Servers/Install MediaWiki on the One-Click LEMP Application
Popular Search:Dedicated Server, CentOS, Web Hosting

Install MediaWiki on the One-Click LEMP Application

21 views 0 December 27, 2019 aklwebhost

Introduction

MediaWiki is a popular open-source wiki software package. In this article, we will show you how to install MediaWiki on a AKLWEB Host server based on the One-Click LEMP application.

Prerequisites

We assume that you have deployed a One-Click LEMP AKLWEB Host server instance from scratch and have logged in as root. Non-root users will need to use the sudo command.

Step one: Create a database

By default, the MySQL root password is saved on the VPS in /root/.my.cnf. Make it display on the screen with the following command:

cat /root/.my.cnf

Use the credential displayed on the screen to log into MySQL:

mysql -u root -p

Create and configure a database in MySQL with the following commands. Remember to replace the database name mywiki, the user name myusername, and the password mypassword with your own ones.

create database mywiki;
create user 'myusername'@'localhost' identified by 'mypassword';
grant all privileges on *.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;
flush privileges;
exit;

Step two: Download the MediaWiki package

At the time of writing, the latest version of MediaWiki was 1.24.1. Download and unzip the latest MediaWiki package to a user-friendly directory with the following commands:

cd /usr/share/nginx/html
wget http://releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz
tar xvzf mediawiki-1.24.1.tar.gz
mv mediawiki-1.24.1 wiki

Step three: Configure and install MediaWiki from your browser

Note: Before the installation, you need to modify the default access permissions to the directory /var/lib/php/session to 777, or you will encounter a permission error.

chmod 777 /var/lib/php/session

Visit http://[SERVER_IP]/wiki/ in your browser. Substitute the [SERVER_IP] with the IP address of your VPS.

Click the link “set up the wiki” to initialize the installation wizard. Follow the on-screen instructions to configure your MediaWiki.

On the step of “Connect to database”, you need to input database parameters as specified below.

Remember to replace the database name mywiki, the table prefix wk-, the user name myusername, and the password mypassword with your own ones.

Database type: MySQL (or compatible)
Database host: localhost
Database name: mywiki
Database table prefix: wk-
Database username: myusername
Database password: mypassword

On the step of “Name”, you need to specify the name of your wiki and the administrator’s username, password and email address.

All other options can use the default values or be configured later. You can find more details from the MediaWiki official website.

On the final step of “Complete!”, a file named LocalSettings.php will be downloaded to your desktop automatically. If the automatic download went wrong, you can download this file manually by click the link “Download LocalSettings.php”.

Then you need to upload this file to the base of your MediaWiki installation (the same directory as index.php, e.g., /usr/share/nginx/html/wiki). You can use PuTTY or another SSH client to get it done.

That’s it. You have installed MediaWiki onto your AKLWEB Host VPS.

Tags:Install MediaWiki on the One-Click LEMP Application

Was this helpful?

Yes  No
Related Articles
  • Setup Spigot Server on Arch Linux
  • How To Install OSSEC HIDS on a CentOS 7 Server
  • Initial Setup of a CentOS 7 Server
  • Using StrongSwan for IPSec VPN on CentOS 7
  • Hot Backups with Percona XtraBackup on the One-Click WordPress App
  • Installing Rust on Ubuntu 14.04
Leave A Comment Cancel reply

Web Servers
  • Install MediaWiki on the One-Click LEMP Application
  • How To Setup Apache on Windows Server
  • Setting up IIS on Windows Server
  • Setup NGINX, PHP-FPM, and MariaDB on Debian 8
  • Apache Virtual Hosts on Ubuntu 14.04 LTS
  • Install Lighttpd with PHP5 and MySQL (LLMP Stack) on Ubuntu 14.04
View All 37  
Popular Articles
  • Using StrongSwan for IPSec VPN on CentOS 7
  • Disabling SSDP (Linux / Windows)
  • Can I pay by Western Union?
  • Can a Coupon Code Discount Be Carried Forward While I Upgrade My VPS Account
  • Can I pay multiple due invoices using a single transaction?
KB Categories
  • Billing
  • Cloud Hosting
  • CMS Hosting
  • cPanel/WHM Control Panel Guide
  • Dedicated Servers
    • AMD Opteron 6272
    • Arch
    • Backup Storage
    • Bandwidth
    • Basic Security
    • BSD
    • CentOS
    • Containers
    • CoreOS
    • DDoS Protection
    • Debian
    • Dedicated Server Control Panel
    • Intel Core i5 3550
    • Intel Core i5 4570
    • Intel Core i7 3770
    • Intel Core i7 4770
    • Intel Xeon E3 1230 V3
    • Intel Xeon E3 1245 V2
    • IP Space
    • Linux Guides
    • Minecraft
    • Networking
    • Server Apps
    • Server Troubleshooting
    • Ubuntu
    • Windows Guides
    • Windows Server 2008
    • Windows Server 2012
  • Domain Names
  • Email Support Documentation
    • Setup IMAP or POP
    • User Features – How To
    • Webmail – How To
  • FTP (File Transfer Protocol
    • CuteFTP Guide
    • FileZilla Guide
  • Game Servers
  • MySQL and MariaDB
  • Node.js
  • Plesk Web Hosting Guide
  • VPS Server
  • Web Servers

  Install MariaDB on Ubuntu 14.04

Install MongoDB on CentOS 7  

  • Privacy Policy
  • Terms of Use
  • © 2022 AKLWEB HOST LLC, All Rights Reserved.

Popular Search:Dedicated Server, CentOS, Web Hosting