Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

PHP 7.3 Is Now Available On Cloudways. Try Now!

How To Install Mediawiki on Cloud

May 22, 2019

5 Min Read
Reading Time: 5 minutes

Note: Cloudways has removed MediaWiki from 1-click installation. You can follow the below-mentioned process to install MediaWiki

MediaWiki provides tailor-made solution for presenting the information about your product, biography, history and anything which you can read and publicly share. It powers the Wikipedia website and helps in organizing the data of almost everything on the website. It is powerful, multilingual, customizable, and absolutely free of cost.

Once you complete the documentation on MediaWiki, you must host it on the live server for making it available publically. You can use shared, VPS or cloud hosting to install MediaWiki websites, but I personally do not recommend shared hosting for deploying a MediaWiki website. The reason is that you can face frequent downtimes and server errors due to which, your information will not be visible to the public most of the time. I always recommend small cloud servers like DigitalOcean, Linode, Vultr etc. to host MediaWiki websites.

With VPS, you must follow a series of steps to create web stacks. Moreover, you need to perform additional steps to configure and customize the whole MediaWiki setup, which generally takes a lot of time and cost.

To avoid all the hassles, you can use Cloudways PHP server host which can easily launch custom PHP applications in 1-click and provides hassle-free MediaWiki installation for all.

Why Choose Cloudways To Host MediaWiki

Hosting your MediaWiki-based website on VPS can be daunting, extensive and time consuming, if you are not technically sound.

It requires you to cover a lot of details before you can successfully install the website. However, Cloudways takes care of the whole process of deploying your website on the cloud infrastructure of your choice. Here are some of the most prominent benefits of using Cloudways:

  • Optimized stack
  • Unlimited staging URLs
  • SSL, SSH, Git client, Cron Job managers
  • CloudwaysCDN
  • Real-time server monitoring
  • Server scaling
  • Automated backups
  • 24×7 support and server management
  • Cache technologies
  • Free migration

Prerequisites

If you want to know how to install MediaWiki websites on Cloudways, you must know little about these requirements first:

  1. PHP 7.0.13+
  2. MySQL 5..5.8 or MariaDB 5.1+
  3. Libraries : SPL, OpenSSL, JSON, mbstring, fileinfo.
  4. Cloudways Account
  5. Custom PHP application

Luckily, Cloudways has already provided all the requirements for MediaWiki installation process. You just have to create an account and launch server with custom PHP application.

MediaWiki Installation on Cloudways

Using Cloudways, you can launch server on any of the five providers including Amazon, GCE, DigitalOcean, Linode and Vultr. Once you sign up, you get 3-day FREE trial on every server to test out your MediaWiki application. The offer gives you the opportunity to get familiar with the platform and test out new features.

Launch Custom PHP Application

After you sign-up, you can launch custom PHP application on any cloud provider available. Provide the name of application and server, and select the project on which you want to launch it.

Select Server Size

After you’ve selected your desired cloud infrastructure, choose the server size based on the traffic of your MediaWiki website – you can scale it later when the need arises.

Select Your Server Location

Next, select the location of your server. You can choose a datacenter that is nearest to your audience or home country.

Once you’ve filled the mandatory fields, click the “Launch Now” button.  Wait for a while, until the server launches. Next, login to the SSH terminal using Master Credentials.

Now, navigate to your application folder using the following cd command:

cd applications/your_app/public_html

You can download MediaWiki installation files. But, first open the MediaWiki website and copy the URL of zip file on download button.

Now, connect the Filezilla client with Master Credentials and move to your application folder. Here, upload the zip file. You can use drag and drop option as well.

Now, extract the MediaWiki setup folder. It takes some time to complete extraction. For fast process, you can login to the SSH Terminal with Master Credentials and can directly move to the app folder. Now, run the extract command and change the zip file name to “MediaWiki”.

// Extract the zip folder

$ tar xvzf mediawiki-1.32.1.tar.gz

Now after extraction, rename the folder name:

// Rename the file

$ mv mediawiki-1.32.1 mediawiki

Now, open the application by clicking on staging URL in application details page. Add /mediawiki in URL.

http://phpstack-71265-823894.cloudwaysapps.com/mediawiki/

It will show the MediaWiki installation page

Now follow the steps and click on continue button.

  1. Select your wiki language
  2. Make sure the environment is checked and showing the green message to install MediaWiki.
  3. Connect to the database by entering db name, pass and host. You can find them on the apps detail page.
  4. Select database engine, in Cloudways case select innodb.
  5. Now, enter the name of wiki and setup administrator account by entering name, pass and email address.
  6. Your installation is complete but continue the process and setup the user profiles and copyright settings, emails, skins and cache settings.
  7. Now, it will show the final installation page, click on continue to install the MediaWiki app and it will show the status like that:

     8. Click on continue button. You will see the congratulations message and a file will be downloaded called “LocalSettings.php”. You must move this file to the MediaWiki folder where index.php file is saved.

You can move the file using Filezilla easily.

That’s it! You have successfully installed MediaWiki on Cloudways server. Visit the main page using the staging URL with /mediawiki.

Final Words

With Cloudways, you can now launch the servers on top cloud providers in just a few clicks. In this article, you have seen how to install MediaWiki website on Cloudways and upload it to the PHP server. You must know that Cloudways offers multiple versions of PHP including 5.6, 7.0,7.1,7.2 and 7.3. Whenever a server is launched, PHP7.0 is configured on it by default, but you can always upgrade its version from the Settings and Packages tab.

If you still have some more questions regarding the installation of MediaWiki, you can mention your queries in the comments section below.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Launch PHP websites without the worry of Server Management.

Pre-Installed Optimized Stack with Git, Composer & SSH

Shahroze Nawaz

Shahroze is a PHP Community Manager at Cloudways - A Managed PHP Hosting Platform. Besides his work life, he loves movies and travelling. You can email him at shahroze.nawaz@cloudways.com

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!