MediaWiki Installation
Jump to navigation
Jump to search
Install the required packages,
apt-get install imagemagick php7.0-intl php7.0-curl php7.0-gd php7.0-mbstring php7.0-mysql
Edit the media wiki apache file.
nano /etc/mediawiki/apache.conf
Uncomment to enable media wiki.
Alias /wiki /var/lib/mediawiki
Enable the apache rewrite module
a2enmod rewrite
Restart Apache
service apache2 restart
Download and install mediawiki
cd /opt/ wget https://releases.wikimedia.org/mediawiki/LATEST VERSION/mediawiki-LATESTVERSION.tar.gz tar -xvzf LATESTVERSION.tar.gz mkdir /opt/mediawiki mv /opt/mediawiki-1.27.1/ /opt/mediawiki
Setup mediawiki by using the now enabled configuration URL
http://solaris.scottworld.net/wiki
After you have completed all the steps, edit the file
sudo nano /etc/mediawiki/LocalSettings.php
Increase the PHP memomory limit from 20 to 40
# If PHP's memory limit is very low, some operations may fail. ini_set( 'memory_limit', '40M' );
Copy the nice scottworld logo into
/var/lib/mediawiki/
Modify the /etc/mediawiki/LocalSettings.php and add the lines
$wgLogo = "{$wgScriptPath}/wikilogo.png
# Prevent Anonymous Editing $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['sysop']['edit'] = true;