<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nginx installation Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nginx-installation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 18 Jun 2020 22:42:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Nginx With PHP-FPM on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-nginx-with-php-fpm-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-nginx-with-php-fpm-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 21 Jun 2020 02:23:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How To Install Nginx With PHP-FPM on Ubuntu 20.04]]></category>
		<category><![CDATA[how to install php fpm services]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Nginx installation]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20904</guid>

					<description><![CDATA[<p>In this tutorial you are going to learn that how to install nginx with PHP-FPM(FastCGI Process Manager) on Ubuntu 20.04. Nginx is most popular web server having high speed &#38; scalability providing the Reverse Proxy as well as load balancing to various backend servers. The protocols used by the Nginx are HTTP, TCP &#38; UDP. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-with-php-fpm-on-ubuntu-20-04/">How To Install Nginx With PHP-FPM on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial you are going to learn that <a href="https://www.osradar.com/?p=20904">how to install nginx with PHP-FPM</a>(FastCGI Process Manager) on Ubuntu 20.04. Nginx is most popular web server having high speed &amp; scalability providing the Reverse Proxy as well as load balancing to various backend servers. The protocols used by the Nginx are HTTP, TCP &amp; UDP. Nginx is preffered over Apache as it have the low memory footprint &amp; handle the requests in more easier way. So, let&#8217;s have a short introduction on features of Nginx and then we&#8217;ll move towards the installation of Nginx with PHP-FPM on our Ubuntu 20.04.</p>



<h2>Some Important Features of Nginx</h2>



<ul><li>Content Cache: Cache static &amp; dynamic content</li><li>Load Balancing: HTTP, TCP, &amp; UDP load balancing with Layer 7 request routing using URI, cookie, args, and more.</li><li>Reverse proxy multiple protocols: HTTP, gRPC, memcached, PHP‑FPM, SCGI, uwsgi</li><li>Handle hundreds of thousands of clients at the same time</li><li>Stream HTTP video, FLV, HDS, HLS, MP4</li><li>HTTP/2 gateway with HTTP/2 server push support</li><li>Dual‑stack RSA/ECC SSL/TLS offload</li><li>Monitoring plugins: AppDynamics, Datadog, Dynatrace plug‑ins</li></ul>



<p>So, follow the below steps for an easy installation.</p>



<h3><strong>Step 1: Update &amp; Upgrade Your System</strong></h3>



<p>Fire the below command in your terminal to fetch the latest updates before going to install Nginx with PHP-FPM on Ubuntu 20.04</p>



<pre class="wp-block-verse">sudo apt update &amp; sudo apt upgrade</pre>



<h3><strong>Step 2: Installing Nginx on Ubuntu 20.04</strong></h3>



<p>Once the system is updated, run the given command to install the Nginx on Ubutnu 20.04.</p>



<pre class="wp-block-verse">sudo apt install nginx</pre>



<p>Verify the installation by running</p>



<pre class="wp-block-verse">sudo systemctl status nginx</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ sudo systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset&gt;
Active: active (running) since Thu 2020-06-18 07:18:21 PKT; 3s ago
Docs: man:nginx(8)
Process: 14321 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_pro&gt;
Process: 14322 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; &gt;
Main PID: 14323 (nginx)
Tasks: 2 (limit: 1078)
Memory: 4.2M
CGroup: /system.slice/nginx.service
├─14323 nginx: master process /usr/sbin/nginx -g daemon on; maste&gt;
└─14324 nginx: worker process
جون 18 07:18:21 Ubuntu20 systemd[1]: Starting A high performance web server an&gt;
جون 18 07:18:21 Ubuntu20 systemd[1]: Started A high performance web server and&gt;
lines 1-15/15 (END)</pre>



<p>As you&#8217;ve to select once server Apache or Nginx. So, to use Nginx either you&#8217;ve to change the Port or disable the Apache web server. To disable Apache, run the below command.</p>



<pre class="wp-block-verse">sudo systemctl disable --now apache2</pre>



<p>And then allow the firewall access on port 80.</p>



<pre class="wp-block-verse">sudo ufw allow proto tcp from any to any port 80,443</pre>



<h3><strong>Step 3: Installing PHP-FPM</strong></h3>



<p>Now, as we&#8217;ve already installed Nginx. To use PHP with Nginx fire the below command.</p>



<pre class="wp-block-verse">sudo apt update<br>sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath</pre>



<p>Once the installation finished, verify the status of PHP-FPM services by running the below command.</p>



<pre class="wp-block-verse">sudo systemctl status php7.4-fpm.service</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ sudo systemctl status php7.4-fpm.service
● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor p&gt;
Active: active (running) since Thu 2020-06-18 07:20:10 PKT; 10s ago
Docs: man:php-fpm7.4(8)
Process: 18829 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /r&gt;
Main PID: 18815 (php-fpm7.4)
Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0re&gt;
Tasks: 3 (limit: 1078)
Memory: 11.1M
CGroup: /system.slice/php7.4-fpm.service
├─18815 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
├─18827 php-fpm: pool www
└─18828 php-fpm: pool www
جون 18 07:20:10 Ubuntu20 systemd[1]: Starting The PHP 7.4 FastCGI Process Mana&gt;
جون 18 07:20:10 Ubuntu20 systemd[1]: Started The PHP 7.4 FastCGI Process Manag&gt;
lines 1-16/16 (END)</pre>



<p>You can find the PID &amp; Socket files under the directory.</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ ls /run/php/
php7.4-fpm.pid php7.4-fpm.sock php-fpm.sock</pre>



<h3><strong>Step 4: Configuring PHP-FPM with Nginx On Ubutnu 20.04</strong></h3>



<p>Now, to configure PHP-FPM with Nginx edit your application Nginx config file &amp; set fastcgi_pass section to load through the FPM socket. Look at the below snippet.</p>



<pre class="wp-block-verse">$ cat /etc/nginx/php_fastcgi.conf
#404
try_files $fastcgi_script_name =404;
default fastcgi_params
include fastcgi_params;
fastcgi settings
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_hide_header X-Powered-By;
fastcgi_hide_header X-CF-Powered-By;</pre>



<p>After it reload the Nginx &amp; open your applications on the web to make sure they are working as expected. So, this is how you can install Nginx web server with PHP-FPM on Ubutnu 20.04.</p>



<p>So, hare this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>. Also, buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-with-php-fpm-on-ubuntu-20-04/">How To Install Nginx With PHP-FPM on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-nginx-with-php-fpm-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install WordPress on Ubuntu 19.04 with Nginx, MairaDB and PHP 7.3 Support</title>
		<link>https://www.osradar.com/how-to-install-wordpress-on-ubuntu-19-04-with-nginx-mairadb-and-php-7-3-support/</link>
					<comments>https://www.osradar.com/how-to-install-wordpress-on-ubuntu-19-04-with-nginx-mairadb-and-php-7-3-support/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 04 Oct 2019 13:22:06 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Install LEMP on Ubuntu 19.04]]></category>
		<category><![CDATA[Install wordpress on ubuntu]]></category>
		<category><![CDATA[Nginx installation]]></category>
		<category><![CDATA[ubuntu 19.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14197</guid>

					<description><![CDATA[<p>What is WordPress? WordPress, a powerful and most used CMS (Content Management System). Most websites run on this popular and useful tool. If you want to manage your PHP based websites or blogs easily, you should highly consider it&#8230; Now, with PHP 7.3 WordPress allow you to create stunning websites and improve your site performance. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wordpress-on-ubuntu-19-04-with-nginx-mairadb-and-php-7-3-support/">How to install WordPress on Ubuntu 19.04 with Nginx, MairaDB and PHP 7.3 Support</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is WordPress?</strong></h3>



<p>WordPress, a powerful and most used CMS (Content Management System). Most websites run on this popular and useful tool. If you want to manage your PHP based  websites or blogs easily, you should highly consider it&#8230;</p>



<p>Now, with PHP 7.3 WordPress allow you to create stunning websites and improve your site performance. As WordPress requires a server so we highly recommend to use Nginx HTTP Server. If you want to install WordPress on Ubuntu 19.04 with Nginx HTTP Server, just follow these steps.</p>



<p>So, in this tutorial you will learn:</p>



<ul><li>1) <strong>How to install Nginx HTTP Server</strong></li><li><strong>2 How to install MariaDB Database Server</strong></li><li><strong>3) How to install PHP 7.3 and related Modules</strong></li><li><strong>4) Create WordPress Database</strong></li><li><strong>5) How to download WordPress Latest version</strong></li><li><strong>6) How to configure Nginx HTTP Server</strong></li><li><strong>7) How to enable WordPress and rewrite modules</strong></li><li><strong>8) How to restart Nginx</strong></li><li><strong>9) Configure WordPress</strong></li></ul>



