IT/Software/Mediawiki/How to Install MediaWiki: Difference between revisions

From msgwiki
< IT‎ | Software‎ | Mediawiki
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.
No edit summary
No edit summary
Line 2: Line 2:
----
----
* Ubuntu Server 18.04.3 LTS
* Ubuntu Server 18.04.3 LTS
* In my install i have all additions enabled.
* In my install I have all additions enabled.
* Apache2 Installed
* Apache2 Installed
* Installing and setting up MariaDB for MediaWiki is also covered on this page.


=== Install Instructions ===
=== Install MariaDB  ===
----
#<code>sudo apt-get install mariadb-server mariadb-client</code>
#<code>sudo mysql_secure_installation</code>
# Restart MariaDB
#* <code>sudo systemctl restart mariadb.service</code>
 
=== Create MediaWiki Database ===
----
#<code>sudo mysql -u root -p</code>
#Then create a database called mediawiki
#*<code>CREATE DATABASE mediawiki;</code>
#Create a database user called mediawikiuser with new password
#*<code>CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'new_password_here';</code>
#Then grant the user full access to the database.
#*<code>GRANT ALL ON mediawiki.* TO 'mediawikiuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;</code>
# Save and Exit
#*<code>FLUSH PRIVILEGES;</code>
#*<code>EXIT;</code>
 
===Install PHP Modules===
----
* <code>sudo apt install php7.2 php7.2-mbstring php7.2-xml </code>
 
=== Download and Install MediaWiki ===
----
----
# Install Dependencies
#* <code>sudo apt install php7.2 php7.2-mbstring php7.2-xml </code>
# Download and extract [https://www.mediawiki.org/wiki/Download Mediawiki] tarball latest stable version 1.34.0 at time of writing
# Download and extract [https://www.mediawiki.org/wiki/Download Mediawiki] tarball latest stable version 1.34.0 at time of writing
#* <code>cd /var/www/html</code>
#* <code>cd /var/www/html</code>

Revision as of 20:23, 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


  1. sudo apt-get install mariadb-server mariadb-client
  2. sudo mysql_secure_installation
  3. Restart MariaDB
    • sudo systemctl restart mariadb.service

Create MediaWiki Database


  1. sudo mysql -u root -p
  2. Then create a database called mediawiki
    • CREATE DATABASE mediawiki;
  3. Create a database user called mediawikiuser with new password
    • CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'new_password_here';
  4. Then grant the user full access to the database.
    • GRANT ALL ON mediawiki.* TO 'mediawikiuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
  5. Save and Exit
    • FLUSH PRIVILEGES;
    • EXIT;

Install PHP Modules


  • sudo apt install php7.2 php7.2-mbstring php7.2-xml

Download and Install MediaWiki


  1. Download and extract Mediawiki tarball latest stable version 1.34.0 at time of writing

THIS PAGE IS NOT COMPLETE