

$ find /opt/mediawiki/images/ -type d -exec chmod 755 \ $wgLocaltimezone = "Europe/Bratislava" # optional $wgFavicon = " $wgResourceBasePath/images/logos/" "src" => " $wgResourceBasePath/images/logos/", # vector 2022 'icon' => " $wgResourceBasePath/images/logos/", # vector 2022 'svg' => " $wgResourceBasePath/images/logos/", # vector 2010 $wgScriptPath = "/mediawiki" # see also in file /etc/httpd/conf.d/ nf $wgArticlePath = "/wiki/$1" # Short URL, see also Short URL, Short URL on Apache $wgServer = "" Edit generated settings in /opt/mediawiki/LocalSettings.php file. The LocalSettings.php file provides basic configuration settings (based on the DefaultSettings.php file) of a MediaWiki installation. You can remove other unnecessary dirs/files ( mediawiki/tests/ dir for example), see Fedora mediawiki spec for "more inspiration". Once the wiki is set up, you should remove the mediawiki/mw-config/ directory. $ chown apache:apache /opt/mediawiki/LocalSettings.php $ chmod 600 /opt/mediawiki/LocalSettings.php # contains $wgDBpassword Only now MediaWiki installer store settings in LocalSettings.php file and populate example_wiki MariaDB database.ĭownload generated configuration file LocalSettings.php and move this file to the main wiki directory /opt/mediawiki. Press on continue and you will begin the installation of MediaWiki. $wgDefaultSkin = "vector" wfLoadSkin( 'Vector' ) (user was created manually before installation) After MediaWiki installer (config script) has finished running successfully, settings are stored in LocalSettings.php file and example_wiki MariaDB database. All settings will be temporally caching in your browser. Open in browser and follow the on-screen instructions to complete the process.
CHANGE MEDIAWIKI LOGO PASSWORD
mysql_history # history store the password MariaDB > GRANT ALL PRIVILEGES ON example_wiki.* TO WITH GRANT OPTION MariaDB > CREATE USER IDENTIFIED BY 'sql_wiki_passwd' # change sql_wiki_passwd to custom password mysql_history file after running these commands (history store the password). It will be more general, useful especially in the future (backup, restore or reinstall wiki). You can create your database and user in setup process by running the supplied configuration script (see bellow), but personally prefer create wiki MariaDB database and user manually (or using phpMyAdmin).
CHANGE MEDIAWIKI LOGO DOWNLOAD
Download latest MediaWiki tarball and unpack to /opt directory. MediaWiki will be used "pretty URL" Short URL page address. Suppose we have root access to the server. MediaWiki will be installed on Linux (Fedora) in /opt/mediawiki directory with Apache web server, PHP and MariaDB database server.
