Wiki install manual
Step by Step[edit | edit source]
Create a VPS with Ubuntu installed
Then
ssh root@213.108.110.100
cd /
ls
sudo apt update
sudo apt install apache2
Type into browser: http://213.108.110.100/
The start screen of Apache appears
Replace this page with another html page
--> And added the following link on this html page: http://213.108.110.100/mediawiki/ ..
scp /Downloads/LocalSettings.php root@onions:/var/www/html/mediawiki
apt-get update -y
apt-get install apache2 mariadb-server php libapache2-mod-php php-mbstring php-xml php-json php-mysql
php-curl php-intl php-gd php-mbstring texlive imagemagick unzip -y
(Takes a while)
Then
mysql
Mariadb kernel opens type:
CREATE DATABASE wikidb;
CREATE USER 'root'@'213.108.110.100' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wikidb.* TO 'root'@'213.108.110.100' WITH GRANT OPTION;
Then:
flush privileges;
exit;
Then
wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.2.zip
For some reason wget wasn't installed for me. So I did:
sudo apt-get install wget
wget -h
Then again:
wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.2.zip
Then:
unzip mediawiki-1.35.2.zip
Then
mv mediawiki-1.35.2 /var/www/html/mediawiki
Then
apt-get install composer -y
Then
cd /var/www/html/mediawiki
composer install --no-dev
Set right permission
chown -R www-data:www-data /var/www/html/mediawiki
Configure apache for MediaWiki
nano /etc/apache2/sites-available/mediawiki.conf
File opens nothing is in there yet because the file didn't exist yet.
Add lines:
<VirtualHost *:80> ServerAdmin admin@example.com DocumentRoot /var/www/html/mediawiki/ ServerName mediawiki.example.com
<Directory /var/www/html/mediawiki/> Options FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory>
ErrorLog /var/log/apache2/mediawiki_error CustomLog /var/log/apache2/mediawiki_access common
</VirtualHost>
Then save and close
(in Nano that works with ctrl o (write out + enter) and then ctrl x + enter for exit)
Then
a2ensite mediawiki.conf
systemctl reload apache2
Then go to: http://213.108.110.100/mediawiki/
The wiki setup page should appear
Follow the steps...
Database host: localhost Database name: wikidb Database table prefix: wikidb Database user name: password:
scp /Downloads/LocalSettings.php root@213.108.110.100:/var/www/html/mediawiki
Place new logo:
scp /Users/onionslaptop/Desktop/wiki-repo.gif root@213.108.110.100:/var/www/html/mediawiki/resources/assets
Deleted from the front page: