{"id":958,"date":"2019-11-07T15:38:18","date_gmt":"2019-11-07T21:38:18","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=958"},"modified":"2019-11-07T15:38:18","modified_gmt":"2019-11-07T21:38:18","slug":"how-to-install-mediawiki-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/","title":{"rendered":"How to Install MediaWiki on Ubuntu 18.04"},"content":{"rendered":"<div id=\"linux-3636167666\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-962\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/configuring-mediawiki-wiki-platform-for-ubuntu18.04-vps.jpg\" alt=\"\" width=\"130\" height=\"130\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/configuring-mediawiki-wiki-platform-for-ubuntu18.04-vps.jpg 130w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/configuring-mediawiki-wiki-platform-for-ubuntu18.04-vps-60x60.jpg 60w\" sizes=\"(max-width: 130px) 100vw, 130px\" \/>MediaWiki is a free and open-source application that allows anyone to create a wiki website of their own on a self-hosted server. MediaWiki is one of the most popular wiki platforms in the world, thanks to its ease of use and great customizability. MediaWiki is written in the PHP programming language, which leads to excellent performance as well. Let&#8217;s get started with the installation.<\/p>\n<p><!--more--><\/p>\n<h2>Step 1: Connect to Your Server<\/h2>\n<p>To connect to the server via SSH as the root user, use the following command:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_ADDRESS<\/span> -p <span style=\"color: #ff0000;\">PORT_NUMBER<\/span><\/pre>\n<p>Then replace &#8220;<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>&#8221; with the actual server IP address and SSH port number (if necessary).<\/p>\n<h2>Step 2: Update the OS Packages<\/h2>\n<p>Before we can start with the MediaWiki installation, we have to make sure that all Ubuntu OS packages installed on the server are up to date. We can do this by running the following commands:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<h2>Step 3: Install the Nginx Web Server<\/h2>\n<p>Check whether Apache is installed and running on your server:<\/p>\n<pre>ps aux | grep apache2<\/pre>\n<p>If Apache is already installed on the server, stop it and disable it from starting on server boot:<\/p>\n<pre>systemctl stop apache2.service\r\nsudo systemctl disable apache2.service<\/pre>\n<p>Install Nginx:<\/p>\n<pre>sudo apt-get install nginx<\/pre>\n<p>Start the Nginx service and enable it to start on boot:<\/p>\n<pre>sudo systemctl start nginx.service<\/pre>\n<pre>sudo systemctl enable nginx.service<\/pre>\n<h2>Step 4: Install PHP 7.2 and Required PHP Extensions<\/h2>\n<p>Install PHP 7.2 and all the PHP extensions required to run\u00a0MediaWiki.<\/p>\n<pre>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<\/pre>\n<p>Edit the PHP-FPM configuration file:<\/p>\n<pre>nano \/etc\/php\/7.2\/fpm\/php.ini<\/pre>\n<p>Add\/modify the following lines:<\/p>\n<pre>file_uploads = On\r\nallow_url_fopen = On\r\nupload_max_filesize = 64M\r\nmemory_limit = 256M\r\nmax_execution_time = 600\r\ndate.timezone = America\/Chicago<\/pre>\n<p>Restart the PHP-FPM service for the changes to take effect:<\/p>\n<pre>sudo systemctl restart php7.2-fpm.service<\/pre>\n<h2>Step 5: Install MariaDB and Create a New Database<\/h2>\n<p>We will use MariaDB as a database engine. We can install the MariaDB server from the Ubuntu base repository using the following commands:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install mariadb-server-10.1 mariadb-server-core-10.1<\/pre>\n<p>Once the MariaDB installation is complete, run the following commands to start the MariaDB service and enable it to run on server boot:<\/p>\n<pre>sudo systemctl start mariadb\r\nsudo systemctl enable mariadb<\/pre>\n<p>Log in to the MariaDB server as root user, create a new database and assign a MariaDB user with privileges for accessing and modifying the newly created MediaWiki database:<\/p>\n<pre>mysql -uroot<\/pre>\n<pre>MariaDB [(none)]&gt; create database mediawikidb;\r\nMariaDB [(none)]&gt; grant all privileges on mediawikidb.* to mediawiki@'localhost' identified by '<span style=\"color: #ff0000;\">5tr0ngPa55w0rd<\/span>';\r\nMariaDB [(none)]&gt; flush privileges;\r\nMariaDB [(none)]&gt; quit;<\/pre>\n<p>Do not forget to replace \u2018<span style=\"color: #ff0000;\">5tr0ngPa55w0rd<\/span>\u2019 with a strong password (a combination of letters and numbers and ideally more than 10 characters in length).<\/p>\n<h2>Step 6: Install a New SSL Certificate<\/h2>\n<p>We can automatically\u00a0enable\u00a0HTTPS on the MediaWiki website with Certbot:<\/p>\n<pre>sudo add-apt-repository ppa:certbot\/certbot\r\nsudo apt install python-certbot-nginx\r\ncertbot --nginx certonly -d <span style=\"color: #ff0000;\">your-domain.com<\/span> -d www.<span style=\"color: #ff0000;\">your-domain.com<\/span><\/pre>\n<p>Do not forget to replace &#8216;<span style=\"color: #ff0000;\">your-domain.com<\/span>&#8216; with your actual domain name.<\/p>\n<h2>Step 7: Create an Nginx Virtual Block<\/h2>\n<p>In order to access the MediaWiki instance with a domain name, we need to create a virtual host. To do this, create a new Nginx configuration file named &#8216;<span style=\"color: #ff0000;\">your-domain.com<\/span>.conf&#8217; on the virtual server:<\/p>\n<pre>nano \/etc\/nginx\/sites-available\/<span style=\"color: #ff0000;\">your-domain.com<\/span>.conf<\/pre>\n<p>Add the following lines:<\/p>\n<pre>server {\r\n     listen 80;\r\n     server_name <span style=\"color: #ff0000;\">your-domain.com<\/span> www.<span style=\"color: #ff0000;\">your-domain.com<\/span>;\r\n     return 301 https:\/\/$host$request_uri;\r\n }\r\n \r\n server {\r\n \r\n     listen 443 ssl http2;\r\n     \r\n     server_name <span style=\"color: #ff0000;\">your-domain.com<\/span> www.<span style=\"color: #ff0000;\">your-domain.com<\/span>;\r\n     root \/var\/www\/mediawiki;\r\n \r\n     index index.php;\r\n \r\n     ssl_certificate \/etc\/letsencrypt\/live\/<span style=\"color: #ff0000;\">your-domain.com<\/span>\/fullchain.pem;\r\n     ssl_certificate_key \/etc\/letsencrypt\/live\/<span style=\"color: #ff0000;\">your-domain.com<\/span>\/privkey.pem;\r\n \r\n     client_max_body_size 5m;\r\n     client_body_timeout 30;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ \/index.php;\r\n        }\r\n\r\n        location ~ \/.well-known {\r\n            allow all;\r\n        }\r\n\r\n        location ~ \/\\.ht {\r\n          deny all;\r\n         }\r\n \r\n     location ~ \\.php$ {\r\n         fastcgi_pass unix:\/run\/php\/php7.2-fpm.sock;\r\n         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n         include fastcgi_params;\r\n         include snippets\/fastcgi-php.conf;\r\n     }\r\n \r\n     location ~* \\.(js|css|png|jpg|jpeg|gif|ico)$ {\r\n         try_files $uri \/index.php;\r\n         expires max;\r\n         log_not_found off;\r\n     }\r\n \r\n     location = \/_.gif {\r\n         expires max;\r\n         empty_gif;\r\n     }\r\n \r\n     location ^~ ^\/(cache|includes|maintenance|languages|serialized|tests|images\/deleted)\/ {\r\n         deny all;\r\n     }\r\n \r\n     location ^~ ^\/(bin|docs|extensions|includes|maintenance|mw-config|resources|serialized|tests)\/ {\r\n         internal;\r\n     }\r\n \r\n     # Security for 'image' directory\r\n     location ~* ^\/images\/.*.(html|htm|php|shtml)$ {\r\n         types { }\r\n         default_type text\/plain;\r\n     }\r\n \r\n     # Security for 'image' directory\r\n     location ^~ \/images\/ {\r\n         try_files $uri \/index.php;\r\n     }\r\n \r\n }<\/pre>\n<p>Enable the Nginx virtual block:<\/p>\n<pre>ln -sf \/etc\/nginx\/sites-available\/your-domain.com.conf \/etc\/nginx\/sites-enabled\/your-domain.com.conf<\/pre>\n<p>Check if everything is OK with the Nginx configuration:<\/p>\n<pre>nginx -t<\/pre>\n<pre>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/pre>\n<p>Restart the Nginx web server for the changes to take effect:<\/p>\n<pre>systemctl restart nginx<\/pre>\n<h2>Step 8: Download and Install MediaWiki<\/h2>\n<p>Download MediaWiki from the official MediaWiki website and extract it in a directory on your server ( e.g. <code>\/var\/www\/mediawiki<\/code>):<\/p>\n<pre>cd \/opt\r\nwget -O mediawiki.tar.gz https:\/\/releases.wikimedia.org\/mediawiki\/1.32\/mediawiki-1.32.0.tar.gz\r\nsudo tar -zxvf mediawiki.tar.gz\r\nsudo mkdir -p \/var\/www\/mediawiki\r\nsudo mv mediawiki*\/* \/var\/www\/mediawiki<\/pre>\n<p>Change the owner of the MediaWiki directory to the &#8216;www-data&#8217; user and group:<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/mediawiki<\/pre>\n<p>Open https:\/\/<span style=\"color: #ff0000;\">your-domain.com<\/span> in your preferred web browser and follow the simple instructions.<\/p>\n<p>Choose a language and click &#8216;Continue&#8217;, perform environment checking. If everything is OK, click &#8216;Continue&#8217;. Enter &#8216;mediawikidb&#8217; in the &#8216;Database name&#8217; field, type the database user &#8216;mediawiki&#8217; and password of the\u00a0&#8216;mediawiki&#8217; MySQL user, then click &#8216;Continue&#8217;. On the next page, create an administrator user account. Type your admin username, password, and email address. Download the &#8216;LocalSettings.php&#8217; file in the <code>\/var\/www\/mediawiki<\/code> directory on your server. Change the owner and group of LocalSettings.php file:<\/p>\n<pre>chown www-data:www-data \/var\/www\/mediawiki\/LocalSettings.php<\/pre>\n<p>That is it. We successfully installed MediaWiki with nginx web server on an Ubuntu 18.04 VPS. We can now proceed to the admin panel and configure MediaWiki, install additional extensions, etc.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-959\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/mediawiki-back-end.png\" alt=\"\" width=\"300\" height=\"182\" \/><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-963\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/expert-support-for-install-setup-mediawiki-ubuntu18.04.jpg\" alt=\"\" width=\"130\" height=\"130\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/expert-support-for-install-setup-mediawiki-ubuntu18.04.jpg 130w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/expert-support-for-install-setup-mediawiki-ubuntu18.04-60x60.jpg 60w\" sizes=\"(max-width: 130px) 100vw, 130px\" \/>Of course, you don\u2019t have to install and configure MediaWiki on Ubuntu 18.04 if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Fully-Managed VPS Support<\/a>\u00a0solutions, in which case you can simply ask our expert Linux admins to setup and configure MediaWiki on Ubuntu 18.04 for you. They are available 24\u00d77 and will take care of your request immediately.<br \/>\n<span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on <strong>how to install MediaWiki on an Ubuntu 18.04 VPS<\/strong>, please share it with your friends on the social networks using the share shortcut buttons, or simply leave a reply below. Thanks.<\/p><div id=\"linux-1950062631\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to create a wiki website of their own on a self-hosted server. MediaWiki is one of the most popular wiki platforms in the world, thanks to its ease of use and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":961,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-07T21:38:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install MediaWiki on Ubuntu 18.04\",\"datePublished\":\"2019-11-07T21:38:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/\"},\"wordCount\":703,\"commentCount\":5,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-mediawiki-on-ubuntu18.04.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/\",\"name\":\"How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-mediawiki-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-11-07T21:38:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-mediawiki-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-mediawiki-on-ubuntu18.04.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-mediawiki-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MediaWiki on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport","description":"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport","og_description":"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-11-07T21:38:18+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install MediaWiki on Ubuntu 18.04","datePublished":"2019-11-07T21:38:18+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/"},"wordCount":703,"commentCount":5,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/","name":"How to Install MediaWiki on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg","datePublished":"2019-11-07T21:38:18+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will show you how to install\u00a0MediaWiki on Ubuntu 18.04 server. MediaWiki is a free and open-source application that allows anyone to","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-mediawiki-on-ubuntu18.04.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-mediawiki-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install MediaWiki on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=958"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/958\/revisions"}],"predecessor-version":[{"id":982,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/958\/revisions\/982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/961"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}