What is MediaWiki?
MediaWiki is basically a software by wiki which is totally free and open-source. It currently runs on many famous websites such as Wikipedia, Wiktionary and Wikimedia Commons. MediaWiki is written in PHP. Its function is to store the contents in a database. Of course, you'll need VPS or dedicated server hosting to complete these instructions.
#1:When you are installing Mediawiki then you will be asked for the database credentials. So, you have got to build a database for Mediawiki before it gets installed.
- In cPanel, under the section of Database, find the MySQL Databases option and then click on it.
- Under Create New Database, write a name against the New Database option. You can use any name of your choice.
- Once cPanel has completed setting up the database, you will have to return to the MySQL Database window. In this window, scroll down and under the MySQL Users area, fill the required information. Once you have successfully filled all the required information, you will have to click on the button present at the bottom that reads Create User.
- Once again you will have to navigate to the section, i.e., Add User to Database. You will see drop down menus under the User and the Database section. You need to select the user and database.
- Once you click on the Add button you will be presented with a new window showing lots of checkboxes. You need to click on All Privileges to select all the checkboxes. Once you have done this, click on the button the reads Make Changes. Clicking on this button completes this step.
#2: This step will require a File Manager tool or an FTP client. You have to download MediaWiki from this link https://www.mediawiki.org/wiki/Downloadand then upload it to your account using any of the two.
#3: Once you are done extracting the files, you have to open that folder in which you have extracted the files. You can directly access that folder by typing www.yourdomainname.com/foldername where “yourdomainname” and “foldername” are to be replaced by the actual names of your domain and the folder in which the files were extracted respectively.
#4: Once you have done this, you will be presented on a page. Look for the “set up the wiki” blue link on the page and click on it. Doing this will open the installation wizard.
#5: The first step is selecting “Your language” and “WIki Language”. After selecting your preferred language click on the “Continue” button.
#6: Some “Environmental Checks” will be done in the next step. You have to disregard the warnings if any. As they will not affect the installation. You will also see some “Copyright and Terms” at the bottom. Be sure to go through them once. Once done, click on the “Continue” button at the bottom.
#7: The next step will require some database configuration. Under “Database type” select MySQL. Then write “localhost” under Database host. Then you have to go to fill the rest of the information according to the database that you created in the first step of this tutorial. Click on the “Continue” button once you have successfully entered all the correct information.
#8: In the next step you will be given some Database settings. Keeping the default setting is recommended here. However, you are free to make a choice of yours. Once done, click on the “Continue” button.
#9: In the next step you will have to configure your wiki. You have got to fill the fields presented to you according to your choice. If you wish to make some more configuration then feel free to choose the “Ask me more questions option”. Or you can just click on the “I am bored already, just install the wiki” option to complete the installation.
#10: Once you are done configuring click on the “Continue” button at the bottom. A warning message will appear with two options at the bottom. If you wish to make some more changes click on “Back” or click on “Continue” to begin the installation.
#11: Once the installation is complete, click on the “Continue” button. You will be presented with a page congratulating you on the successful installation.
#12: You will also see an option to download the “LocalSetting.php” file. This file contains all the configuration that you just made. You have to download it and then upload it to the MediaWiki installation folder.
You can visit your MediaWiki site after placing localsettings.php file using this link
That’s all for this tutorial. We hope our article helped you. If you're looking for web hosting, we have reviews to help you choose a good quality web hosting services.