<h3><strong>Step 1: Install Nginx Http Server</strong></h3>



<p>To start using WordPress, we require a web server. We recommend to use
Nginx Http Server due to its proficiency. So, lets install Nginx on Ubuntu by executing
the following command.</p>



<p class="has-background has-very-light-gray-background-color">sudo apt install nginx</p>



<figure class="wp-block-image"><img loading="lazy" width="802" height="634" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/nginx-installation.png" alt="" class="wp-image-14202" srcset="https://www.osradar.com/wp-content/uploads/2019/10/nginx-installation.png 802w, https://www.osradar.com/wp-content/uploads/2019/10/nginx-installation-300x237.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/nginx-installation-768x607.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/nginx-installation-696x550.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/nginx-installation-531x420.png 531w" sizes="(max-width: 802px) 100vw, 802px" /></figure>



<p><strong>Note:</strong> When prompt choose yes to continue. After it some process will begin and installation will be completed depending on your internet speed.</p>



<p>Now, execute the commands given below to start the services
always with the server boots.</p>



<pre class="wp-block-preformatted">sudo systemctl stop nginx.service
sudo systemctl start nginx.service
sudo systemctl enable nginx.service</pre>



<figure class="wp-block-image"><img loading="lazy" width="799" height="134" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/enable-nginx-services.png" alt="" class="wp-image-14203" srcset="https://www.osradar.com/wp-content/uploads/2019/10/enable-nginx-services.png 799w, https://www.osradar.com/wp-content/uploads/2019/10/enable-nginx-services-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/enable-nginx-services-768x129.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/enable-nginx-services-696x117.png 696w" sizes="(max-width: 799px) 100vw, 799px" /></figure>



