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. You should see the output: Query OK, 0 rows affected (0.00 sec) Next, we will create a database user for the MediaWiki installation: GRANT INDEX, CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, LOCK TABLES ON my_wiki.* TO ' IDENTIFIED BY ' password' Ĭhange the first highlighted variable to your chosen database name, the second variable to the username you want to use, and the last to a secure password. You should see the output: Query OK, 1 row affected (0.00 sec) You can choose whatever database name you prefer, but the default name in MediaWiki’s configuration is my_wiki. You will see your terminal prompt change to mysql>. To create the database, we will first log in to MySQL: 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. Next, we will move the MediaWiki directory to the document root: sudo mv mediawiki-1.24.1/* /var/www/html Creating a Database Copy the link from Download MediaWiki followed by a version number and use that instead of the link above.Īfter it has finished downloading, extract the package: tar xvzf mediawiki-*.tar.gz You can double check the latest version on this page. Therefore, it is best to download MediaWiki from source. MediaWiki is available on the apt-get repository of Ubuntu, but it is out of date. In this section we will download MediaWiki. sudo service apache2 restart Downloading MediaWiki sudo apt-get install php5-xcacheĪfter you’ve installed the modules you want, restart Apache. sudo apt-get install texliveįinally, you can install XCache for added performance. You can install Tex Live for in-line display of mathematical formulae. Secondly, we will install GD for image thumbnailing: sudo apt-get install php5-gd The first one we will be installing is the Intl extension, for internationalization support: sudo apt-get install php5-intl All four are optional, but the first two in particular (Intl and GD) are recommended. Setting Up Your ServerĪfter you have installed the LAMP stack, we will first need to install a few additional PHP 5 modules. More information about MediaWiki can be found on its homepage. It is used by a majority of the wikis on the Internet. MediaWiki is a PHP wiki package, originally intended for use on WikiPedia, which allows anyone to create their own personal wiki site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |