<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wordpress on Vineet Kumar</title><link>https://new.vineetkumar.me/tag/wordpress/</link><description>Recent content in Wordpress on Vineet Kumar</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 08 Jun 2020 06:09:59 +0000</lastBuildDate><atom:link href="https://new.vineetkumar.me/tag/wordpress/index.xml" rel="self" type="application/rss+xml"/><item><title>How to setup WordPress on Digital Ocean (2020)</title><link>https://new.vineetkumar.me/2020/06/how-to-setup-wordpress-server-2020/</link><pubDate>Mon, 08 Jun 2020 06:09:59 +0000</pubDate><guid>https://new.vineetkumar.me/2020/06/how-to-setup-wordpress-server-2020/</guid><description>&lt;p&gt;With incidents such as Australian bush fire, Covid-19 Pandemic and civil unrest in many countries over one reason or the other, 2020 is basically proving to be one long nightmare. To make it worse for me, my server got hacked, majorly due to lack of proper security or a bad WordPress vulnerability (To put it in the words of Einstein, mildly, human stupidity has no limit).&lt;/p&gt;
&lt;p&gt;So I decided to migrate the server to a new one and this time decided to invest some time in making it more secure. This guide is basically a document to setup such a server to host WordPress sites with as much security hardening as I possibly can do. 2020, bring it on!&lt;/p&gt;</description></item><item><title>How to secure your site using Lets Encrypt</title><link>https://new.vineetkumar.me/2018/06/how-to-secure-your-site-using-lets-encrypt/</link><pubDate>Sun, 24 Jun 2018 09:59:28 +0000</pubDate><guid>https://new.vineetkumar.me/2018/06/how-to-secure-your-site-using-lets-encrypt/</guid><description>&lt;p&gt;If you have your own site, encrypting is something that should be mandatory. Not only does it makes your site secure against hackers/crackers but also google rank those sites higher who serve their site on https.&lt;br&gt;
Here’s how you can secure your wordpress based site using certificate provide by Lets Encrypt.&lt;/p&gt;
&lt;h3 id="some-background" class="relative group"&gt;Some background: &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#some-background" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;I am quoting the following direct from the &lt;a href="https://letsencrypt.org/getting-started/" target="_blank" rel="noreferrer"&gt;Let’s Encrypt&lt;/a&gt; site:&lt;/p&gt;
&lt;pre&gt;To enable HTTPS on your website, you need to get a certificate (a type of file) from a Certificate Authority (CA). Let’s Encrypt is one such CA. In order to get a certificate for your website’s domain from Let’s Encrypt, you have to demonstrate control over the domain. With Let’s Encrypt, you do this using software that uses the ACME protocol, which typically runs on your web host.&lt;/pre&gt;
&lt;p&gt;If you have shell access (that is if you can connect to your host using PuTTY), you can follow the instructions provided &lt;a href="https://certbot.eff.org/lets-encrypt/debianstretch-nginx" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt; to install certbot.&lt;/p&gt;
&lt;h3 id="process" class="relative group"&gt;Process: &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#process" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;Assuming your wordpress site runs on nginx web server on Debian 9, here’s how to do it:&lt;br&gt;
Add the repository source in your sources.list:&lt;/p&gt;
&lt;pre&gt;deb http://ftp.debian.org/debian stretch-backports main&lt;/pre&gt;
&lt;p&gt;to your /etc/apt/sources.list (or add a new file with the “.list” extension to /etc/apt/sources.list.d/)&lt;/p&gt;</description></item><item><title>Setting up WordPress on Debian 9.3 x64 on a Virtual Machine on Windows 10</title><link>https://new.vineetkumar.me/2018/01/installing-wordpress-debian-virtual-machine/</link><pubDate>Sun, 28 Jan 2018 18:16:50 +0000</pubDate><guid>https://new.vineetkumar.me/2018/01/installing-wordpress-debian-virtual-machine/</guid><description>&lt;p&gt;In this article I am documenting the exact steps that one needs to host a wordpress based site on a Debian based virtual machine (VM). I choose debian since that’s one of the preferred distro based on it’s stability and smaller footprint on resources compared to Ubuntu. But you may very well choose Ubuntu, only some steps in below documentation would differ.&lt;br&gt;
This article deals with following technologies:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Windows 10:&lt;/strong&gt; The host operating system&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Oracle VirtualBox:&lt;/strong&gt; The Virtual Machine software&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Debian 9.3 x64:&lt;/strong&gt; The distro which we will install on the VM&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;nginx&lt;/strong&gt;: The web server&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;mariadb&lt;/strong&gt;: MySQL database solutions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;php&lt;/strong&gt;: The package which installs on Debian automatically as a dependency&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;phpMyAdmin&lt;/strong&gt;: Administration tool for MariaDB&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Steps to add a WordPress Site to an existing VPS</title><link>https://new.vineetkumar.me/2015/10/steps-to-add-a-wordpress-site-to-an-existing-vps/</link><pubDate>Fri, 09 Oct 2015 10:48:04 +0000</pubDate><guid>https://new.vineetkumar.me/2015/10/steps-to-add-a-wordpress-site-to-an-existing-vps/</guid><description>&lt;p&gt;I use to have a hard time configuring a new site under a common VPS. So I decided to document the steps for easy reference in future.&lt;br&gt;
Following are the steps to add a new site “site-name.com” under a new user account “username” on your Linux VPS. This is to note that this works if you have the following web service solution stack (LAMP):&lt;br&gt;
Linux OS : &lt;strong&gt;Debian&lt;/strong&gt;&lt;br&gt;
Web server: &lt;strong&gt;Nginx&lt;/strong&gt; (Not Apache)&lt;br&gt;
Database: &lt;strong&gt;MySQL&lt;/strong&gt;&lt;br&gt;
Application Programming Language: &lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;So here we go:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Buy the domain. Call it &lt;strong&gt;site-name.com&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set the nameserver of the domain to point to the IP address of your VPS under ‘A’ record which stands for ‘Address’. For reference, there are other kinds of record like ‘CNAME’ and ‘MX’, but you don’t need to set them at this point.&lt;/li&gt;
&lt;li&gt;Create a new user on VPS by command by following command.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;sudo adduser username&lt;/pre&gt;
&lt;p&gt;This command also creates a new home directory for the user.&lt;/p&gt;</description></item><item><title>I migrated to Digital Ocean</title><link>https://new.vineetkumar.me/2015/01/migration-to-digital-ocean/</link><pubDate>Tue, 13 Jan 2015 17:55:58 +0000</pubDate><guid>https://new.vineetkumar.me/2015/01/migration-to-digital-ocean/</guid><description>&lt;p&gt;It was about one year that this site was hosted on a VPS server of Leaseweb. They provided a good set of specs but had some amount of unreliability when it came to providing 24×7 up-time. Also it once had a service outage that resulted in the loss of our data. Thanks to offline backups and Google cache I was able to restore all my posts. So it was high time before we moved onto something more trustworthy. It was then when I came to know about Digital Ocean, an SSD only VPS hosting provider. After a lot of geeky research I realized how &lt;a href="https://www.digitalocean.com/company/blog/digitalocean-closes-37-2-million-series-a-led-by-andreessen-horowitz/droplet-growth-chart-b55ef979.png" target="_blank" rel="noopener noreferrer"&gt;quickly&lt;/a&gt; they grew their scope to provide a quality platform for VPS.&lt;br&gt;
What follows next in this article is the story of how I migrated to DigitalOcean with help from my friends. Be warned that this article is fairly technical and can also serve to anyone who wants to migrate to DigitalOcean. I wholeheartedly thank &lt;a href="http://u.krow.me/1197" target="_blank" rel="noopener noreferrer"&gt;Aaruni&lt;/a&gt; for his help on setting up the server, without his help it could have taken me days to do the same.&lt;/p&gt;
&lt;h3 id="1-new-server-on-digitalocean-do-vps" class="relative group"&gt;&lt;strong&gt;1. New Server on DigitalOcean (DO) VPS&lt;/strong&gt; &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#1-new-server-on-digitalocean-do-vps" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;There are numerous VPS providers but none at the feature to price ratio which DO provides. Hence me and my online friends decided to go for the most basic plan of $5 per month, which provided us with following features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;512MB Memory&lt;/li&gt;
&lt;li&gt;1 Core Processor&lt;/li&gt;
&lt;li&gt;20 GB SSD Disk Space&lt;/li&gt;
&lt;li&gt;1TB Transfer Bandwidth&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This configuration is modest to run a Unreal Tournament (UrT) gaming server and to host numerous small websites which were our requirements. Plus its easy to upscale so starting from the smallest option seemed to be a wise decision.&lt;/p&gt;</description></item></channel></rss>