
# 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
#Mediawiki ubuntu install
$ 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

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.
