MediaWiki Installation 24.04LTS: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
(Created page with "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 <pre> cd /opt/ wget https://releases.wikimedia.org/mediawiki/LATEST VERSION/mediawiki-LATE...")
 
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
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
<pre>
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
</pre>
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 = &quot;{$wgScriptPath}/wikilogo.png
# Prevent Anonymous Editing
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;

Latest revision as of 01:48, 20 March 2024