{"id":32558,"date":"2020-07-24T15:01:17","date_gmt":"2020-07-24T20:01:17","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=32558"},"modified":"2022-06-03T03:32:50","modified_gmt":"2022-06-03T08:32:50","slug":"how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/","title":{"rendered":"How to Install WordPress with LAMP Stack on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\" alt=\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\" class=\"wp-image-35302\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p>In this tutorial, we will show you how to install WordPress on Ubuntu 20.04. We will also show you how to install and configure a fully functional LAMP stack, including the installation of the Apache web server, MySQL database server, and PHP 7.4.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-lamp-ubuntu-20.04.jpg\" alt=\"install wordpress lamp ubuntu 20.04\" class=\"wp-image-35301\"\/><\/figure><\/div>\n\n\n\n<p>WordPress is one of the world&#8217;s most popular, if not <em>the<\/em> world&#8217;s most popular&nbsp;<a href=\"https:\/\/www.rosehosting.com\/cms-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">content management system<\/a> (CMS). It is a free and open-source platform built entirely in PHP &#8211; it&#8217;s used by millions of people for running blogs, business websites, e-commerce stores, and much more. With features such as in-depth theming, thousands of plug-ins, and a huge community, WordPress is probably the most user-friendly CMS you can choose for building your website. The installation is very simple &#8211; all you need to do is closely follow the steps in this tutorial and you will have your WordPress website up and running in no time.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent 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-69eec2e694ba9\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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-69eec2e694ba9\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Requirements\" >Requirements:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Connect-to-your-Server-and-Update-your-System\" >Connect to your Server and Update your System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Install-LAMP\" >Install LAMP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Install-WordPress\" >Install WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Create-a-Database-for-WordPress\" >Create a Database for WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#Configure-an-Apache-Virtual-Host\" >Configure an Apache Virtual Host<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-requirements\"><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>For the purposes of this tutorial, we will use an Ubuntu VPS. Our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu VPS hosting<\/a> already comes preinstalled with a fully working LAMP stack. However, we will still go through all the necessary steps and show you how to install and configure the LAMP stack yourself, in case you are doing this on a clean server.<\/li><li>\u00a0Full SSH root access or a <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/\">user with sudo privileges<\/a> is also required. Our VPSes all come with full root access at no additional cost.<\/li><li>A valid domain name for accessing your WordPress site (optional)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-connect-to-your-server-and-update-your-system\"><span class=\"ez-toc-section\" id=\"Connect-to-your-Server-and-Update-your-System\"><\/span>Connect to your Server and Update your System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we begin, let&#8217;s <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\">connect to your VPS via SSH<\/a> as the root user (or with an administrator account) and update your system software to the latest available version.<\/p>\n\n\n\n<p>To connect to your server via SSH as the user root, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@<span style=\"color: #ff0000;\">IP_ADDRESS<\/span> -p <span style=\"color: #ff0000;\">PORT_NUMBER<\/span><\/pre>\n\n\n\n<p>Make sure to replace &#8220;<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>&#8221; with your actual server IP address and SSH port number. The default SSH port is 22.<\/p>\n\n\n\n<p>Once logged in, make sure that your server is up-to-date by running the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update\nsudo apt-get upgrade<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-lamp\"><span class=\"ez-toc-section\" id=\"Install-LAMP\"><\/span>Install LAMP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we proceed with the WordPress installation, we will need to prepare our server and set up a LAMP stack. The LAMP stack is a combination of software that is required on your server so that you can host dynamic websites built on PHP, such as WordPress. The LAMP acronym stands for <strong>L<\/strong>inux operating system, <strong>A<\/strong>pache web server, <strong>M<\/strong>ySQL database server and <strong>P<\/strong>HP. If you already have a working LAMP setup installed on your server, you can skip this and go ahead to the next step of this tutorial.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-install-the-apache-web-server\">1. Install the Apache Web Server<\/h3>\n\n\n\n<p>Apache is a fast and secure web server and one of the most popular and widely used web servers in the world. Its ease of use makes it very appealing when starting with web servers and <a href=\"https:\/\/www.rosehosting.com\/apache-hosting.html\">web server hosting<\/a>.<\/p>\n\n\n\n<p>To install the Apache web server, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install apache2<\/pre>\n\n\n\n<p>Once the installation is complete, enable the Apache service to start automatically upon system boot. You can do that with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl enable apache2<\/pre>\n\n\n\n<p>To verify that Apache is running, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status apache2<\/pre>\n\n\n\n<p>You can also open your web browser and enter your server IP address, (e.g. <code>http:\/\/<span style=\"color: #ff0000;\">your_server_ip_address<\/span><\/code>). If Apache is successfully installed, you should see the Apache default welcome page.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"647\" height=\"518\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-on-ubuntu-20.04.png\" alt=\"how to install wordpress with lamp on ubuntu 20.04\" class=\"wp-image-35303\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-on-ubuntu-20.04.png 647w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-on-ubuntu-20.04-300x240.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-on-ubuntu-20.04-150x120.png 150w\" sizes=\"(max-width: 647px) 100vw, 647px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-install-the-mysql-database-server\">2. Install the MySQL Database Server<\/h3>\n\n\n\n<p>The next step is to install the <a href=\"https:\/\/www.rosehosting.com\/mysql-hosting.html\">MySQL database server<\/a> which will be used for the data storage of your WordPress site.<\/p>\n\n\n\n<p>To install the MySQL database server, enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install mysql-server<\/pre>\n\n\n\n<p>During the installation, you will be asked to enter a password for the MySQL root user. Make sure to enter a strong password.<\/p>\n\n\n\n<p>To further improve the security of our MySQL installation, as well as set up a password for our MySQL root user, we need to run the&nbsp;<code>mysql_secure_installation<\/code>&nbsp;script and follow the on-screen instructions. Run the command below to configure your system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql_secure_installation<\/pre>\n\n\n\n<p>If the program asks you to enter your current MySQL root password, just press your [Enter] key once, as no password is set by default when installing MySQL.<\/p>\n\n\n\n<p>A few more questions will be displayed on-screen \u2013 it is recommended that you answer with <strong>YES<\/strong>&nbsp;to all of them by entering the character \u2018Y\u2019:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : Y\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : Y\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : Y<\/pre>\n\n\n\n<p>You will also need to enable MySQL to start on boot with this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl enable mysql\n\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-install-php-7-4\">3. Install PHP 7.4<\/h3>\n\n\n\n<p>The last step of our LAMP stack setup is to install <a href=\"https:\/\/www.rosehosting.com\/php-hosting.html\">PHP<\/a>. WordPress is a PHP-based CMS, so we need PHP for processing the dynamic content of our WordPress site.<\/p>\n\n\n\n<p>Ubuntu 20.04 comes with PHP 7.4 by default. We will also need some additional modules in order to allow PHP to connect and communicate with our Apache and MySQL instances. To install PHP together with the required MySQL and Apache modules, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install php libapache2-mod-php php-mysql<\/pre>\n\n\n\n<p>WordPress and many of its plugins use PHP extensions that you\u2019ll need to install manually. This section is optional, but it will allow you to access some WordPress features you might not have access to with a basic PHP installation. Simply run this command and the packages will install.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip<\/pre>\n\n\n\n<p>To verify that PHP 7.4 is successfully installed, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php -v<\/pre>\n\n\n\n<p>You should get the following output on your screen:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">PHP 7.4.3 (cli) (built: May  5 2020 12:14:27) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies\n    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-wordpress\"><span class=\"ez-toc-section\" id=\"Install-WordPress\"><\/span>Install WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that we have our LAMP environment completely set up, we can now proceed with the WordPress installation. We will first download and place the WordPress installation files in the default web server document root directory,&nbsp;<code>\/var\/www\/html<\/code>.<\/p>\n\n\n\n<p>You can move to this directory using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html<\/pre>\n\n\n\n<p>We can now download the latest WordPress installation with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget -c http:\/\/wordpress.org\/latest.tar.gz<\/pre>\n\n\n\n<p>Then, extract the files with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -xzvf latest.tar.gz<\/pre>\n\n\n\n<p>The extracted WordPress files will be now placed in the <code>wordpress<\/code> directory at the following location on your server <code>\/var\/www\/html\/wordpress<\/code><\/p>\n\n\n\n<p>The owner of these files needs to be the user of the web server running on your system. In our example, we are using the Apache web server and Apache runs as the <code>www-data<\/code> user on Ubuntu 20.04.&nbsp; To change the owner and set the correct permissions for these files, you need to run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chown -R www-data:www-data \/var\/www\/html\/wordpress<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-database-for-wordpress\"><span class=\"ez-toc-section\" id=\"Create-a-Database-for-WordPress\"><\/span>Create a Database for WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Next, we will create our MySQL user and database for our WordPress site. Log in to your MySQL server with the following command and enter your MySQL root password:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u root -p<\/pre>\n\n\n\n<p>To create a new database for our WordPress installation, run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CREATE DATABASE <span style=\"color: #ff0000;\">wordpress_db<\/span>;\nCREATE USER <span style=\"color: #ff0000;\">wordpress_user<\/span>@localhost IDENTIFIED BY '<span style=\"color: #ff0000;\">strong-password<\/span>';\nGRANT ALL PRIVILEGES ON <span style=\"color: #ff0000;\">wordpress_db<\/span>.* TO <span style=\"color: #ff0000;\">wordpress_user<\/span>@localhost;\nFLUSH PRIVILEGES;\nexit;<\/pre>\n\n\n\n<p>You can replace the database name (<span style=\"color: #ff0000;\">wordpress_db<\/span>) and the MySQL user name (<span style=\"color: #ff0000;\">wordpress_user<\/span>) with your own names if you wish. Also, make sure to replace &#8220;<span style=\"color: #ff0000;\">strong-password<\/span>&#8221; with a real, strong password.<\/p>\n\n\n\n<p>Once the database is created, we will need to add this information to the WordPress configuration file.<\/p>\n\n\n\n<p>Make sure you are inside the <code>\/var\/www\/html\/wordpress<\/code> directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/wordpress<\/pre>\n\n\n\n<p>and then run the following command to rename the sample configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv wp-config-sample.php wp-config.php<\/pre>\n\n\n\n<p>Now open the wp-config.php file with your favorite text editor, for example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano wp-config.php<\/pre>\n\n\n\n<p>And update the database settings, replacing <code>wordpress_db<\/code>, <code>wordpress_user<\/code> and <code>strong_password<\/code> with your own details:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine('DB_NAME', '<span style=\"color: #ff0000;\">wordpress_db<\/span>');\n\n\/** MySQL database username *\/\ndefine('DB_USER', '<span style=\"color: #ff0000;\">wordpress_user<\/span>');\n\n\/** MySQL database password *\/\ndefine('DB_PASSWORD', '<span style=\"color: #ff0000;\">strong-password<\/span>');\n\n\/** MySQL hostname *\/\ndefine('DB_HOST', 'localhost');\n\n\/** Database Charset to use in creating database tables. *\/\ndefine('DB_CHARSET', 'utf8');\n\n\/** The Database Collate type. Don't change this if in doubt. *\/\ndefine('DB_COLLATE', '');<\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<p>With this being done, you can now access your WordPress page and finish the installation by following the on-screen instructions in your browser at <code>http:\/\/<span style=\"color: #ff0000;\">your_server_ip_address<\/span>\/wordpress<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configure-an-apache-virtual-host\"><span class=\"ez-toc-section\" id=\"Configure-an-Apache-Virtual-Host\"><\/span>Configure an Apache Virtual Host<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you have a valid domain name, and you want to use it to access your WordPress instance, you will need to create a new Apache virtual host file. Let&#8217;s say we want to access our WordPress with the <code>mydomain.com<\/code> domain name. Wherever you see a <code>mydomain.com<\/code> show up in the tutorial, make sure to replace it with your domain name to make sure that everything is named correctly.<\/p>\n\n\n\n<p>First, run the following command to create the virtual host configuration file :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/apache2\/sites-available\/<span style=\"color: #ff0000;\">mydomain.com<\/span>.conf<\/pre>\n\n\n\n<p>And add the following content to the file (you can replace <code>mydomain.com<\/code> with your actual domain name):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\n\nServerAdmin admin@<span style=\"color: #ff0000;\">mydomain.com<\/span>\nServerName <span style=\"color: #ff0000;\">mydomain.com<\/span>\nServerAlias www.<span style=\"color: #ff0000;\">mydomain.com<\/span>\nDocumentRoot \/var\/www\/html\/wordpress\n\nErrorLog ${APACHE_LOG_DIR}\/<span style=\"color: #ff0000;\">mydomain.com<\/span>_error.log\nCustomLog ${APACHE_LOG_DIR}\/<span style=\"color: #ff0000;\">mydomain.com<\/span>_access.log combined\n\n&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p>To enable the virtual host we have just created, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2ensite mydomain.com.conf<\/pre>\n\n\n\n<p>Another alternative way to do this is by creating a symbolic link for your virtual host in <code>\/etc\/apache2\/sites-enabled<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ln -s \/etc\/apache2\/sites-available\/mydomain.com.conf \/etc\/apache2\/sites-enabled\/<\/pre>\n\n\n\n<p>Once you enable the virtual host, using either of the above methods, you will need to restart the Apache web server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart apache2<\/pre>\n\n\n\n<p>If the DNS records are properly configured, and your domain is pointed to your server, you can use it to access your WordPress installation by typing <code>http:\/\/mydomain.com<\/code> in your browser and see the following screen:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"356\" height=\"688\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-lamp-ubuntu-20.04.png\" alt=\"install wordpress lamp ubuntu 20.04\" class=\"wp-image-35304\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-lamp-ubuntu-20.04.png 356w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-lamp-ubuntu-20.04-155x300.png 155w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-lamp-ubuntu-20.04-78x150.png 78w\" sizes=\"(max-width: 356px) 100vw, 356px\" \/><\/figure><\/div>\n\n\n\n<p>Choose your language and click &#8220;Continue&#8221;.<\/p>\n\n\n\n<p>Enter your preferred information at the main installation screen, such as site title, username, password and email, and click on &#8220;Install WordPress&#8221;:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"756\" height=\"741\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/lamp-wordpress-ubuntu-20.04.png\" alt=\"lamp wordpress ubuntu 20.04\" class=\"wp-image-35305\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/lamp-wordpress-ubuntu-20.04.png 756w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/lamp-wordpress-ubuntu-20.04-300x294.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/lamp-wordpress-ubuntu-20.04-150x147.png 150w\" sizes=\"(max-width: 756px) 100vw, 756px\" \/><\/figure><\/div>\n\n\n\n<p>You will be informed that WordPress has been successfully installed and you can now log in to your administration dashboard using the information you have previously set up.<\/p>\n\n\n\n<p>After a successful login, you will be greeted by the WordPress dashboard page:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"695\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin-1024x695.png\" alt=\"\" class=\"wp-image-32570\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin-1024x695.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin-300x204.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin-150x102.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin-768x521.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/05\/wordpress_admin.png 1081w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Congratulations! WordPress has been successfully installed on your server. You can now start building and customize your site according to your needs.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\" alt=\"install wordpress with lamp stack on ubuntu 20.04\" class=\"wp-image-35307\"\/><\/figure><\/div>\n\n\n\n<p>Of course, you don\u2019t have to install WordPress with LAMP Stack on Ubuntu 20.04 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">Optimized WordPress Hosting<\/a> services, in which case you can simply ask our expert system administrators to install WordPress on Ubuntu 20.04 for you, using the LAMP stack or any other web hosting stack of your choice. They are available 24\u00d77 and will take care of your request immediately. If you liked this post, you may also want to read <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-with-php-7-4-on-ubuntu-20-04\/\">How To Install LAMP With PHP 7.4 on Ubuntu 20.04<\/a>.<\/p>\n\n\n\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post, on how to install WordPress with LAMP Stack on Ubuntu 20.04, please share it with your friends on the social networks using the buttons below or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install WordPress on Ubuntu 20.04. We will also show you how &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#more-32558\" aria-label=\"Read more about How to Install WordPress with LAMP Stack on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":35302,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1698],"tags":[292,91,1839,148],"class_list":["post-32558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-ubuntu","tag-cms","tag-lamp","tag-ubuntu-20-04","tag-wordpress","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install WordPress with LAMP Stack on Ubuntu 20.04<\/title>\n<meta name=\"description\" content=\"Learn how to install WordPress with LAMP stack on Ubuntu 20.04, including the installation of Apache, MySQL, &amp; PHP 7.4.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-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 WordPress with LAMP Stack on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"Today we gonna show you How to Install WordPress with LAMP Stack on Ubuntu 20.04, including the installation of Apache, MySQL, &amp; PHP 7.4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-24T20:01:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:32:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\" \/>\n<meta name=\"twitter:description\" content=\"Today we gonna show you How to Install WordPress with LAMP Stack on Ubuntu 20.04, including the installation of Apache, MySQL, &amp; PHP 7.4.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\",\"datePublished\":\"2020-07-24T20:01:17+00:00\",\"dateModified\":\"2022-06-03T08:32:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/\"},\"wordCount\":1575,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\",\"keywords\":[\"cms\",\"lamp\",\"Ubuntu 20.04\",\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/\",\"name\":\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\",\"datePublished\":\"2020-07-24T20:01:17+00:00\",\"dateModified\":\"2022-06-03T08:32:50+00:00\",\"description\":\"Learn how to install WordPress with LAMP stack on Ubuntu 20.04, including the installation of Apache, MySQL, & PHP 7.4.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install WordPress with LAMP Stack on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install WordPress with LAMP Stack on Ubuntu 20.04","description":"Learn how to install WordPress with LAMP stack on Ubuntu 20.04, including the installation of Apache, MySQL, & PHP 7.4.","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:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install WordPress with LAMP Stack on Ubuntu 20.04","og_description":"Today we gonna show you How to Install WordPress with LAMP Stack on Ubuntu 20.04, including the installation of Apache, MySQL, & PHP 7.4.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-07-24T20:01:17+00:00","article_modified_time":"2022-06-03T08:32:50+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install WordPress with LAMP Stack on Ubuntu 20.04","twitter_description":"Today we gonna show you How to Install WordPress with LAMP Stack on Ubuntu 20.04, including the installation of Apache, MySQL, & PHP 7.4.","twitter_image":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install WordPress with LAMP Stack on Ubuntu 20.04","datePublished":"2020-07-24T20:01:17+00:00","dateModified":"2022-06-03T08:32:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/"},"wordCount":1575,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","keywords":["cms","lamp","Ubuntu 20.04","wordpress"],"articleSection":["CMS, CRM, ERP","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/","name":"How to Install WordPress with LAMP Stack on Ubuntu 20.04","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","datePublished":"2020-07-24T20:01:17+00:00","dateModified":"2022-06-03T08:32:50+00:00","description":"Learn how to install WordPress with LAMP stack on Ubuntu 20.04, including the installation of Apache, MySQL, & PHP 7.4.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/07\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"How to Install WordPress with LAMP Stack on Ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install WordPress with LAMP Stack on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=32558"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32558\/revisions"}],"predecessor-version":[{"id":37534,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32558\/revisions\/37534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/35302"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=32558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=32558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=32558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}