![]() ![]() When you have completed all steps, you should arrive at this page: Particularly if you have installed XCache before, you will need to check that to enable it. If you want a specific setting enabled for your wiki, you might need to change something on one of these screens. In all the other screens, most, if not all, of the settings can be left untouched. You can also create the admin user for the wiki on this page. In the next screen, you will need to fill in the details of your wiki, like its name. In the screen after the MySQL settings, the values can be left at their defaults. We used my_wiki for the database name, sammy for the username, and badpassword for the password. The database name, username, and password will be the values you chose before. For the Database type select MySQL (or compatible). You will now get to the page with MySQL settings. The next page should show your environment and it should say in green: The environment has been checked. On the first page, select a language and click Continue. Visit the homepage of your Droplet in your browser by pointing your browser to your_server_ip. In this section, we will set up MediaWiki so it is ready to use. Last, we will need to exit the MySQL shell: exit The output should be: Query OK, 0 rows affected (0.00 sec) Next, we need to flush the MySQL privileges: FLUSH PRIVILEGES The output should be: Query OK, 0 rows affected (0.01 sec) We don’t want to use the root user for MediaWiki, so we will create a new database user: GRANT INDEX, CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, LOCK TABLES ON my_wiki.* TO ' IDENTIFIED BY ' password' Ĭhange my_wiki to your chosen database name, sammy to your username, and password to a secure password. The output should be: Query OK, 1 row affected (0.00 sec) You can choose another name if you prefer. The database name does not matter for MediaWiki, but we will use my_wiki in this tutorial. This will change your prompt to MariaDB >. We will first log in to the MySQL shell: mysql -u root -p Despite this, it is definitely a recommended measure. ![]() This is not strictly required to successfully install MediaWiki, as you can use a SQLite database as well. In this section we will set up a MySQL database. Untar the package: tar xvzf mediawiki-*.tar.gz At time of writing, the latest version is 1.24.1, but you can double check via the download link on this page. MediaWiki can be downloaded from its official website. In this section we will download MediaWiki from source. To finish these installations, restart Apache HTTPD. Now, you can install XCache: sudo yum install php-xcache For this, however, you also need to install an extra repository, as XCache is not available in the CentOS repository by default: sudo yum install epel-release The first one is Tex Live for in-line display of mathematical formulae: sudo yum install texliveįor added performance, you can install XCache. These are not necessary for most wikis, unless you have a high performance or math-heavy wiki. These last two modules are really optional. Secondly, we will install GD for image thumbnailing: sudo yum install php-gd The second one we will be installing is the Intl extension, for internationalization support: sudo yum install php-intl The first one we will be installing is the XML extension, and it is required for MediaWiki to run: sudo yum install php-xml All of them are optional except for the first one (the XML extension). A LAMP stack, which you can install by following this tutorial.Īfter you have installed the LAMP stack, we will first need to install a few additional PHP 5 modules.For more information, visit this tutorial. This tutorial goes through how to set up MediaWiki on a CentOS 7 Droplet. Currently thousands of websites are running MediaWiki, including Wikipedia, Wiktionary and Wikimedia Commons. It was originally created for WikiPedia, but it now allows everyone to create their own wiki sites. ![]() MediaWiki is a free and open-source wiki application written in PHP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |