{"id":31972,"date":"2020-01-29T12:56:55","date_gmt":"2020-01-29T18:56:55","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31972"},"modified":"2022-06-03T03:33:11","modified_gmt":"2022-06-03T08:33:11","slug":"how-to-install-wordpress-with-nginx-on-debian-10","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/","title":{"rendered":"How to Install WordPress with Nginx on Debian 10"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32271\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will explain how to install WordPress with Nginx on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 10 VPS<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32273\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/configure-install-wordpress-cms-platform-nginx-debian10-vps.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>WordPress is one of the most popular content management systems known all over the world. It is an open-source CMS platform based on PHP and MySQL. WordPress allows you to set up flexible and powerful websites easily. Using WordPress, you can develop a website for a small business or a large enterprise. You can extend the functionality of the WordPress site with the help of its free and premium plugins and themes. WordPress is the most user-friendly CMS compared to other content management systems.<\/p>\n<p><strong>Installing WordPress on Debian 10 with Nginx as a web server<\/strong>\u00a0should take less than 10 minutes to complete. Let&#8217;s get started with this tutorial.<br \/>\n<!--more--><\/p>\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-69fd0a45672fa\" 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-69fd0a45672fa\"  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-nginx-on-debian-10\/#Prerequisites\" >Prerequisites<\/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-nginx-on-debian-10\/#Step-1-Log-in-via-SSH-and-Update-Packages\" >Step 1: Log in via SSH and Update Packages<\/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-nginx-on-debian-10\/#Step-2-Install-Nginx-PHP-and-MariaDB\" >Step 2: Install Nginx, PHP, and MariaDB<\/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-nginx-on-debian-10\/#Step-3-Configure-a-WordPress-Database\" >Step 3: Configure a WordPress Database<\/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-nginx-on-debian-10\/#Step-4-Install-WordPress\" >Step 4: Install 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-nginx-on-debian-10\/#Step-5-Configure-Nginx-for-WordPress\" >Step 5: 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-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#Step-6-Access-the-WordPress-Site\" >Step 6: Access the WordPress Site<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A Debian 10 VPS with root access or a user with <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-users-and-manage-their-sudo-privileges-on-ubuntu\/\">sudo privileges<\/a>.<\/li>\n<li>A valid domain name that is set up and pointing to your VPS&#8217; IP address. In this tutorial, we will use <code>example.com<\/code> domain.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update-Packages\"><\/span>Step 1: Log in via SSH and Update Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your Debian 10 VPS with SSH as the root user:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_number<\/span><\/pre>\n<p>Replace \u201croot\u201d with a user that has sudo privileges if necessary. Additionally, replace \u201c<span style=\"color: #ff0000;\">IP_Address<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">Port_Number<\/span>\u201d with your server\u2019s respective IP address and SSH port number. Next, let&#8217;s make sure that we&#8217;re on Debian 10. You can do that like this:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this as the output:<\/p>\n<pre>Distributor ID: Debian\r\nDescription:    Debian GNU\/Linux 10 (buster)\r\nRelease:        10\r\nCodename:       buster<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre># apt update &amp;&amp; apt upgrade\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Nginx-PHP-and-MariaDB\"><\/span>Step 2: Install Nginx, PHP, and MariaDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress requires a web server on which it will serve its content. It is written in PHP and uses a MySQL\/MariaDB database to store its information. We can install Nginx, MariaDB, PHP, and other PHP modules by running the following command:<\/p>\n<pre>apt-get install nginx mariadb-server mariadb-client php-cgi php-common php-fpm php-pear php-mbstring php-zip php-net-socket php-gd php-xml-util php-gettext php-mysql php-bcmath unzip wget git -y<\/pre>\n<p>Once all the packages are installed, open the <code>php.ini<\/code> file and tweak some settings:<\/p>\n<pre>nano \/etc\/php\/7.3\/fpm\/php.ini<\/pre>\n<p>Make the following changes:<\/p>\n<pre>post_max_size = 64M\r\nmemory_limit = 256M\r\nmax_execution_time = 300\r\nupload_max_filesize = 32M\r\ndate.timezone = America\/Chicago<\/pre>\n<p>Save and close the file, then restart PHP-FPM service to apply the configuration changes:<\/p>\n<pre>systemctl restart php7.3-fpm<\/pre>\n<p>Note: You can change the above PHP settings as per your requirements.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Configure-a-WordPress-Database\"><\/span>Step 3: Configure a WordPress Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will need to create a database and user for WordPress. WordPress will use this database to store its information, and the user to have access to the database.<\/p>\n<p>First, log in to MariaDB shell with the following command:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>Provide your <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-change-root-password-in-linux\/\">root password<\/a> when prompt then create a database and user with the following command:<\/p>\n<pre>MariaDB [(none)]&gt; CREATE DATABASE wpdb;\r\nMariaDB [(none)]&gt; CREATE USER 'wpuser'@'localhost' identified by 'dbpassword';<\/pre>\n<p>Don&#8217;t forget to choose a strong password for your database user.<\/p>\n<p>Now, you have a valid database and user for WordPress. Next, grant all the privileges to the WordPress database:<\/p>\n<pre>MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON wpdb.* TO 'wpuser'@'localhost';<\/pre>\n<p>Next, flush the privileges to apply the changes we\u2019ve made and exit from the MariaDB shell with the following command:<\/p>\n<pre>MariaDB [(none)]&gt; FLUSH PRIVILEGES;\r\nMariaDB [(none)]&gt; EXIT;<\/pre>\n<p>Once you have done, you can proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-WordPress\"><\/span>Step 4: Install WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we will need to download the latest version of the WordPress source from its official website. Run the following command to download the latest release of WordPress:<\/p>\n<pre>cd \/var\/www\/html\/\r\nwget https:\/\/wordpress.org\/latest.tar.gz<\/pre>\n<p>Once the download is completed, extract the downloaded file with the following command:<\/p>\n<pre>tar -xvzf latest.tar.gz<\/pre>\n<p>Next, change the directory to wordpress and copy the sample configuration file:<\/p>\n<pre>cd wordpress\r\ncp wp-config-sample.php wp-config.php<\/pre>\n<p>Next, open the file <code>wp-config.php<\/code> with the nano editor:<\/p>\n<pre>nano wp-config.php<\/pre>\n<p>Change the database, database user and password which we have created earlier:<\/p>\n<pre>\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\r\n\/** The name of the database for WordPress *\/\r\ndefine( 'DB_NAME', 'wpdb' );\r\n\r\n\/** MySQL database username *\/\r\ndefine( 'DB_USER', 'wpuser' );\r\n\r\n\/** MySQL database password *\/\r\ndefine( 'DB_PASSWORD', 'dbpassword' );\r\n\r\n\/** MySQL hostname *\/\r\ndefine( 'DB_HOST', 'localhost' );<\/pre>\n<p>Save and close the file.<\/p>\n<p>Then, change the ownership of the wordpress directory with the following command:<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/html\/wordpress<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Configure-Nginx-for-WordPress\"><\/span>Step 5: Configure Nginx for WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will need to create a Virtual Host configuration file for WordPress. You can create a new Virtual Host configuration file with the following command:<\/p>\n<pre>nano \/etc\/nginx\/sites-available\/wordpress.conf<\/pre>\n<p>Add the following lines:<\/p>\n<pre>server {\r\n\tlisten 80;\r\n\troot \/var\/www\/html\/wordpress;\r\n\tindex index.php index.html index.htm;\r\n\tserver_name <span style=\"color: #ff0000;\">example.com<\/span>;\r\n\r\n\taccess_log \/var\/log\/nginx\/wordpress_access.log;\r\n\terror_log \/var\/log\/nginx\/wordpress_error.log;\r\n\r\n\tclient_max_body_size 64M;\r\n\r\n\tlocation \/ {\r\n\t\ttry_files $uri $uri\/ \/index.php?$args;\r\n\t\t}\r\n\r\n\tlocation ~ \\.php$ {\r\n\t\ttry_files $uri =404;\r\n\t\tinclude \/etc\/nginx\/fastcgi_params;\r\n\t\tfastcgi_read_timeout 3600s;\r\n\t\tfastcgi_buffer_size 128k;\r\n\t\tfastcgi_buffers 4 128k;\r\n\t\tfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\t\tfastcgi_pass unix:\/run\/php\/php7.3-fpm.sock;\r\n\t\tfastcgi_index index.php;\r\n\t\t\t}\r\n\r\n\t\t}<\/pre>\n<p>Make sure to replace <span style=\"color: #ff0000;\">example.com<\/span> with your registered domain name. Save and close the file.<\/p>\n<p>Then enable the newly created virtual block with the following command:<\/p>\n<pre>ln -s \/etc\/nginx\/sites-available\/wordpress.conf \/etc\/nginx\/sites-enabled\/<\/pre>\n<p>Finally, restart the nginx and PHP-FPM services to apply the configuration changes:<\/p>\n<pre>systemctl restart nginx\r\nsystemctl restart php7.3-fpm<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Access-the-WordPress-Site\"><\/span>Step 6: Access the WordPress Site<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, open your web browser and visit the URL <code>http:\/\/example.com<\/code>. You will be redirected to the WordPress installation page:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-31975\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-1024x581.png\" alt=\"wordpress installation\" width=\"1024\" height=\"581\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-1024x581.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-150x85.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-300x170.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-768x436.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-1080x613.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation.png 1190w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Select your language and click on the Continue button. You should see the following page:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-31976\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-1024x590.png\" alt=\"wordpress installation step 2\" width=\"1024\" height=\"590\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-1024x590.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-150x86.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-300x173.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-768x442.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2-1080x622.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-2.png 1170w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Provide your WordPress site name, Admin Username, Password, Email, and finally click on the Install WordPress button. Once the installation has been finished successfully, you should see the following page:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-31977\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-1024x485.png\" alt=\"wordpress installation step 3\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-1024x485.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-150x71.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-300x142.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-768x363.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3-1080x511.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-installation-step-3.png 1217w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Now, click on the Log In button. You should see the WordPress login screen:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-31978\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-1024x517.png\" alt=\"wordpress login page\" width=\"1024\" height=\"517\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-1024x517.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-150x76.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-300x151.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-768x388.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page-1080x545.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-login-page.png 1177w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Provide your admin username or email and password, and click on the Log In button. You should see the WordPress default dashboard in the following screen:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-31979\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-1024x540.png\" alt=\"wordpress back-end\" width=\"1024\" height=\"540\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-1024x540.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-150x79.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-300x158.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-768x405.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end-1080x569.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/wordpress-back-end.png 1284w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>That&#8217;s it. WordPress is now installed and ready to use. You can now start by installing new themes and plugins as per your needs. To learn more about WordPress visit the WordPress documentation.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32274\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/best-in-industry-support-for-wordpress-debian10-hosting.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Of course, you don\u2019t have to know how to install WordPress with Nginx on Debian 10 if you have a <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress Hosting<\/a> with us. You can simply ask our administrators to install WordPress on Debian 10 for you. They\u2019re available 24\/7 and will be able to help you with the installation of WordPress on Debian 10.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong>.<\/span> If you enjoyed reading this blog post on <strong>how to install WordPress with Nginx on Debian 10<\/strong>, or if you found it helpful, feel free to share it on social networks using the share shortcuts below, or simply leave a comment. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explain how to install WordPress with Nginx on a Debian 10 VPS. WordPress is one &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install WordPress with Nginx on Debian 10\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#more-31972\" aria-label=\"Read more about How to Install WordPress with Nginx on Debian 10\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32271,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1700,13],"tags":[49,148],"class_list":["post-31972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-debian","category-tutorials","tag-nginx","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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install WordPress With Nginx on Debian 10 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this detailed tutorial, you will learn how to install WordPress with Nginx web server on Debian 10, one step at a time.\" \/>\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-nginx-on-debian-10\/\" \/>\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 Nginx on Debian 10\" \/>\n<meta property=\"og:description\" content=\"How to Install WordPress with Nginx on Debian 10 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/\" \/>\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-01-29T18:56:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.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: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=\"7 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-nginx-on-debian-10\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install WordPress with Nginx on Debian 10\",\"datePublished\":\"2020-01-29T18:56:55+00:00\",\"dateModified\":\"2022-06-03T08:33:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/\"},\"wordCount\":882,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-wordpress-nginx-on-debian10.jpg\",\"keywords\":[\"nginx\",\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/\",\"name\":\"How to Install WordPress With Nginx on Debian 10 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-wordpress-nginx-on-debian10.jpg\",\"datePublished\":\"2020-01-29T18:56:55+00:00\",\"dateModified\":\"2022-06-03T08:33:11+00:00\",\"description\":\"In this detailed tutorial, you will learn how to install WordPress with Nginx web server on Debian 10, one step at a time.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-wordpress-nginx-on-debian10.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-wordpress-nginx-on-debian10.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wordpress-with-nginx-on-debian-10\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install WordPress with Nginx on Debian 10\"}]},{\"@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 Nginx on Debian 10 | RoseHosting","description":"In this detailed tutorial, you will learn how to install WordPress with Nginx web server on Debian 10, one step at a time.","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-nginx-on-debian-10\/","og_locale":"en_US","og_type":"article","og_title":"How to Install WordPress with Nginx on Debian 10","og_description":"How to Install WordPress with Nginx on Debian 10 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-01-29T18:56:55+00:00","article_modified_time":"2022-06-03T08:33:11+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install WordPress with Nginx on Debian 10","datePublished":"2020-01-29T18:56:55+00:00","dateModified":"2022-06-03T08:33:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/"},"wordCount":882,"commentCount":8,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg","keywords":["nginx","wordpress"],"articleSection":["CMS, CRM, ERP","Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/","name":"How to Install WordPress With Nginx on Debian 10 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg","datePublished":"2020-01-29T18:56:55+00:00","dateModified":"2022-06-03T08:33:11+00:00","description":"In this detailed tutorial, you will learn how to install WordPress with Nginx web server on Debian 10, one step at a time.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-wordpress-nginx-on-debian10.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-nginx-on-debian-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install WordPress with Nginx on Debian 10"}]},{"@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\/31972","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=31972"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31972\/revisions"}],"predecessor-version":[{"id":41015,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31972\/revisions\/41015"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32271"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}