MediaWiki Install 2022-09-01: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
Line 10: Line 10:


Log in to your host, assume root (or prefix the following with sudo if you prefer).
Log in to your host, assume root (or prefix the following with sudo if you prefer).
Following is based, in part, on [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_requirements MediaWiki Installation Requirements].


Script:
Script:
Line 16: Line 18:
apt upgrade -y
apt upgrade -y
apt install -y emacs-nox
apt install -y emacs-nox
# Apache with TLS support
apt install -y apache2 certbot python3-certbot-apache
apt install -y apache2 certbot python3-certbot-apache
apt install -y mariadb-server php php-mysql libapache2-mod-php php-xml php-mbstring
# DB and Apache Modules
# Support for Extra MediaWiki Features:
apt install -y mariadb-server php php-mysql libapache2-mod-php
apt install -y php-apcu php-intl imagemagick php-cli php-curl git
# Support for MediaWiki Features:
apt install -y php-xml php-mbstring php-apcu php-intl php-cli php-curl php-calendar git imagemagick
</pre>
</pre>



Revision as of 18:17, 25 August 2022

Create a Host

I'm not going to document this part. Pick your favorite hosting service and create a Debian 10 host. Get the IP address.

IP: 54.202.176.144

System Update and Core Software

Log in to your host, assume root (or prefix the following with sudo if you prefer).

Following is based, in part, on MediaWiki Installation Requirements.

Script:

apt update -y
apt upgrade -y
apt install -y emacs-nox
# Apache with TLS support
apt install -y apache2 certbot python3-certbot-apache
# DB and Apache Modules
apt install -y mariadb-server php php-mysql libapache2-mod-php
# Support for MediaWiki Features:
apt install -y php-xml php-mbstring php-apcu php-intl php-cli php-curl php-calendar git imagemagick

Retry: On my first pass through, just pasting this to a CLI, it stopped after the second line (upgrade). I then pasted the whole thing into a file and called it with "sh init.sh", and it ran the whole way through. When I nuke this box and come back through I want to try again using the shell script file on the first pass. Worst case you just keep re-calling the script until it makes it through.

Apt Install MediaWiki

apt install mediawiki -y

I decided not to use this because the apt packaging might differ from other distros. In theory, you could do an RPM equivalent of the installs for everything above and it would be functionally equivalent. But the apt package for MediaWiki likely puts things in different directories than other packaging tools, and there are bits below where you have to put things in specific directories.

From here, I'm going to go to the MediaWiki tarball-based installation instructions.

MediaWiki Tarball