

The database mediadb and user media can be anything you want them to be. This will be put into the MediaWiki configuration later, so do not forget it. GRANT ALL ON mediadb.* TO IDENTIFIED BY 'password' WITH GRANT OPTION sudo mysql_secure_installationĪnd create the MediaWIki user and db as follows CREATE DATABASE mediadb If you are running a production server, you should do a secure installation. Run the secure installation for MariaDB (Optional) You should set the timezone appropriately.įor production, edit /etc/php/7.2/apache2/php.ini and make the following changes: memory_limit = 256M If you are just looking around, the default php.ini settings are fine except for the timezone settings. If you are putting your server into production, use the following settings initially. You can do it now or later as you desire. I enabled it after the fact and it worked. NOTICE: To enable PHP 7.2 FPM in Apache2 do: Once PHP is installed you will get a notice similar to: NOTICE: Not enabling PHP 7.2 FPM by default. Sudo apt-get install imagemagick php7.2-fpm php7.2-intl php7.2-xml php7.2-curl php7.2-gd php7.2-mbstring php7.2-mysql php7.2-mysql php-apcu php7.2-zip Sudo apt -y install mariadb-server mariadb-client Install basic packages sudo apt-get install -y apache2 software-properties-common Sudo add-apt-repository "deb $(lsb_release -cs) main" Update the OS sudo apt-key adv -recv-keys -keyserver hkp://:80 0xF1656F24C74CD1D8 You can use Nginx, but the server directions are different and I did not have a chance to try them out.

Mediawiki ubuntu how to#
I assume you know how to log into a console. I did this on AWS with a Ubuntu 18.04 minimal base image. So, I went through the installation myself, and here is how I installed it.Īll steps are done as an sudoer or as the root user. I reviewed a link on Linux Support and HowtoForge on installing MediaWiki, and found them to be a tad dated. He was installing MediaWiki on Ubuntu and he was having issues so he asked me to take a look.
