{"id":1275,"date":"2023-06-23T23:05:25","date_gmt":"2023-06-23T17:20:25","guid":{"rendered":"https:\/\/yoho.cloud\/blog\/?p=1275"},"modified":"2023-06-26T11:40:03","modified_gmt":"2023-06-26T05:55:03","slug":"install-wordpress-on-vps","status":"publish","type":"post","link":"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/","title":{"rendered":"How to Install WordPress on a Virtual Private Server (VPS) ? (Detailed)"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#I_Introduction_of_WordPress_VPS_Hosting\" >I. Introduction of WordPress VPS Hosting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#II_Selecting_the_right_OS_and_VPS_server\" >II. Selecting the right OS and VPS server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#III_Install_LAMP_stack_WordPress\" >III. Install LAMP stack &amp; WordPress<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Steps_to_install_LAMP_stack_on_your_VPS_Ubuntu_server\" >Steps to install LAMP stack on your VPS Ubuntu server.<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Configuring_Apache_and_PHP\" >Configuring Apache and PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Installing_PHP82\" >Installing PHP8.2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Adjusting_the_phpini\" >Adjusting the php.ini<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Setting_up_MySQL_database_and_user\" >Setting up MySQL database and user<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Downloading_and_Installing_WordPress\" >Downloading and Installing WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Setting_up_a_Reverse-Proxy\" >Setting up a Reverse-Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Activate\" >Activate<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Installing_an_SSL_Certificate_via_Certbot\" >Installing an SSL Certificate via Certbot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-on-vps\/#Finish_the_WordPress_Setup_through_Browser\" >Finish the WordPress Setup through Browser<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p><span style=\"font-weight: 400;\">Switching your WordPress Website from shared hosting to a Virtual Private server is a complex task which may need some sort of technical knowledge of Linux server administration and setting up the WordPress blog in VPS.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">if you&#8217;re new to the world of <a href=\"https:\/\/yoho.cloud\/vps\/\">VPS hosting<\/a> or WordPress installation, the process can be daunting. Fear not! In this post, we&#8217;ll explain what you need to know to successfully install WordPress on your VPS and set yourself up for success.\u00a0<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"I_Introduction_of_WordPress_VPS_Hosting\"><\/span><strong>I. Introduction of WordPress VPS Hosting<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/yoho.cloud\/blog\/install-wordpress-using-softaculous\/\"><b>Installing WordPress on Cpanel<\/b><\/a><span style=\"font-weight: 400;\"> is simple and easy which dont need any technical skill for setting up WordPress Website but deploying WordPress on VPS which is completely CLI need some basic technical knowledge of server management and in this blog we have provided the stepwise process which can be beneficial to anyone looking for WordPress Website setup on VPS. With a VPS, you have complete control over your server resources, ensuring faster loading times, increased uptime, and the ability to handle high levels of traffic.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Additionally, a VPS server provides a dedicated environment for your WordPress site, reducing the risk of security breaches. By installing WordPress on a VPS, you can harness the full power of this popular CMS and take your website to the next level.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Having a VPS server for your WordPress site is crucial for several reasons. Firstly, with a VPS server, you have dedicated resources that are not shared with other websites, ensuring optimal performance and speed. This is especially important if you have a high-traffic or resource-intensive website.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Secondly, a VPS server provides scalability, allowing you to easily upgrade your resources as your site grows and attracts more traffic. This ensures that your site can handle increased demand without any downtime or performance issues.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Finally, a VPS server offers better security as you have full control over your server environment, reducing the risk of your site being compromised. Overall, having a VPS server for your WordPress site ensures better performance, scalability, and security, making it a valuable investment.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"II_Selecting_the_right_OS_and_VPS_server\"><\/span><strong>II. Selecting the right OS and VPS server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When it comes to choosing the right operating system for your VPS server, there are a few factors to consider. Firstly, you&#8217;ll want to ensure compatibility with the software and applications you plan to use on your server.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Additionally, consider the level of technical expertise required to manage the operating system. Some operating systems, like <\/span><b>Ubuntu Server 20.04<\/b><span style=\"font-weight: 400;\">, are known for their user-friendly interfaces and extensive documentation, making them a popular choice for beginners.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">On the other hand, more advanced users may opt for operating systems like CentOS or Debian, which offer greater flexibility and customization options.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Ultimately, choosing the right operating system for your VPS server depends on your specific needs and preferences.\u00a0<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"III_Install_LAMP_stack_WordPress\"><\/span><strong>III. Install LAMP stack &amp; WordPress<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The LAMP stack, which stands for <\/span><b>Linux<\/b><span style=\"font-weight: 400;\">, <\/span><b>Apache<\/b><span style=\"font-weight: 400;\">, <\/span><b>MySQL<\/b><span style=\"font-weight: 400;\">, and <\/span><b>PHP,<\/b><span style=\"font-weight: 400;\"> is a popular software bundle often used for web application development and hosting. Each component plays a crucial role in the overall functionality of the stack. Linux serves as the operating system, providing a stable and secure platform. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Apache is the web server software that handles incoming requests and serves webpages. MySQL is the relational database management system used to store and retrieve data. <\/span><span style=\"font-weight: 400;\">Lastly, PHP is the scripting language used to process dynamic content and interact with the database. Together, these components create a powerful and flexible environment for hosting websites, particularly those built with WordPress.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Steps_to_install_LAMP_stack_on_your_VPS_Ubuntu_server\"><\/span><strong>Steps to install LAMP stack on your VPS Ubuntu server.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">When it comes to installing a LAMP stack on your VPS server, there are a few important steps to follow. First, make sure you have a root sudo user and that your server is set up according to the initial server setup guide for your specific OS. Once you have that in place, <em>you can proceed with the installation.<\/em>\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Start by updating and upgrading your package list, then install Apache, PHP, and MySQL using the appropriate commands. Configure Apache and PHP to ensure they are working together seamlessly, and create a MySQL database for your WordPress site.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Finally, download and install WordPress on your VPS server, and configure it for your website&#8217;s needs.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">By following these steps, you&#8217;ll have a fully functional <\/span><b>LAMP stack ready to support your WordPress installation<\/b><span style=\"font-weight: 400;\"> on your Ubuntu server.\u00a0<\/span><\/p>\n<div class=\"preboxcontainer\">\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\/** Update the pacakage **\/\r\n\r\napt install sudo nano -y\u00a0<\/span><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Configuring_Apache_and_PHP\"><\/span><strong>Configuring Apache and PHP<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Configuring Apache and PHP is an essential step in the process of setting up a WordPress site on a VPS server. Apache is a widely used web server that provides the foundation for hosting websites, while PHP is the scripting language that powers dynamic content on those websites. To configure Apache and PHP, you need to install and enable the necessary modules and extensions. This includes setting up the Apache virtual host for your WordPress site, adjusting the php.ini file to optimize PHP performance, and ensuring that the necessary PHP extensions are installed. Proper configuration of Apache and PHP is crucial for the smooth functioning of your WordPress site and ensuring optimal performance.<\/span><\/p>\n<pre class=\"prebox\">\u00a0\r\n\/**  PHP Repository **\/\r\n<span style=\"font-weight: 400;\">sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 -y\u00a0<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400;\">echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/sury-php.list\u00a0<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400;\">wget -qO - https:\/\/packages.sury.org\/php\/apt.gpg | sudo apt-key add -\u00a0<\/span>\r\n\r\n  \r\n\r\n<span style=\"font-weight: 400;\">apt update &amp;&amp; apt upgrade \u2013y\u00a0<\/span><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Installing_PHP82\"><\/span><strong>Installing PHP8.2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Installing PHP8.2 is an essential step in configuring a robust and efficient WordPress site on your VPS server. PHP is a server-side scripting language that powers dynamic web pages, and version 8.2 offers various features and improvements for enhanced performance and security. To install PHP8.2, you need to ensure that you have a LAMP stack set up on your server, which includes Linux, Apache, MySQL, and PHP.\u00a0<\/span><span style=\"font-weight: 400;\">This will enable your website to run smoothly and efficiently, delivering a superior user experience.\u00a0<\/span><\/p>\n<h3><\/h3>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\r\n\/** Installation of PHP8.2 **\/\r\n\r\napt install php8.2 -y<\/span><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Adjusting_the_phpini\"><\/span><strong>Adjusting the php.ini<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Adjusting the php.ini file is an important step in configuring your WordPress installation on a VPS server. The php.ini file is a configuration file that controls various aspects of how PHP functions on your server. It allows you to adjust settings such as memory limits, file upload sizes, and error reporting. By modifying the php.ini file, you can optimize the performance and functionality of your WordPress site. It&#8217;s important to understand the impact of each change and to make adjustments based on the specific needs of your site. This ensures that your WordPress installation runs smoothly and efficiently, providing an optimal user experience.\u00a0<\/span><\/p>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\r\nnano \/etc\/php\/8.2\/apache2\/php.ini\u00a0\r\n\r\n<\/span><\/pre>\n<ul>\n<li><strong>memory_limit = 1024M\u00a0<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>upload_max_filesize = 16G\u00a0\u00a0<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>post_max_size = 16G\u00a0\u00a0<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>date.timezone = &lt;YourTimezone&gt;<\/strong><\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Setting_up_MySQL_database_and_user\"><\/span><strong>Setting up MySQL database and user<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Setting up a MySQL database and user is an essential step in installing WordPress on your VPS server. By creating a dedicated database and user, you can ensure better management and security for your WordPress site. To begin, log into the MySQL root account and create a database specifically for WordPress. Choose a name that is relevant to your site. Next, create a separate MySQL user account and set a strong password for added security. Grant this user complete access to the database you just created. Lastly, remember to flush the privileges so that MySQL registers the changes. With these steps completed, you can proceed with the installation process confidently.\u00a0<\/span><\/p>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\/** Installation of Database **\/\r\napt install apache2 unzip wget curl mariadb-client mariadb-server\r\n\r\nmysql \u2013u root \u2013p\r\n\r\ncreate database wordpress;\r\n\r\ncreate user 'wordpress'@'localhost' identified by 'PASSWORD';\r\n\r\ngrant all privileges on wordpress.* to \u2018wordpress\u2019@\u2019localhost\u2019;\r\n\r\nflush privileges;\r\nexit;\r\n\r\n<\/span><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Downloading_and_Installing_WordPress\"><\/span><strong>Downloading and Installing WordPress<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">To download and install WordPress on your VPS server, you&#8217;ll first need to navigate to the official WordPress website and download the latest installation files. Once you have the files, you can place them in the default web server root directory on your VPS, which is usually &#8220;\/var\/www\/html&#8221;. After extracting the files, you&#8217;ll need to ensure that the correct permissions are set, so that your web server has ownership of the WordPress files. This is typically done by running a command to change the owner to the web server user, such as &#8220;<em>chown -R www-data:www-data \/var\/www\/html<\/em>&#8220;. With these steps complete, you&#8217;re now ready to proceed with setting up and configuring WordPress for your website.<\/span><\/p>\n<h3><\/h3>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\r\n\/** Installation of Default index file **\/\r\n\r\ncd \/var\/www\/html &amp;&amp; rm index.html\r\n\r\n\/** Download latest WordPress **\/\r\n\r\ncd \/home &amp;&amp; wget https:\/\/wordpress.org\/latest.zip\r\n\r\nunzip latest.zip\r\nrm latest.zip\r\n\r\ncp -R \/home\/wordpress\/* \/var\/www\/html\r\n\r\n\/** Change Ownership **\/\r\n\r\nchown -R www-data:www-data \/var\/www\/html\r\n\r\nsudo find \/var\/www\/html -type d -exec chmod 755 {} \\; \r\n\r\nsudo find \/var\/www\/html -type f -exec chmod 644 {} \\;\r\n\r\n\r\n<\/span><\/pre>\n<h4 id=\"h-setting-up-a-reverse-proxy\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Setting_up_a_Reverse-Proxy\"><\/span>Setting up a Reverse-Proxy<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\"> \/** Edit the File and paste the code **\/\r\n\r\nnano \/etc\/apache2\/sites-available\/wordpress.conf\r\n\r\n&lt;VirtualHost *:80&gt; ServerAdmin &lt;YourEmail&gt; DocumentRoot \/var\/www\/html\/ ServerName &lt;Your(Sub)Domain&gt; &lt;Directory \/var\/www\/html\/&gt; Options +FollowSymlinks AllowOverride All Require all granted &lt;IfModule mod_dav.c&gt; Dav off &lt;\/IfModule&gt; SetEnv HOME \/var\/www\/html SetEnv HTTP_HOME \/var\/www\/html &lt;\/Directory&gt; ErrorLog ${APACHE_LOG_DIR}\/error.log CustomLog ${APACHE_LOG_DIR}\/access.log combined &lt;\/VirtualHost&gt;\r\n\r\n<\/span><\/pre>\n<h4 id=\"h-setting-up-a-reverse-proxy\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Activate\"><\/span>Activate<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">\r\na2ensite wordpress.conf\r\n\r\nsystemctl restart apache2\r\n<\/span><\/pre>\n<h4 id=\"h-installing-an-ssl-certificate-via-certbot\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_an_SSL_Certificate_via_Certbot\"><\/span>Installing an SSL Certificate via Certbot<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">You can configure your website&#8217;s security measures, such as enabling HTTPS with an SSL certificate via Certbot. By taking the time to properly configure WordPress, you can ensure that your website runs smoothly and provides an excellent user experience.\u00a0<\/span><\/p>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\">apt install certbot python3-certbot-apache -y\r\n\r\ncertbot --apache\r\n<\/span><\/pre>\n<\/div>\n<h4><span class=\"ez-toc-section\" id=\"Finish_the_WordPress_Setup_through_Browser\"><\/span>Finish the WordPress Setup through Browser<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>You can directly visit the domain name in browser and you will get screen :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1280\" src=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26-1024x776.png\" alt=\"\" width=\"917\" height=\"695\" srcset=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26-1024x776.png 1024w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26-300x227.png 300w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26-150x114.png 150w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26-768x582.png 768w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.22.26.png 1354w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Click on Lets go! &gt;&gt;<\/p>\n<p>Provide the <span style=\"font-weight: 400;\">wordpress<\/span> database and username as desired:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1281\" src=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-1024x604.png\" alt=\"\" width=\"1024\" height=\"604\" srcset=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-1024x604.png 1024w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-300x177.png 300w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-150x88.png 150w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-768x453.png 768w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27-1536x906.png 1536w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.27.27.png 1740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Provide the details for admin access and WordPress Website title:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1283\" src=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10-1024x995.png\" alt=\"\" width=\"1024\" height=\"995\" srcset=\"https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10-1024x995.png 1024w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10-300x291.png 300w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10-150x146.png 150w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10-768x746.png 768w, https:\/\/yoho.cloud\/blog\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-23-at-23.29.10.png 1482w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In this way, you have successfully installed WordPress on your VPS and you can also add the additional .htaccess rule to <a href=\"https:\/\/yoho.cloud\/blog\/redirect-http-to-https-using-htaccess\/\">redirect HTTP traffic to HTTPS<\/a> protocol which also gives a padlock on browser.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"prebox\"><span style=\"font-weight: 400;\"> \/** From Terminal **\/\r\n\r\nnano \/var\/www\/html\/.htaccess\r\n\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteCond %{HTTPS} !=on\r\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]\r\nRewriteBase \/\r\nRewriteRule ^index.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n\r\n<\/span><\/pre>\n<h4 id=\"h-setting-up-a-reverse-proxy\" class=\"wp-block-heading\"><\/h4>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Switching your WordPress Website from shared hosting to a Virtual Private server is a complex task which may need some sort of technical knowledge of Linux server administration and setting up the WordPress blog in VPS.\u00a0 if you&#8217;re new to the world of VPS hosting or WordPress installation, the process can be daunting. Fear not! [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1285,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,52],"tags":[],"class_list":["post-1275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-vps"],"_links":{"self":[{"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/posts\/1275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/comments?post=1275"}],"version-history":[{"count":9,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/posts\/1275\/revisions"}],"predecessor-version":[{"id":1295,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/posts\/1275\/revisions\/1295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/media\/1285"}],"wp:attachment":[{"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/media?parent=1275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/categories?post=1275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yoho.cloud\/blog\/wp-json\/wp\/v2\/tags?post=1275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}