<p><strong>Step 2: Install MariaDB Database Server</strong></p>



<p>Beside a web server, WordPress also requires a database
server. So, we recommend you to install mairadb database Server. To install it
just type the following command:</p>



<p class="has-background has-very-light-gray-background-color">sudo apt-get install mariadb-server mariadb-client</p>



<figure class="wp-block-image"><img loading="lazy" width="800" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mariadb-installation.png" alt="" class="wp-image-14204" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation.png 800w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-300x225.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-768x576.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-696x522.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/mariadb-installation-560x420.png 560w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p><strong>Note:</strong> When prompt choose
yes to continue. After it some process will begin and installation will be
completed depending on your internet speed.</p>



<p>After installing, do the same steps as in <strong>Step 1 </strong>&nbsp;to stop , start and enable the services for the
server boots so that it always in up state when we start our system.</p>



<pre class="wp-block-preformatted">sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service </pre>



<p>When you’ve done this now it’s time to secure your MariaDB so
execute the following command to secure. It will also help&nbsp; you to stop remote access.</p>



<p class="has-background has-very-light-gray-background-color">sudo mysql_secure_installation</p>



<p>After running this command, you are asked to answer some
questions so give answers according to your requirements:</p>



<p>Enter current password for root(enter for none): <strong>Just press Enter</strong></p>



<p>Set root password? [Y/n]:<strong> Y</strong></p>



<p>New password:<strong> Enter Password</strong></p>



<p>Re-enter new password: <strong>Repeat password</strong></p>



<p>Remove anonymous users? [Y/n]:<strong> Y</strong></p>



<p>Disallow root login remotely? [Y/n]: <strong>Y</strong></p>



<p>Remove test database and access to it? [Y/n]:<strong> Y</strong></p>



<p>Reload priviledge tables now? [Y/n]:<strong> Y</strong></p>



<figure class="wp-block-image"><img loading="lazy" width="800" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/secure-mariadb.png" alt="" class="wp-image-14205" srcset="https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb.png 800w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-300x225.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-768x576.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-696x522.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/secure-mariadb-560x420.png 560w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p>Restart MariaDB Server</p>



<p class="has-background has-very-light-gray-background-color">sudo systemctl restart mysql.service</p>



<h3><strong>Step 3: Install PHP 7.3 and Related Modules </strong></h3>



<p>To install PHP 7.3 for WordPress in Ubuntu just follow these
steps:</p>



