{"id":553,"date":"2019-10-31T17:48:46","date_gmt":"2019-10-31T12:18:46","guid":{"rendered":"https:\/\/www.itsupportwale.com\/blog\/?p=553"},"modified":"2026-02-17T15:56:32","modified_gmt":"2026-02-17T10:26:32","slug":"install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3","status":"publish","type":"post","link":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/","title":{"rendered":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d86da56b9cb\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d86da56b9cb\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Introduction\" >Introduction :<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Prerequisites\" >Prerequisites :<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_1_Install_Nginx\" >Step 1: Install Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_2_Install_MySql\" >Step 2: Install MySql<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#You_can_follow_this_step_by_step_guide_to_install_and_start_MySql_Server_8_on_Ubuntu_18\" >You can follow this step by step guide to install and start MySql Server 8 on Ubuntu 18<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_3_Install_PHP_with_PHP-FPM\" >Step 3: Install PHP with PHP-FPM<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#You_can_easily_install_the_latest_version_of_PHP_via_following_our_another_article_How_to_Install_Latest_PHP_73_on_Ubuntu_1804\" >You can easily install the latest version of PHP via following our another article: How to Install Latest PHP 7.3 on Ubuntu 18.04<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_4_Create_a_Database_for_WordPress\" >Step 4: Create a Database for WordPress<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Method_1_From_MySQL_Command_Line\" >Method 1: From MySQL Command Line<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Method_2_From_PHPMyAdmin_GUI\" >Method 2: From PHPMyAdmin GUI<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_5_Download_latest_version_of_WordPress\" >Step 5: Download latest version of WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_6_Configure_Nginx_for_WordPress\" >Step 6: Configure Nginx for WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Step_7_Configure_WordPress_and_verify_Access\" >Step 7: Configure WordPress and verify Access<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#Summary\" >Summary:<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction :<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>WordPress is the most widely used open-source CMS (content management system) software available on the internet. With WordPress, you can easily create a beautiful and highly customizable Blog, Website or a Web app. WordPress uses Mysql for database and PHP processing.<\/p>\n\n\n\n<p>Latest <strong>WordPress 5.2.3<\/strong> is released on <strong>September 5, 2019<\/strong>. In this tutorial, we will install the latest version of WordPress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.<\/p>\n\n\n\n<p>Install WordPress 5.2 with Nginx is always the best option because Nginx is super fast and we can also use PHP-FPM fast cache with WordPress.<\/p>\n\n\n\n<p>You can check the Minumum Requirements for WordPress <a href=\"https:\/\/wordpress.org\/about\/requirements\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Here (opens in a new tab)\">Here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites :<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>  So before we start this adventure, We need to complete these tasks:  <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/itsupportwale.com\/blog\/ubuntu-18-04-lts-desktop-installation-with-screenshots\/\" target=\"_blank\" rel=\"noreferrer noopener\" label=\"Install Ubuntu 18.04 LTS (opens in a new tab)\">Install Ubuntu 18.04 LTS<\/a>: Yes, The first and last thing you need to do before following this tutorial is only getting an installed Ubuntu 18.04 Server and get access to it. You can follow <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/itsupportwale.com\/blog\/ubuntu-18-04-lts-desktop-installation-with-screenshots\/\" target=\"_blank\">this tutorial<\/a><\/strong> to install it.  <\/li><\/ol>\n\n\n\n<p>Let&#8217;s start, We will complete our objective in some simple steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Install_Nginx\"><\/span>Step 1: Install Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A working web server is the first requirement of WordPress and we are using Nginx as our web server. Nginx is the second most used web server on the internet.<\/p>\n\n\n\n<p>Install Nginx Web server using the below commands :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install nginx<\/code><\/pre>\n\n\n\n<p>After installing Start and Enable the service of Nginx Web server using the below commands :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start nginx.service\nsudo systemctl enable nginx.service<\/code><\/pre>\n\n\n\n<p>After that verify that the Nginx service is running using the below command and also verify by browsing below URL in your web browser.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status nginx.service<\/code><\/pre>\n\n\n\n<p>URL: <strong>http:\/\/your_server_IP\/<\/strong><\/p>\n\n\n\n<p>You should see this Default web page of Nginx at this URL.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"312\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/nginx_default_html.jpg\" alt=\"nginx_default_html\" class=\"wp-image-742\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/nginx_default_html.jpg 844w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/nginx_default_html-300x111.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/nginx_default_html-768x284.jpg 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure>\n\n\n\n<p>If you see this page that means Nginx is installed and running. Now let&#8217;s move to the next step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Install_MySql\"><\/span>Step 2: Install MySql<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A database for all the content is the second requirement of WordPress, therefore, we are using MySql for this. MySql is a very reliable and simple to use database. We will install the latest version of MySql server Which is Version 8.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"You_can_follow_this_step_by_step_guide_to_install_and_start_MySql_Server_8_on_Ubuntu_18\"><\/span><a href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" label=\"You can follow this step by step guide to install and start MySql Server 8 on Ubuntu 18 (opens in a new tab)\">You can follow this step by step guide to install and start MySql Server 8 on Ubuntu 18<\/a><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Install_PHP_with_PHP-FPM\"><\/span>Step 3: Install PHP with PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>WordPress is built over PHP so it&#8217;s better if we install the latest version of it. Nginx uses PHP-FPM for PHP processing and process management.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"You_can_easily_install_the_latest_version_of_PHP_via_following_our_another_article_How_to_Install_Latest_PHP_73_on_Ubuntu_1804\"><\/span>You can easily install the latest version of PHP via following our another article: <a rel=\"noreferrer noopener\" label=\"How to Install Latest PHP 7.3 on Ubuntu 18.04 (opens in a new tab)\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-latest-php-7-3-on-ubuntu-18-04\/\" target=\"_blank\">How to Install Latest PHP 7.3 on Ubuntu 18.04<\/a><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>PHP-FPM and some other additional modules are required by WordPress. Those modules are not the default modules and are not installed when you install PHP.<\/p>\n\n\n\n<p>You can install these modules by running below commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php7.3-fpm php7.3-common php7.3-mysql php7.3-gmp php7.3-curl php7.3-intl php7.3-mbstring php7.3-xmlrpc php7.3-gd php7.3-xml php7.3-cli php7.3-zip<\/code><\/pre>\n\n\n\n<p>After that, we should change some settings of PHP-FPM for WordPress because these settings are supported by most of the CMS Softwares. <\/p>\n\n\n\n<p>For changing the settings open the configuration file by running below command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/php\/7.3\/fpm\/php.ini<\/code><\/pre>\n\n\n\n<p>And update the below settings with the given values and save the file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file_uploads = On\nallow_url_fopen = On\nshort_open_tag = On\nmemory_limit = 512M\ncgi.fix_pathinfo = 0\nupload_max_filesize = 200M\npost_max_size = 200M\nmax_execution_time = 400\ndate.timezone = Asia\/Kolkata<\/code><\/pre>\n\n\n\n<p>After that, open the FastCGI configuration file of Nginx and add the below lines at the end of the file. This is very important for redirections in Nginx.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/nginx\/fastcgi_params\nfastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;<\/code><\/pre>\n\n\n\n<p>OR<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\" >> \/etc\/nginx\/fastcgi_params<\/code><\/pre>\n\n\n\n<p>After that just reload the PHP-FPM service by the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload php7.3-fpm<\/code><\/pre>\n\n\n\n<p>OR<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/init.d\/php7.3-fpm reload<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Create_a_Database_for_WordPress\"><\/span>Step 4: Create a Database for WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this step, we create a MySql Database which is used by WordPress for saving all the contents of our blog or website. We use the settings which are required by WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_From_MySQL_Command_Line\"><\/span>Method 1: From MySQL Command Line<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>At the very first step, Login to the Mysql console by running this command. Enter the root password which you have created during MySql installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p>After that, create a new database by the command below. You can choose the database name of your choice. <\/p>\n\n\n\n<p>Choose the character set utf8_general_ci because it is recommended by its <a rel=\"noreferrer noopener\" aria-label=\"official website (opens in a new tab)\" href=\"https:\/\/wordpress.org\/support\/article\/how-to-install-wordpress\/\" target=\"_blank\">official website<\/a>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE my_wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;<\/code><\/pre>\n\n\n\n<p>Now, we create a new user for the database and give all permissions for only this database to the user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL ON my_wordpress.* TO 'my_wpuser'@'localhost' IDENTIFIED BY 'yourpassword';<\/code><\/pre>\n\n\n\n<p>Change the &#8220;my_wpuser&#8221; with your desired username and &#8220;yourpassword&#8221; with a strong password.<\/p>\n\n\n\n<p>After that, we flush the privileges table for applying recent changes and then exit from the MySql console.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;\nexit;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_From_PHPMyAdmin_GUI\"><\/span>Method 2: From PHPMyAdmin GUI<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Just in case, If you do not like the MySQL commands OR you just want to create the database with the PHPMyAdmin web interface.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/itsupportwale.com\/blog\/install-and-secure-phpmyadmin-with-nginx-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" label=\"You can install PHPMyAdmin in Ubuntu by following this article. (opens in a new tab)\">You can install PHPMyAdmin in Ubuntu by following this article.<\/a><\/li><\/ul>\n\n\n\n<p>Login to the PHPMyAdmin Web interface And in the <strong>Databases<\/strong> tab enter the database name in the <strong>database name<\/strong> field. And select the correct collation then click on <strong>Create<\/strong> Just like the image below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"553\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/create-wp-5-database-from-phpmyadmin.jpg\" alt=\"create-wp-5-database-from-phpmyadmin\" class=\"wp-image-1193\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/create-wp-5-database-from-phpmyadmin.jpg 897w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/create-wp-5-database-from-phpmyadmin-300x185.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/create-wp-5-database-from-phpmyadmin-768x473.jpg 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/figure><\/div>\n\n\n\n<p>Now you can see the newly created database in the list of databases. After that, Click on the name of the created database from the left sidebar menu. And goto <strong>privileges<\/strong> tab. Now click on <strong>Add user account<\/strong> option.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"289\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/add-user-for-wp-in-phpmyadmin.jpg\" alt=\"add-user-for-wp-in-phpmyadmin\" class=\"wp-image-1196\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/add-user-for-wp-in-phpmyadmin.jpg 864w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/add-user-for-wp-in-phpmyadmin-300x100.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/add-user-for-wp-in-phpmyadmin-768x257.jpg 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure><\/div>\n\n\n\n<p>After that, Enter the required details for user creation like username, password, etc. For, giving all permissions to this user click on <strong>check all<\/strong> options in front of <strong>Global Privileges<\/strong>. See the below image for reference.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"988\" height=\"1009\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/user-details-for-wp-in-phpmyadmin.jpg\" alt=\"user-details-for-wp-in-phpmyadmin\" class=\"wp-image-1198\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/user-details-for-wp-in-phpmyadmin.jpg 988w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/user-details-for-wp-in-phpmyadmin-294x300.jpg 294w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/user-details-for-wp-in-phpmyadmin-768x784.jpg 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/figure><\/div>\n\n\n\n<p>Click on the <strong>go<\/strong> button when done. Our database and user is ready now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Download_latest_version_of_WordPress\"><\/span>Step 5: Download latest version of WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>WordPress is widely used and very popular CMS software that&#8217;s why it also has the issue of security. It&#8217;s highly recommended to only install the latest update of WordPress.<\/p>\n\n\n\n<p>At the time of the download, the latest available version is 5.2.4. It may be different when you read this article. But the best thing is that the download link remains the same. <\/p>\n\n\n\n<p>Download the latest version by the below command or by clicking on the given link.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/wordpress.org\/latest.zip\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"DOWNLOAD LATEST WORDPRESS (opens in a new tab)\">DOWNLOAD LATEST WORDPRESS<\/a><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp &amp;&amp; wget https:\/\/wordpress.org\/latest.tar.gz<\/code><\/pre>\n\n\n\n<p>Extract the downloaded file in your HTML folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -zxvf latest.tar.gz\nsudo mv wordpress \/var\/www\/html\/wordpress<\/code><\/pre>\n\n\n\n<p>After that fix the ownership and permissions of WordPress files by the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R www-data:www-data \/var\/www\/html\/wordpress\/\nsudo chmod -R 755 \/var\/www\/html\/wordpress\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_Configure_Nginx_for_WordPress\"><\/span>Step 6: Configure Nginx for WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So now, We need to create an Nginx configuration file for our WordPress site and enable it. <\/p>\n\n\n\n<p>create the site configuration file by typing below command and paste the below-given content in that file. Replace example.com with your own domain name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/nginx\/sites-available\/example.com<\/code><\/pre>\n\n\n\n<p>After that, copy the below content and paste it in that file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n        # Redirection to www.\n        server_name example.com;\n\t    return 301 $scheme:\/\/www.example.com$request_uri;\n}\nserver {\t\n\t   server_name www.example.com;\n        root \/var\/www\/html;\n        index index.php; \n        location \/ {\n            if (!-e $request_filename) {\n                    rewrite ^.*$ \/index.php last;\n            }\n            try_files $uri $uri\/ index.php?args;\n            rewrite ^\/sitemap_index\\.xml$ \/index.php?sitemap=1 last;\n            rewrite ^\/([^\/]+?)-sitemap([0-9]+)?\\.xml$ \/index.php?sitemap=$1&amp;sitemap_n=$2 last;\n        }\n        location ^\/index.php(\/.*)?$ {\n\n            fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\n            fastcgi_pass unix:\/var\/run\/php7.3-fpm.sock;\n            fastcgi_index index.php;\n            include fastcgi_params;\n        }\n        location ~ \\.php$ {\n        try_files $uri \/index.php =404;\n        fastcgi_pass unix:\/run\/php\/php7.3-fpm.sock;\n        fastcgi_index index.php;\n        include fastcgi_params;\n        }\n        location ~* ^.+\\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|js|css|woff2)$ {\n        access_log off; log_not_found off; expires max;\n        }\n        location = \/robots.txt { access_log off; log_not_found off; }\n\t    location = \/favicon.ico { access_log off; log_not_found off; }\n        location ~ \/\\. { deny  all; access_log off; log_not_found off; }\n        access_log   \/var\/log\/nginx\/example.com_access.log;\n        #access_log off;\n        error_log    \/var\/log\/nginx\/example.com_error.log;\n        gzip_types text\/plain text\/css application\/json application\/javascript application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript application\/vnd.ms-fontobject application\/x-font-ttf font\/opentype image\/svg+xml image\/x-icon image\/jpeg image\/png image\/gif;\n    \terror_page 500 502 503 504 404 403 \/503.html;\n            location = \/503.html {\n                    root \/usr\/share\/nginx\/html;\n                    internal;\n            }\n        location ~ ^\/\\.user\\.ini {\n        deny all;\n        }\n}<\/code><\/pre>\n\n\n\n<p>After saving that file, we have to enable this config by creating a soft link to another Nginx folder.<\/p>\n\n\n\n<p>To enable the site config, run this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ln -s \/etc\/nginx\/sites-available\/example.com \/etc\/nginx\/sites-enabled\/<\/code><\/pre>\n\n\n\n<p>After that, restart or reloading the Nginx is required using these commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart nginx<\/code><\/pre>\n\n\n\n<p>OR<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl reload nginx<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_7_Configure_WordPress_and_verify_Access\"><\/span>Step 7: Configure WordPress and verify Access<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After that, we need to complete the WordPress configuration on the web interface and check that we have access to our WordPress Dashboard.<\/p>\n\n\n\n<p>Open your domain in a Web Browser and you will the Configuration Wizard of WordPress like the image below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-install-wizard-1024x574.jpg\" alt=\"wp-5-with-nginx-install-wizard\" class=\"wp-image-1216\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-install-wizard-1024x574.jpg 1024w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-install-wizard-300x168.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-install-wizard-768x431.jpg 768w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-install-wizard.jpg 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>When you click on Let&#8217;s go, you will see the below screen where you have to fill the details about the database and user for authentication. Fill the required details and click on the<strong> Submit<\/strong> button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"599\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-db-details-on-wizard.jpg\" alt=\"wp-5-with-nginx-db-details-on-wizard\" class=\"wp-image-1218\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-db-details-on-wizard.jpg 864w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-db-details-on-wizard-300x208.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-db-details-on-wizard-768x532.jpg 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure><\/div>\n\n\n\n<p>If you get this error &#8211; &#8220;<strong>Sorry, but I can\u2019t write the wp-config.php file<\/strong>&#8220;. Then your WordPress installation having a permission issue. To fix this run the below commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R www-data:www-data \/var\/www\/html\nchmod -R 755 \/var\/www\/html<\/code><\/pre>\n\n\n\n<p>If everything is perfect you will be redirected to the Welcome screen. Here you have to create the Admin user and Website Name. <\/p>\n\n\n\n<p>They can be changed later but we have to create one during installation.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"259\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-run-installation-min.jpg\" alt=\"wp-5-wizard-run-installation-min\" class=\"wp-image-1219\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-run-installation-min.jpg 748w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-run-installation-min-300x104.jpg 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"967\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-welcome-screen.jpg\" alt=\"wp-5-wizard-welcome-screen\" class=\"wp-image-1220\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-welcome-screen.jpg 864w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-welcome-screen-268x300.jpg 268w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-wizard-welcome-screen-768x860.jpg 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure><\/div>\n\n\n\n<p>If you get the below Success screen, it means your WordPress Installation is complete and you can log in by admin user.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"416\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-success-screen.jpg\" alt=\"wp-5-success-screen\" class=\"wp-image-1222\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-success-screen.jpg 747w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-success-screen-300x167.jpg 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/figure><\/div>\n\n\n\n<p>After Login, you can see the About page for check the current version.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"459\" src=\"https:\/\/oracle.itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-about-screen.jpg\" alt=\"wp-5-about-screen\" class=\"wp-image-1225\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-about-screen.jpg 864w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-about-screen-300x159.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-about-screen-768x408.jpg 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this tutorial, we learn, how to install WordPress 5.2 on Ubuntu 18.04 with Nginx and Mysql along with the latest PHP and PHP-FPM. PHP-FPM performs faster than apache in terms of processing.<\/p>\n\n\n\n<p>Share your thoughts and suggestions in the comment section. You can ask for any other tutorials or any other issues in the comment section.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Also Read: <strong><a href=\"https:\/\/itsupportwale.com\/blog\/creating-a-backup-user-with-read-only-permission-for-mysql-db\/\" target=\"_blank\" rel=\"noreferrer noopener\" label=\" (opens in a new tab)\">Creating a backup user with read-only permission for MySQL DB<\/a><\/strong><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction : WordPress is the most widely used open-source CMS (content management system) software available on the internet. With WordPress, you can easily create a beautiful and highly customizable Blog, Website or a Web app. WordPress uses Mysql for database and PHP processing. Latest WordPress 5.2.3 is released on September 5, 2019. In this tutorial, &#8230; <a title=\"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3\" class=\"read-more\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\" aria-label=\"Read more  on Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1232,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[347,2,7,348],"tags":[362,363,240,352,355,350,356,349,358,351,354,360,359,357,361,353],"class_list":["post-553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms","category-tutorials","category-ubuntu","category-wordpress","tag-install-nginx-php-mysql-ubuntu-18-04","tag-install-nginx-php7-3-ubuntu","tag-install-phpmyadmin-ubuntu-18-04-nginx","tag-install-wordpress","tag-install-wordpress-nginx-on-ubuntu-18","tag-install-wordpress-on-lemp","tag-install-wordpress-ubuntu-18-04-nginx","tag-installing-wordpress-with-nginx-unit","tag-nginx-wordpress","tag-nginx-wordpress-permalinks","tag-nginx-wordpress-subdirectory","tag-php-fpm-ubuntu-nginx","tag-php-ubuntu-18-nginx","tag-setup-wordpress-ubuntu-nginx","tag-ubuntu-18-04-wordpress","tag-wordpress-nginx-https"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\" \/>\n<meta property=\"og:site_name\" content=\"ITSupportWale\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-31T12:18:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T10:26:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"864\" \/>\n\t<meta property=\"og:image:height\" content=\"459\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Techie\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Techie\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\"},\"author\":{\"name\":\"Techie\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\"},\"headline\":\"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3\",\"datePublished\":\"2019-10-31T12:18:46+00:00\",\"dateModified\":\"2026-02-17T10:26:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\"},\"wordCount\":1303,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg\",\"keywords\":[\"install nginx php mysql ubuntu 18.04\",\"install nginx php7.3 ubuntu\",\"install phpmyadmin ubuntu 18.04 nginx\",\"install wordpress\",\"install wordpress nginx on ubuntu 18\",\"install wordpress on lemp\",\"install wordpress ubuntu 18.04 nginx\",\"installing wordpress with nginx unit\",\"nginx wordpress\",\"nginx wordpress permalinks\",\"nginx wordpress subdirectory\",\"php fpm ubuntu nginx\",\"php ubuntu 18 nginx\",\"setup wordpress ubuntu nginx\",\"ubuntu 18.04 wordpress\",\"wordpress nginx https\"],\"articleSection\":[\"cms\",\"Tutorials\",\"Ubuntu\",\"wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\",\"name\":\"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg\",\"datePublished\":\"2019-10-31T12:18:46+00:00\",\"dateModified\":\"2026-02-17T10:26:32+00:00\",\"description\":\"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.\",\"breadcrumb\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg\",\"width\":864,\"height\":459,\"caption\":\"wp-5-with-nginx-banner\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itsupportwale.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"name\":\"ITSupportWale\",\"description\":\"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides\",\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\",\"name\":\"itsupportwale\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"width\":1119,\"height\":144,\"caption\":\"itsupportwale\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\",\"name\":\"Techie\",\"sameAs\":[\"https:\/\/itsupportwale.com\",\"iswblogadmin\"],\"url\":\"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale","description":"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.","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:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/","og_locale":"en_US","og_type":"article","og_title":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale","og_description":"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.","og_url":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/","og_site_name":"ITSupportWale","article_publisher":"https:\/\/www.facebook.com\/Itsupportwale-298547177495978","article_published_time":"2019-10-31T12:18:46+00:00","article_modified_time":"2026-02-17T10:26:32+00:00","og_image":[{"width":864,"height":459,"url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg","type":"image\/jpeg"}],"author":"Techie","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Techie","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#article","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/"},"author":{"name":"Techie","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d"},"headline":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3","datePublished":"2019-10-31T12:18:46+00:00","dateModified":"2026-02-17T10:26:32+00:00","mainEntityOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/"},"wordCount":1303,"commentCount":0,"publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg","keywords":["install nginx php mysql ubuntu 18.04","install nginx php7.3 ubuntu","install phpmyadmin ubuntu 18.04 nginx","install wordpress","install wordpress nginx on ubuntu 18","install wordpress on lemp","install wordpress ubuntu 18.04 nginx","installing wordpress with nginx unit","nginx wordpress","nginx wordpress permalinks","nginx wordpress subdirectory","php fpm ubuntu nginx","php ubuntu 18 nginx","setup wordpress ubuntu nginx","ubuntu 18.04 wordpress","wordpress nginx https"],"articleSection":["cms","Tutorials","Ubuntu","wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/","url":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/","name":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3 - ITSupportWale","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg","datePublished":"2019-10-31T12:18:46+00:00","dateModified":"2026-02-17T10:26:32+00:00","description":"In this tutorial, we will install the latest version of Wordpress with LEMP stack ( Linux, Nginx, MySQL, and PHP ) on Ubuntu 18.04 LTS.","breadcrumb":{"@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#primaryimage","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/10\/wp-5-with-nginx-banner.jpg","width":864,"height":459,"caption":"wp-5-with-nginx-banner"},{"@type":"BreadcrumbList","@id":"https:\/\/itsupportwale.com\/blog\/install-wordpress-5-2-on-ubuntu-18-04-with-nginx-mysql-8-and-php-7-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsupportwale.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install WordPress 5.2 On Ubuntu 18.04 with Nginx, Mysql 8 and PHP 7.3"}]},{"@type":"WebSite","@id":"https:\/\/itsupportwale.com\/blog\/#website","url":"https:\/\/itsupportwale.com\/blog\/","name":"ITSupportWale","description":"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides","publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itsupportwale.com\/blog\/#organization","name":"itsupportwale","url":"https:\/\/itsupportwale.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","width":1119,"height":144,"caption":"itsupportwale"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Itsupportwale-298547177495978"]},{"@type":"Person","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d","name":"Techie","sameAs":["https:\/\/itsupportwale.com","iswblogadmin"],"url":"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":6,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"predecessor-version":[{"id":4645,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/553\/revisions\/4645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media\/1232"}],"wp:attachment":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}