7/30/2023 0 Comments Mediawiki add user![]() ![]() ![]() To find the namespace number, you can visit Special:AllPages, drop the namespace list down, search, and note the namespace number in the URL. Edit it as follows: # Protect against bug 28235 htaccess file, to which you can add some lines to protect against security breaches (per the MediaWiki manual). In the images folder where uploads are stored, there is an. Make these settings in your php.ini: upload_max_filesize = 100M In LocalSettings.php, edit these values: $wgRightsText = "copyright Taro Tanaka, all rights reserved" In LocalSettings.php, edit these values: $wgEmergenc圜ontact = Copyright Text and Suppress Icon In LocalSettings.php, edit this value: $wgServer = "" Set the wiki site URL Logo: WikiMedia Logo: WikiMedia Put the logo in /resources/assets, then in LocalSettings.php, edit this value: $wgLogo = "$wgResourceBasePath/resources/assets/mylogo.png" In LocalSettings.php, edit this value: $wgSitename = "Acme Inc. After you do, refresh your browser and the settings will take hold. At the end, it creates a LocalSettings.php which you download, and then place in the root of your site. MediaWiki’s setup is quite well developed by now, and a lot of settings are done automatically for you. More you will find in my following posts.To jog my own memory for the next time, I assembled this handy list of tips for setting up a MediaWiki site. In that case a user needs to authenticate twice, once to get first access to the web root folder and once to login to the MediaWiki.įurther you can also secure it by using a web application firewall (WAF) like modsecurity and Fail2ban to prevent brute-force attacks. In case you want to use the MediaWiki only private and not open to the public, you can secure it by using Authentication in Apache plus the option Private wiki. Securing your MediaWiki for strict private use The term Virtual Host refers to the practice of running more than one web site (such as and ) on a single machine.įinally you should secure your MediaWiki by redirecting all requests to use SSL/TLS in order to protect the sign-in with username and password.įor this post I only create a HTTP Port 80 VirtualHost file. ![]() To configure the Apache web server we create a virtual host file for our MediaWiki website. # to change the permissions you can run the following commands inside your MediaWiki folder.Ĭreate/Configure Virtual Host File in Apache # Finally the folder permissions should set to 755 and file permissions to 644. # Not all versions of chmod support the ugo±rwx syntax scheme. # permissions for the user that owns the file. # go-rwx removes read, write, e xecute permissions from the group and other users. # go-w removes write permissions from the group and other users. $ sudo chmod -R go-w /var/www/mediawiki/html/ # remove write access from all other users and groups besides the file owners $ sudo chown -R www-data /var/www/mediawiki/html/images # so MediaWiki needs to be able to write there # change the owner of the image directory to the PHP/Apache user www-data as uploaded files need to go there, $ sudo mv -v /var//var/www/mediawiki/html/ # move the files inside that folder to the final html folder on what our virtual hosts file in Apache will point later for the web root $ sudo cp -r mediawiki-1.36.1 /var/www/mediawiki/ # copy the extracted MediaWiki files to that folder # creating a dedicated folder for the MediaWiki in the web root You will find the latest stable version on the following site $ sudo add-apt-repository -remove ppa:ondrej/phpīefore I will configure the Apache web server, I will first download and extract the latest stable version of MediaWiki to the web root folder. To remove the repository you can do it as follow $ sudo apt-get install php8.0-cli php8.0-common libapache2-mod-php8.0 php8.0 php8.0-mysql php8.0-fpm php8.0-curl php8.0-gd php-mbstring php8.0-xml php8.0-intl You can check the installed version with $ sudo apt install software-properties-common To install PHP on Ubuntu 20.04.3 LTS you first have to add the Ondrej PHP repository to install it afterwards as used to. $ sudo apt install mysql-server You can check the installed version with You can install MySql 8.0 by using the default repository from Ubuntu 20.04.3 LTS which will install MySql 8.0.26. $ sudo apt-get install apache2 You can check the installed version with download and extract MediaWiki to the web root folderįirst we will install the Apache web server as follows.install and configure the Apache web server.In this post I want to go through the separate steps, to set up the open source software MediaWiki on Ubuntu 20.04.3 LTS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |