![]() ![]() The default name that MediaWiki has in their configuration form is my_wiki, but you can name it whatever you prefer: create database my_wiki Īdditionally, you will need to provide a user for the new database with the permissions that MediaWiki requires (replace the username and password below with details of your choice): grant index, create, select, insert, update, delete, alter, lock tables on my_wiki.* to identified by 'password' įinish up by implementing the changes and quitting MySQL: FLUSH PRIVILEGES Once you are logged in, create your MediaWiki database. Log into MySQL on your VPS: mysql -u root -p We can go ahead and set up the database now: MediaWiki uses this information to create the required wiki database and tables.Setting up a dedicated database can be done very quickly and removes the need for sharing the MySQL root information and the associated security risks. sudo service apache2 restart Create a MySQL User and DatabaseĪlthough this step is not required for a successful installation of MediaWiki, it is definitely a recommended measure for added security.ĭuring the installation process, you will be asked to supply either a database and associated user for a MediaWiki database or your MySQL root password. Move the contents of the MediaWiki directory to a a more convenient location: sudo mv mediawiki-1.19.2 /etc/mediawikiĬreate a symbolic link between the MediaWiki directory and Apache’s document root: sudo ln -s /etc/mediawiki/ /var/wwwĪnd finish up by restarting apache. We can start off by downloading the latest version: curl -O Īfter it downloads, untar the package: tar xvzf mediawiki-*.tar.gz Once you have the user and required software on the virtual private server, you can start installing MediaWiki! Install Media Wikiīecause the apt-get package of MediaWiki is very out of date, MediaWiki should be installed from source. If you don't have the Linux, Apache, MySQL, PHP stack on your server, you can find the tutorial for setting it up Ubuntu LAMP Installation Tutorial. You can see how to set that up in the here Initial Server Setup Tutorial.īefore working with MediaWiki, you need to have LAMP installed on your server. The steps in this tutorial require the user to have root privileges. Originally built for Wikpedia, MediaWiki is written in PHP and uses a backend database, like MySQL, to store its data. MediaWiki is a free open source wiki program that allows users to create their own personal wiki sites. You can use the search functionality at the top of the page to find a more recent version. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. This guide might still be useful as a reference, but may not work on other Ubuntu releases. Reason: Ubuntu 12.04 reached end of life (EOL) on Apand no longer receives security patches or updates. Migrate the server data to a supported version.Upgrade from Ubuntu 14.04 to Ubuntu 16.04.If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu: This article covers a version of Ubuntu that is no longer supported. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |