It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Howdy, Stranger!
It looks like you've been lurking for a while.
If you register, we also will remember what you have read and notify you about new comments. You will also be able to participate in discussions.
So if you'd like to get involved, register for an account, it'll only take you a minute!
apt-get update
apt-get upgrade -y
LAMP installation:
For starters, you will need to install Apache, PHP and MySQL (LAMP) stack. This can be done with the help of tasksel tool:
sudo apt install tasksel
sudo tasksel install lamp-server
InstallingTo begin, download the latest MediaWiki package. You can find the download location for the releases by visiting the MediaWiki homepage.
Go to web-accessible DocumentRoot, in our case it is:
cd /var/www/html/
Use wget
to download the latest package:
wget https://releases.wikimedia.org/mediawiki/1.30/mediawiki-1.30.2.tar.gz
Decompress the package by using the tar
command, as shown below:
tar -xvzf mediawiki-1.30.2.tar.gz
Move the uncompressed mediawiki-1.30.2
directory into your html/
folder, renaming the directory to mediawiki/
in the process.
mv mediawiki-1.30.2 mediawikiThe name of the directory beneath the html/ will determine the path to your wiki. In this case, the wiki would be located at mediawiki/.
cd mediawikimbstring extension needed for MediaWiki is a non-default extension. This means it is not enabled by default. You must explicitly enable the module with commands:
chmod a+w mw-config
apt-get install php-mbstring php-xml -y
service apache2 restart
nano /var/www/html/mediawiki/LocalSettings.php
chown root:www-data /var/www/html/mediawiki/LocalSettings.php
chmod 640 /var/www/html/media/wiki/LocalSettings.php