How to install MediaWiki on OpenSUSE 42.3
How to install MediaWiki on OpenSUSE 42.3
MediaWiki is a PHP wiki package designed for use on Wikipedia. It allows you to create your own personal wiki site. It is an extremely powerful and a featured wiki implementation, which also shows the data stored in a database. In this tutorial, you will learn about the method to isntall MediaWiki on OpenSUSE 42.3
Requirements
Lamp Stack
Apache
Mariadb
Php5.6 and above
zypper inphp-intl php-gd
If you want to install texlive and php5-xcache packages then run the following command.
zypper install texlive php-xcache
Installing MediaWiki
If you want to download the MediaWiki installation file, you can run the wget command along with the download link as follows.
linuxhelp:~ # wget https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.1.tar.gz
--2017-10-28 11:59:36-- https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.1.tar.gz
Resolving releases.wikimedia.org (releases.wikimedia.org)... 91.198.174.217, 2620:0:862:ed1a::3:d
Connecting to releases.wikimedia.org (releases.wikimedia.org)|91.198.174.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39734499 (38M) [application/x-gzip]
Saving to: ‘ mediawiki-1.29.1.tar.gz’
100%[==============================================================================================================================================> ] 39,734,499 482KB/s in 69s
2017-10-28 12:00:46 (562 KB/s) - ‘ mediawiki-1.29.1.tar.gz’ saved [39734499/39734499]
After downloading, extract the MediaWiki package with the help of the following command.
linuxhelp:~ # tar -xvzf mediawiki-1.29.1.tar.gz
mediawiki-1.29.1/
mediawiki-1.29.1/.eslintrc.json
mediawiki-1.29.1/.data-stylelintrc
mediawiki-1.29.1/api.php
mediawiki-1.29.1/autoload.php
mediawiki-1.29.1/cache/
mediawiki-1.29.1/cache/.htaccess
mediawiki-1.29.1/composer.json
mediawiki-1.29.1/composer.local.json-sample
mediawiki-1.29.1/COPYING
mediawiki-1.29.1/CREDITS
mediawiki-1.29.1/docs/
.
.
.
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/helpers_for_test.php
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/LCRun3Test.php
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/LightnCandyTest.php
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/mustacheSpecTest.php
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/recursive.tmpl
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/regressionTest.php
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/test1.tmpl
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/test2.tmpl
mediawiki-1.29.1/vendor/zordius/lightncandy/tests/test3.tmpl
mediawiki-1.29.1/vendor/zordius/lightncandy/UPGRADE.md]
Once the extraction is done, rename the mediawiki directory as per your choice.
linuxhelp:~ # mv mediawiki-1.29.1 mediawiki
Afterwards, move the renamed directory into Apache document root as follows.
linuxhelp:~ # mv mediawiki /srv/www/htdocs/
In here, you need to provide an appropriate name for your Apache document root. You can do that by running the following commands.
linuxhelp:~ # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:~ # chmod &ndash R 775 /srv/www/htdocs/
Once it is done, you need to switch to your browser and and enter http://yourdomain/mediawiki in the URL search field.
Choose your desired language and click on Continue.
You' ll be taken to the Copyright and Terms page, click on Continue to proceed further.
In here, configure your MySQL database.
Click on Continue to proceed further.
The, you should set your Administrator account details.
Choose the User rights profile and other needed modifications. Click on Continue.
Most of your installation is done. Click on Continue to give effect to the procees.
You can now see the LocalSettings.php file which was not available earlier.
With this, the installation of MediaWiki comes to an end.
Syntax: "$wgFileExtensions[] = 'pdf';"
"$wgGroupPermissions['*']['edit'] = false;"