<p class="has-background has-very-light-gray-background-color">sudo apt-get install software-properties-common</p>



<p class="has-background has-very-light-gray-background-color">sudo add-apt-repository ppa:ondrej/php</p>



<p>Press Enter to continueAfter doing so update and upgrade to PHP
version you want or latest.</p>



<p class="has-background has-very-light-gray-background-color">sudo apt update</p>



<p>Execute this command to install PHP 7.3 FPM and related other
Modules.</p>



<p class="has-background has-very-light-gray-background-color">sudo apt install php7.3-fpm php7.3-common php7.3-mbstring php7.3-xmlrpc php7.3-soap php7.3-gd php7.3-xml php7.3-intl php7.3-mysql php7.3-cli php7.3-zip php7.3-curl</p>



<p>Press Enter</p>



<p>After installing PHP 7.3, run the command given to open PHP-FPM
default file.</p>



<p class="has-background has-very-light-gray-background-color">sudo nano /etc/php/7.3/fpm/php.ini</p>



<p>Then do the setting according to your requirements and save
the file.</p>



<p>file_uploads = On</p>



<p>allow_url_fopen = On</p>



<p>memory_limit = 256M</p>



<p>upload_max_filesize = 100M</p>



<p>cgi.fix_pathinfo = 0</p>



<p>max_execution_time = 360</p>



<p>date.timezone = America/Chicago</p>



<h3><strong>Step 4: Create WordPress Database </strong></h3>



<p>After installing all the packages that were required you are
now at the step to create a WordPress database. Run the given command to create
a database in WordPress.</p>



<p class="has-background has-very-light-gray-background-color">sudo mysql -u root -p</p>



<p>After this create a database with name “<strong>myfirstdb</strong>”</p>



<p class="has-background has-very-light-gray-background-color">CREATE DATABASE myfirstdb;</p>



<p>Now create a user as “<strong>dbuser</strong>”</p>



<p class="has-background has-very-light-gray-background-color">CREATE USER ‘dbuser’@’localhost’ IDENTIFIED BY ‘<strong>userpassword</strong>’;</p>



<p>Then give the user all permissions to the database.</p>



<p class="has-background has-very-light-gray-background-color">GRANT ALL ON myfirstdb. * TO ‘dbuser’@’localhost’ IDENTIFIED
BY ‘<strong>userpassword</strong>’ WITH GRANT OPTION;</p>



<p>Finally, save the changes you have made and exit.</p>



<p class="has-background has-very-light-gray-background-color">FLUSH PRIVILEGES;</p>



<p class="has-background has-very-light-gray-background-color">EXIT;</p>



<h3><strong>Step 5: Download WordPress Latest Release</strong></h3>



<p>Now download the WordPress from their official site.</p>



<p>After the WordPress is downloaded extract the file by following
commands to extract into a new WordPress root directory.</p>



<p class="has-background has-very-light-gray-background-color">cd /tmp &amp;&amp; wget <a href="https://wordpress.org/latest.tar.gz">https://wordpress.org/latest.tar.gz</a>
</p>



<p class="has-background has-very-light-gray-background-color">tar -zxvf latest.tar.gz</p>



<p class="has-background has-very-light-gray-background-color">sudo mv wordpress /var/www/html/wordpress</p>



<p>After it run the give command to set to the correct
Permissions for WordPress to function.</p>



<p class="has-background has-very-light-gray-background-color">sudo chown -R www-data:www-data /var/www/html/wordpress/</p>



<p class="has-background has-very-light-gray-background-color">sudo chmod -R 755 /var/www/html/wordpress/</p>



<h3><strong>Step 6: Configure Nginx HTTP Serve</strong></h3>



<p>Finally, configure Apache2 site config file for WordPress.
It will control how users access content . Run the given command to create a
configuration file called “wordpress”</p>



<p class="has-background has-very-light-gray-background-color">sudo nano /etc/nginx/sites-available/wordpress</p>



<p>Then just copy paste the following give code into the file
and save changes.</p>



<p class="has-background has-very-light-gray-background-color">Note: Change the bold text with your own location and domain.</p>



