Option-1: Upload it to the web root directory and give it proper permissions. You have now two options to push this file to the server. Once done, you will see the following screen.Ĩ- A file LocalSettings.php will be downloaded to your local PC.ĭon’t do anything yet, just leave this page open. If anything missing, fix them and restart the installation.Ĥ- Enter the database name and credentials.ĥ- Check the checkbox if your database username and password are the same with the previous screen.Ħ- Type name of the site, username, password and email address.ħ- After entering site name etc, it will ask to continue. Click on the set up the wiki link to continue.ģ- Here you will see the checks performed by MediaWiki. Point your browser to the domain to start the installation.ġ- You will see the following page when start the installation. unzip mediawiki-1.39.1.zipĬlean up and change the directory ownership. Unzip and move it to the web root directory. Once you are done with the basic server setup, it’s time to download and install MediaWiki. Systemctl restart apache2 5- Download and install MediaWiki RewriteRule (.*) Restart Apache: apachectl -t SSLCertificateFile /etc/letsencrypt/live/ DOMAIN.COM/fullchain.pemĪdd this to the Port 80 block to redirect automatically to HTTPS. SSLCertificateKeyFile /etc/letsencrypt/live/ DOMAIN.COM/privkey.pem Header always set X-Content-Type-Options nosniff Header always set Strict-Transport-Security "max-age=63072000 includeSubDomains preload" SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 Once you successfully get the certificate, update your Apache mediawiki conf file with 443 block. certbot certonly -webroot -w /var/www/html -d DOAMIN.COM If you have already pointed your domain to the server IP and is propagated (use dig command to check), get a SSL certificate. Install Let’s Encrypt certbot snap package. Please note, this step you can follow later. cd /etc/apache2/sites-availableĮrrorLog /var/log/apache2/ ĭisable the default vhost file and enable mediawiki configuration. Grant all on mediawiki.* to identified by ' PASSWORD' Ĭreate a virtual host file nf. mysql -u root -pĬreate database mediawiki CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci Now login to the database server to create a user and database. Before that run the following command to set basic database configuration. You can configure some options in php.ini, it is available in /etc/php/8.1/fpm/php.ini. apt update & apt upgrade apt install apache2 mariadb-server libapache2-mod-php8.1 php8.1 php8.1-gmp php8.1-bcmath php8.1-gd php-json php8.1-mysql php8.1-curl php8.1-mbstring php8.1-intl php8.1-imagick php8.1-xml php8.1-zip php8.1-fpm php8.1-redis php8.1-apcu php8.1-opcache php8.1-memcache php8.1-memcached php8.1-ldap bzip2 zip unzip imagemagick vimĮnable Apache modules: a2enmod ssl rewrite headers proxy proxy_http deflate cache proxy_wstunnel http2 proxy_fcgi env expires Update your server and install latest PHP, Apache, MariaDB and some PHP extensions. It can run fine with just 512MB of RAM, but keep in mind that this may vary depending on the amount of traffic. MediaWiki has not much requirements hardware wise. I will guide you here how to install MediaWiki on Ubuntu 22.04 LTS with free SSL certificate from Let’s encrypt. The good thing is it is free and open source, you can host it on your PC or server with no cost. In simple terms it is a documentation and collaboration software used by many across the web. I am sure you have heard of Wikipedia, it is powered by MediaWiki software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |