{"id":1509,"date":"2023-09-06T14:24:30","date_gmt":"2023-09-06T14:24:30","guid":{"rendered":"https:\/\/www.niraltek.com\/blog\/?p=1509"},"modified":"2024-01-25T10:15:59","modified_gmt":"2024-01-25T10:15:59","slug":"how-to-install-wordpress-with-nginx-on-aws-instance-server","status":"publish","type":"post","link":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/","title":{"rendered":"How to install wordpress with Nginx on AWS EC2 instance"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1509\" class=\"elementor elementor-1509\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9c4cb5a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9c4cb5a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-eb9f621\" data-id=\"eb9f621\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-73e90f7 elementor-widget elementor-widget-text-editor\" data-id=\"73e90f7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#818a91;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#818a91;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2738995 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2738995\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-573c540\" data-id=\"573c540\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-13357c3 elementor-widget elementor-widget-image\" data-id=\"13357c3\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-300x200.png\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-300x200.png 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-1024x683.png 1024w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-768x512.png 768w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-1536x1024.png 1536w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/LetsStart-2048x1365.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-04c95a5 elementor-widget elementor-widget-text-editor\" data-id=\"04c95a5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2 style=\"margin-top: 0pt; margin-bottom: 0pt; line-height: 1.38;\"><span style=\"font-size: 18pt; font-family: Roboto, sans-serif; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve; font-weight: normal;\">This tutorial will show you how to configure wordpress in nginx server in 10 steps\u00a0<\/span><\/h2><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 1<\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">First of all we update our server, this command used to update the package lists on your instance server<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo apt-get update<\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 2<\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Putting a command on a single line is all it takes to install NGINX in Ubuntu<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo apt-get install nginx -y<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">We check our nginx status<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo systemctl status nginx<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Here shows this in our server<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"><span style=\"border: none; display: inline-block; overflow: hidden; height: 234px;\"><img decoding=\"async\" loading=\"lazy\" style=\"margin-left: 0px; margin-top: 0px;\" src=\"https:\/\/lh4.googleusercontent.com\/CVBdZ8zKxRRjKqAQO5gf_60z4CXA7Y62k95HVbESjGqf63yOZqhvD5EOdRHC2piU5nB-65ooA361nejSBM8ncn3UcKYrD14EmrdUzeCue8mUkYubmBwJM0qAZ9_EInCO0j_iLpLuCH6oZYCEGlFQjog\" width=\"602\" height=\"244.5321950195438\" \/><\/span><\/span><\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 3<\/span><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"><br \/><\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">You must set up PHP as well as the PHP-FPM service because WordPress is a PHP application. Because Nginx does not allow native PHP processing like some other web servers do, we must install php-fpm, also referred to as the fast CGI process manager. To process PHP requests, Nginx will be told to route them to this application.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo apt-get install php-fpm php-mysql -y<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 4<\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 14pt; color: #7a7a7a; font-weight: bold; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Install mysql to manage our database<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo apt-get install mysql-server -y<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">you can test if installation has worked by checking the status<\/span><\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 5<\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Create mysql user and database for our wordpress<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Mysql login command:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo mysql -u root -p<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Create a database for our wordpress:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">create a user for our database:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-family: var( --e-global-typography-text-font-family ), Sans-serif;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">CREATE USER &#8216;wordpressuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">This mysql command allows users to grant their privileges to other users.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;wordpressuser&#8217;@&#8217;localhost&#8217;;<\/p><p>FLUSH PRIVILEGES instructs TiDB to reload the in-memory copy of privileges from the privilege tables<\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">FLUSH PRIVILEGES;<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Exit out of mysql<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">Exit<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 6<\/span><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"><br \/><\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"> The next step is to set up Nginx to operate with PHP.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo nano \/etc\/nginx\/sites-available\/default<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Find the index line in the server block, then add index.php to the list of files. Additionally, search for the server_name directive and change its value to the public IP address or domain name of your server.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Look for the try_files directive in the location \/ block and substitute the following line:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">try_files $uri $uri\/ \/index.php$is_args$args;<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">inside the server block, add the location .php$ block :<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p dir=\"ltr\" style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">location ~ \\.php$ {<br \/>include snippets\/fastcgi-php.conf;<br \/>fastcgi_pass unix:\/run\/php\/php7.4-fpm.sock;\u00a0}<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Save the document, then exit. If everything is in order, check the Nginx configuration and restart the Nginx service:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo systemctl restart nginx<\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo nginx -t<\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 7<\/span><span style=\"font-size: 12pt; color: #7a7a7a; background-color: #ffffff; font-weight: 400; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"><br \/><\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">You should first download the compressed WordPress file from the \/tmp directory:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">cd \/tmp<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">WordPress can now be downloaded and installed IN ZIP file format.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">curl -LO https:\/\/wordpress.org\/latest.tar.gz<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Unzip the file:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">tar xzvf latest.tar.gz<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Move the file to your Nginx document root<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo cp -a \/tmp\/wordpress\/. \/var\/www\/html<\/p><blockquote style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><p><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 8<\/span><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"><br \/><\/span><\/p><\/blockquote><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Access to the wp-config.php configuration file is required by WordPress. By copying from a model file, you can create this file even though it doesn&#8217;t by default exist:<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">cd \/var\/www\/html<\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo cp wp-config-sample.php wp-config.php<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Open the wordpress configure file<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\u00a0<\/span><\/p><p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo nano wp-config.php<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Locate the section containing the database connection settings, and then change the values for DB_NAME, DB_USER, and DB_PASSWORD to reflect the particulars of the database you made:<\/span><\/p><p style=\"margin-bottom: 15px; color: #000000; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; padding: 15px;\">define(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);<br \/>define(&#8216;DB_USER&#8217;, &#8216;wordpressuser&#8217;);<br \/>define(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;);<\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Save and close the file.<\/span><\/p><p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">And now we refresh the page\u00a0\u00a0<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-181c4a5 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"181c4a5\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-divider{--divider-border-style:none;--divider-border-width:1px;--divider-color:#2c2c2c;--divider-icon-size:20px;--divider-element-spacing:10px;--divider-pattern-height:24px;--divider-pattern-size:20px;--divider-pattern-url:none;--divider-pattern-repeat:repeat-x}.elementor-widget-divider .elementor-divider{display:-webkit-box;display:-ms-flexbox;display:flex}.elementor-widget-divider .elementor-divider__text{font-size:15px;line-height:1;max-width:95%}.elementor-widget-divider .elementor-divider__element{margin:0 var(--divider-element-spacing);-ms-flex-negative:0;flex-shrink:0}.elementor-widget-divider .elementor-icon{font-size:var(--divider-icon-size)}.elementor-widget-divider .elementor-divider-separator{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;direction:ltr}.elementor-widget-divider--view-line_icon .elementor-divider-separator,.elementor-widget-divider--view-line_text .elementor-divider-separator{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.elementor-widget-divider--view-line_icon .elementor-divider-separator:after,.elementor-widget-divider--view-line_icon .elementor-divider-separator:before,.elementor-widget-divider--view-line_text .elementor-divider-separator:after,.elementor-widget-divider--view-line_text .elementor-divider-separator:before{display:block;content:\"\";border-bottom:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;border-top:var(--divider-border-width) var(--divider-border-style) var(--divider-color)}.elementor-widget-divider--element-align-left .elementor-divider .elementor-divider-separator>.elementor-divider__svg:first-of-type{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:100;flex-shrink:100}.elementor-widget-divider--element-align-left .elementor-divider-separator:before{content:none}.elementor-widget-divider--element-align-left .elementor-divider__element{margin-left:0}.elementor-widget-divider--element-align-right .elementor-divider .elementor-divider-separator>.elementor-divider__svg:last-of-type{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:100;flex-shrink:100}.elementor-widget-divider--element-align-right .elementor-divider-separator:after{content:none}.elementor-widget-divider--element-align-right .elementor-divider__element{margin-right:0}.elementor-widget-divider:not(.elementor-widget-divider--view-line_text):not(.elementor-widget-divider--view-line_icon) .elementor-divider-separator{border-top:var(--divider-border-width) var(--divider-border-style) var(--divider-color)}.elementor-widget-divider--separator-type-pattern{--divider-border-style:none}.elementor-widget-divider--separator-type-pattern.elementor-widget-divider--view-line .elementor-divider-separator,.elementor-widget-divider--separator-type-pattern:not(.elementor-widget-divider--view-line) .elementor-divider-separator:after,.elementor-widget-divider--separator-type-pattern:not(.elementor-widget-divider--view-line) .elementor-divider-separator:before,.elementor-widget-divider--separator-type-pattern:not([class*=elementor-widget-divider--view]) .elementor-divider-separator{width:100%;min-height:var(--divider-pattern-height);-webkit-mask-size:var(--divider-pattern-size) 100%;mask-size:var(--divider-pattern-size) 100%;-webkit-mask-repeat:var(--divider-pattern-repeat);mask-repeat:var(--divider-pattern-repeat);background-color:var(--divider-color);-webkit-mask-image:var(--divider-pattern-url);mask-image:var(--divider-pattern-url)}.elementor-widget-divider--no-spacing{--divider-pattern-size:auto}.elementor-widget-divider--bg-round{--divider-pattern-repeat:round}.rtl .elementor-widget-divider .elementor-divider__text{direction:rtl}.e-con-inner>.elementor-widget-divider,.e-con>.elementor-widget-divider{width:var(--container-widget-width,100%)}<\/style>\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf423fd elementor-widget elementor-widget-image\" data-id=\"cf423fd\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"566\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/wp.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/wp.png 964w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/wp-300x265.png 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/wp-768x680.png 768w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-33558f0 elementor-widget elementor-widget-text-editor\" data-id=\"33558f0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-736f1d1 elementor-widget elementor-widget-text-editor\" data-id=\"736f1d1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<blockquote style=\"margin-top: 0pt; margin-bottom: 30pt; color: #000000; line-height: 2.16;\">\n<p ><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step: 9<\/span><span style=\"font-size: 12pt; color: #7a7a7a; background-color: #ffffff; font-weight: 400; font-style: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"> (Allow uploads of images and attachments)<\/span><span style=\"font-size: 12pt; color: #7a7a7a; background-color: #ffffff; font-weight: 400; font-style: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">\n<\/span><\/p>\n<\/blockquote>\n<p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 30pt; color: #000000; line-height: 2.16;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Changing the permissions for the &#8216;wp-content&#8217; folder and related files may be necessary if you&#8217;re having trouble uploading photos or attachments. Additionally, this will guarantee proper protection against unauthorized access. How to do it is as follows:<\/span><\/p>\n<p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo chmod -R 755 wp-content<\/p>\n<p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">sudo chmod -R 644 wp-content\/*<\/p>\n\n<blockquote style=\"margin-top: 0pt; margin-bottom: 0pt;  color: #000000; line-height: 1.38;\">\n<p ><span style=\"font-size: 14pt; color: #7a7a7a; background-color: #ffffff; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">Step : 10<\/span><span style=\"font-size: 12pt; color: #7a7a7a; background-color: #ffffff; font-weight: 400; font-style: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\"> (Allow upload of plugins)<\/span><\/p>\n<\/blockquote>\n<p dir=\"ltr\" style=\"margin-top: 0pt; margin-bottom: 0pt; color: #000000; line-height: 1.38;\"><span style=\"font-size: 12pt; color: #7a7a7a; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;\">This step is not required. There might be a password requirement preventing you from uploading plugins through \/wp-admin. You can take these steps to disable this requirement if you want to:<\/span><\/p>\n<p style=\"margin-bottom: 15px; background-color: #000000; color: #37f137; font-weight: 600; border-radius: 5px; padding: 15px; border: 10px solid #d9d9d9 !important;\">define(&#8216;FS_METHOD&#8217;, &#8216;direct&#8217;);<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6118200 elementor-widget elementor-widget-image\" data-id=\"6118200\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"259\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/congragulations-300x259.jpg\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/congragulations-300x259.jpg 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/congragulations.jpg 430w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to configure wordpress in nginx server in 10 steps\u00a0 Step: 1 \u00a0 First of all we update our server, this command used to update the package lists on your instance server \u00a0 sudo apt-get update Step: 2 \u00a0 Putting a command on a single line is all it takes [&hellip;]<\/p>\n <a href=\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/\" class=\"ReadMore\" title=\"Read More\">Read More<\/a>","protected":false},"author":8,"featured_media":1687,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install wordpress with Nginx on AWS EC2 instance - Niraltek Blog<\/title>\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.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/\" \/>\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 AWS EC2 instance - Niraltek Blog\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to configure wordpress in nginx server in 10 steps\u00a0 Step: 1 \u00a0 First of all we update our server, this command used to update the package lists on your instance server \u00a0 sudo apt-get update Step: 2 \u00a0 Putting a command on a single line is all it takes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Niraltek Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-06T14:24:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-25T10:15:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"442\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arun Karthik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\",\"url\":\"https:\/\/www.niraltek.com\/blog\/\",\"name\":\"Niraltek Blog\",\"description\":\"Niraltek, IOT, BLOGS\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg\",\"contentUrl\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg\",\"width\":825,\"height\":442},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#webpage\",\"url\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/\",\"name\":\"How to install wordpress with Nginx on AWS EC2 instance - Niraltek Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#primaryimage\"},\"datePublished\":\"2023-09-06T14:24:30+00:00\",\"dateModified\":\"2024-01-25T10:15:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/1602d07bc489f15f6e9651bd767e93d0\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.niraltek.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install wordpress with Nginx on AWS EC2 instance\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/1602d07bc489f15f6e9651bd767e93d0\",\"name\":\"Arun Karthik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4f1c1deed4c736b307a4b29176c6f415?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4f1c1deed4c736b307a4b29176c6f415?s=96&d=mm&r=g\",\"caption\":\"Arun Karthik\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/arun-karthik-630273229\/\"],\"url\":\"https:\/\/www.niraltek.com\/blog\/author\/arunkarthik\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install wordpress with Nginx on AWS EC2 instance - Niraltek Blog","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.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/","og_locale":"en_US","og_type":"article","og_title":"How to install wordpress with Nginx on AWS EC2 instance - Niraltek Blog","og_description":"This tutorial will show you how to configure wordpress in nginx server in 10 steps\u00a0 Step: 1 \u00a0 First of all we update our server, this command used to update the package lists on your instance server \u00a0 sudo apt-get update Step: 2 \u00a0 Putting a command on a single line is all it takes [&hellip;]","og_url":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/","og_site_name":"Niraltek Blog","article_published_time":"2023-09-06T14:24:30+00:00","article_modified_time":"2024-01-25T10:15:59+00:00","og_image":[{"width":825,"height":442,"url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Arun Karthik","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.niraltek.com\/blog\/#website","url":"https:\/\/www.niraltek.com\/blog\/","name":"Niraltek Blog","description":"Niraltek, IOT, BLOGS","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg","contentUrl":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2023\/09\/ec2.jpg","width":825,"height":442},{"@type":"WebPage","@id":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#webpage","url":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/","name":"How to install wordpress with Nginx on AWS EC2 instance - Niraltek Blog","isPartOf":{"@id":"https:\/\/www.niraltek.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#primaryimage"},"datePublished":"2023-09-06T14:24:30+00:00","dateModified":"2024-01-25T10:15:59+00:00","author":{"@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/1602d07bc489f15f6e9651bd767e93d0"},"breadcrumb":{"@id":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.niraltek.com\/blog\/how-to-install-wordpress-with-nginx-on-aws-instance-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.niraltek.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install wordpress with Nginx on AWS EC2 instance"}]},{"@type":"Person","@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/1602d07bc489f15f6e9651bd767e93d0","name":"Arun Karthik","image":{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/4f1c1deed4c736b307a4b29176c6f415?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4f1c1deed4c736b307a4b29176c6f415?s=96&d=mm&r=g","caption":"Arun Karthik"},"sameAs":["https:\/\/www.linkedin.com\/in\/arun-karthik-630273229\/"],"url":"https:\/\/www.niraltek.com\/blog\/author\/arunkarthik\/"}]}},"_links":{"self":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/1509"}],"collection":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/comments?post=1509"}],"version-history":[{"count":395,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":2208,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/1509\/revisions\/2208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media\/1687"}],"wp:attachment":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media?parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/categories?post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/tags?post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}