<?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>Install wordpress on ubuntu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-wordpress-on-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 10 Apr 2020 21:43:31 +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 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>
