IT/Software/Mediawiki/How to Install MediaWiki: Difference between revisions
Jump to navigation
Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
Player5501 (talk | contribs) No edit summary |
Player5501 (talk | contribs) No edit summary |
||
Line 28: | Line 28: | ||
===Install PHP Modules=== | ===Install PHP Modules=== | ||
---- | ---- | ||
* <code>sudo apt install php7.2 php7.2-mbstring php7.2-xml </code> | * <code>sudo apt install php7.2 php7.2-mbstring php7.2-xml php7.2-mysql php7.2-gd php7.2-intl</code> | ||
=== Download and Install MediaWiki === | === Download and Install MediaWiki === |
Revision as of 20:31, 6 January 2020
Prerequisites
- Ubuntu Server 18.04.3 LTS
- In my install I have all additions enabled.
- Apache2 Installed
- Installing and setting up MariaDB for MediaWiki is also covered on this page.
Install MariaDB
sudo apt-get install mariadb-server mariadb-client
sudo mysql_secure_installation
- Restart MariaDB
sudo systemctl restart mariadb.service
Create MediaWiki Database
sudo mysql -u root -p
- Then create a database called mediawiki
CREATE DATABASE mediawiki;
- Create a database user called mediawikiuser with new password
CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'new_password_here';
- Then grant the user full access to the database.
GRANT ALL ON mediawiki.* TO 'mediawikiuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
- Save and Exit
FLUSH PRIVILEGES;
EXIT;
Install PHP Modules
sudo apt install php7.2 php7.2-mbstring php7.2-xml php7.2-mysql php7.2-gd php7.2-intl
Download and Install MediaWiki
- Download and extract Mediawiki tarball latest stable version 1.34.0 at time of writing
cd /var/www/html
- Remove default index.html
rm index.html
wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.0.tar.gz
tar -xvf mediawiki-1.34.0.tar.gz
mv mediawiki-1.34.0 mediawiki
- Remove tarball
rm mediawiki-1.34.0.tar.gz