A copy made with sudo make the new files ownership of root. To allow apache to modifiy wiki files, you must change the ownership to www-data, the user created by Apache2 on Ubuntu.
@@ -61,6 +61,8 @@ sudo mkdir /var/www/mediawiki
sudo mv mediawiki-*/* /var/www/mediawiki
+sudo chown -R www-data:www-data /var/www/mediawiki
+
```
### Cli config