<p class="has-background has-very-light-gray-background-color">server {</p>



<p class="has-background has-very-light-gray-background-color">listen 80;</p>



<p class="has-background has-very-light-gray-background-color">listen [::] : 80;</p>



<p class="has-background has-very-light-gray-background-color">root /var/www/html/wordpress;</p>



<p class="has-background has-very-light-gray-background-color">index index.php index.html index.htm;</p>



<p class="has-background has-very-light-gray-background-color">server_name<strong> example.com www.example.com</strong>;</p>



<p class="has-background has-very-light-gray-background-color">client_max_body_size 100M;</p>



<p class="has-background has-very-light-gray-background-color">location / {</p>



<p class="has-background has-very-light-gray-background-color">try_files $uri $uri /&nbsp;
/index.php?$args;</p>



<p class="has-background has-very-light-gray-background-color">}</p>



<p class="has-background has-very-light-gray-background-color">location ~ \.php$ {</p>



<p class="has-background has-very-light-gray-background-color">include snippets/fastcgi-php.conf;</p>



<p class="has-background has-very-light-gray-background-color">fastcgi_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unix:/var/run/php/php7.3-fpm.sock;</p>



<p class="has-background has-very-light-gray-background-color">fastcgi_param&nbsp;&nbsp;&nbsp; SCRIPT_FILENAME
$document_root$fastcgi_script_name;</p>



<p class="has-background has-very-light-gray-background-color">}</p>



<p class="has-background has-very-light-gray-background-color">}</p>



<p>Save the file and exit.</p>



<h3><strong>Step 7: Enable the WordPress and Rewrite Module</strong></h3>



<p>As you have configured the VirtualHost above, now enable it
by running command below the commands will also disable PHP7.0 to PHP7.3 for Nginx.</p>



<p class="has-background has-very-light-gray-background-color">sudo ln -s /etc/nginx/sites-available/wordpress /etc/nginx/sites-enabled/</p>



<h3><strong>Step 8: Restart Nginx</strong></h3>



<p>Now for loading all settings above, restart Nginx by executing
following command:</p>



<p class="has-background has-very-light-gray-background-color">sudo systemctl restart nginx.service</p>



<h3><strong>Step 9: Configure WordPress</strong></h3>



<p>sudo mv /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php</p>



<p>After it execute this command to open the WordPress
configuration file.</p>



<p>Sudo nano /var/www/html/wordpress/wp-config.php</p>



<p>Now enter the highlighted text below that you created for
your database and save.</p>



<p>// ** MySQL settings &#8211; You can get this info from your web
host ** //</p>



<p>/** The name of the database for WordPress */</p>



<p>define(&#8216;DB_NAME&#8217;, &#8216;myfirstdb&#8217;);</p>



<p>/** MySQL database username */</p>



<p>define(&#8216;DB_USER&#8217;, &#8216;dbuser&#8217;);</p>



<p>/** MySQL database password */</p>



<p>define(&#8216;DB_PASSWORD&#8217;, &#8216;sabisaii&#8217;);</p>



<p>/** MySQL hostname */</p>



<p>define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);</p>



<p>/** Database Charset to use in creating database tables. */</p>



<p>define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8217;);</p>



<p>/** The Database Collate type. Don&#8217;t change this if in
doubt. */</p>



<p>define(&#8216;DB_COLLATE&#8217;, &#8221;);</p>



<p>Save and Exit.</p>



<p>Now, open your browser and browse to your domain name to launch
WordPress Configuration Wizard.</p>



<figure class="wp-block-image"><img loading="lazy" width="722" height="585" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wordpress-1.png" alt="" class="wp-image-14211" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wordpress-1.png 722w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-1-300x243.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-1-696x564.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-1-518x420.png 518w" sizes="(max-width: 722px) 100vw, 722px" /></figure>



<p>You will see the wizard open.</p>



<p>Enter your new username and password and click on Install
button.</p>



<figure class="wp-block-image"><img loading="lazy" width="719" height="638" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wordpress-2.png" alt="" class="wp-image-14212" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wordpress-2.png 719w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-2-300x266.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-2-696x618.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/wordpress-2-473x420.png 473w" sizes="(max-width: 719px) 100vw, 719px" /></figure>



<p>WordPress is Successfully Installed!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wordpress-on-ubuntu-19-04-with-nginx-mairadb-and-php-7-3-support/">How to install WordPress on Ubuntu 19.04 with Nginx, MairaDB and PHP 7.3 Support</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-wordpress-on-ubuntu-19-04-with-nginx-mairadb-and-php-7-3-support/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
