Write a post on your Wordpress site explainig all installation's steps. Make the screenshots you need to help reading. You can change folder, users and databases names. It means that you don't need to use names that practice say. But, you must remember the data you are going to use.
Set up a Debian server virtual machine where the user will be your first and last name's initial. Mine would be vicentf.
Once configured, install the network tools and a apache2 web server. Last is a free web server and open source that allows us hosting our wiki.
sudo apt install net-tools
sudo apt install apache2
We are going to install php and the extensions that are need to mediawiki works:
sudo apt install php
sudo apt install php-mysql
sudo apt install php-mbstring
sudo apt install php-xml
sudo apt install php-intl
sudo apt install libapache2-mod-php
To continue, we need a database manager that will save all wiki information about users, pages, configuration... There are different kind of database managers but Mariadb is the best to use with Mediawiki according to the documentation. So install and set up mariadb server:
sudo apt install mariadb-server
sudo mysql_secure_installation
Once installed, we need to create the database for our wiki. This will be called wikivf_db (each of you with your initials). We will create a user with wikivf username (vf will be your initials) and give privileges to everything. In the creation documentation, the user must be created to localhost but we use % to access the database from any computer. SCREENSHOT
sudo mariadb
CREATE DATABASE wikivf_db;
CREATE USER 'wikivf'@'%' IDENTIFIED BY 'wikivf';
GRANT ALL PRIVILEGES ON wikivf_db.* TO 'wikivf'@'%' WITH GRANT OPTION;
Before proceeding, the database settings must be changed so that it can accept requests from any IP. If we go to the file:
/etc/mysql/mariadb.conf.d/50-server.cnf
We must comment with a # this line: bind-address=127.0.0.1 and we write in new line after this the next one: bind-address=0.0.0.0
After that, restart sql service:
sudo service mariadb restart
To install the application, first step is download it from the server. With wget command line and an url, we get the program in the folder where we run the command. The application will be compressed in a tar.gz file, so after download we unzip file. Once we have the application folder, we will move to /var/lib with name mediawiki:
wget https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.4.zip
tar xvf mediawiki-1.XX.0.tar.gz
cd /var/lib
sudo mkdir mediawiki
sudo mv ~/mediawiki-1.XX.0/* mediawiki
Before install, we must create a symbolic link in web folder. When we use apache2 as a web server, default folder to put our web pages is /var/www/html. So we will create the symbolic link from /var/lib/mediawiki to /var/www/html:
cd /var/www/html
sudo ln -s /var/lib/mediawiki mediawiki
Once symbolic link is running, we can access to mediawiki using web browser accessing to IP_SERVER/mediawiki. Web browser will find the folder mediawiki in /var/www/html. SCREENSHOT showing url and the web content:
SCREENSHOT of any step
Access to the next url to go to installation: IP_SERVER/mediawiki/mw-config/index.php
We will see next pages:
Choose language: you can use spanish or valencian
Checking environment: in this step it will show us uncomplete and complete settings to Mediawiki works properly
Connect to database:
IP server
Database name
Database username
Database user password
Other parameters
Name
Name: Wiki Name Surname
Project spots: the same
Username: wikivf (set vf with your initials)
Password (please, remember the password)
Other options
Open wiki
Copyright and license: without license
Editors: codeeditor, visualeditor and wikieditor
Extensions: CategoryTree
Installation
When it finishes, it will download a LocalSettings.php file that you must put on mediawiki folder using scp command line. Tip: first step scp the file to home folder and after that use mv command to move to mediawiki folder.
scp file username@ip:/folder #from local to the server
scp username@ip:/path_to_file folder #from server to local
SCREENSHOTS
Main page where we can see tab title
LocalSettings file:
Wiki name, meta_namespace, scriptpath and ip address
Database settings
Installed extensions