trickstore.blogg.se

Mediawiki ubuntu
Mediawiki ubuntu







mediawiki ubuntu

Install the Let’s Encrypt client (Certbot) from Ubuntu 20.04 repository: sudo apt install certbot python3-certbot-apache We can obtain a free TLS certificate from Let’s Encrypt.

mediawiki ubuntu

We should enable a secure HTTPS connection on MediaWiki. Now, we can restart the Apache webserver so that the changes take place: sudo a2enmod rewrite Nano /etc/apache2/sites-available/nfĮrrorLog /var/log/apache2/-error_logĬustomLog /var/log/apache2/-access_log common

mediawiki ubuntu

Ln -s /etc/apache2/sites-available/nf /etc/apache2/sites-enabled/nf For example, create a new Apache configuration file named ‘ nf’ on your virtual server: touch /etc/apache2/sites-available/nf Configuring Apache web server for MediaWiki.Ĭreate a new virtual host directive in Apache. MariaDB > GRANT ALL PRIVILEGES ON mediawiki.* TO IDENTIFIED BY 'your-password' Once you are logged in to your database server you need to create a database for MediaWiki installation: MariaDB > CREATE DATABASE mediawiki This will prompt you for a password, so enter your MariaDB root password and hit Enter. Run the following command: mysql -u root -p Next, we will need to log in to the MariaDB console and create a database for the MediaWiki. Remove test database and access to it? y mysql_secure_installationĬonfigure it like this: - Set root password? y You should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB. You can secure MariaDB using the mysql_secure_installation script. Configuring MariaDB for MediaWiki.īy default, MariaDB is not hardened. Sudo chmod -R 755 /var/www/html/mediawiki/ We will need to change some folders permissions: sudo chown -R www-data:www-data /var/www/html/mediawiki/ Sudo mv mediawiki-1.351/* /var/www/html/mediawiki Unpack the MediaWiki archive: sudo tar -zxvf mediawiki*.tar.gz









Mediawiki ubuntu