HomePage

SuperFast WordPress Part 1 : Setting up Nginx + PHP-FPM + WordPress

Nginx is fast. How fast? It's crazy fast, if you configure it properly. In this post, I will help you guys to set up a WordPress site powered by Nginx that can server 1000s of users at the same time ( Oh, I'm not even close to exaggerating, You'll see! ) What if I tell you that you can serve 3000 users per second ( or 250,000,000 - 250 Million clients per day ) a WordPress site, without crashing the server, what would you say? Sure, you can, if you have a huge server powering your site. Hold th
Mansoor A
Mansoor A
4 min read
HomePage, Ops, Linux

Inodes, Hard links and Soft links demystified

If you're a beginner in Linux, chances are you've come across this question yourself. What exactly is a hard link? And how the heck does it differ from a soft link ( symbolic link or symlink ). Sometimes even experienced Linux Admins have this question. Most of us know what a symlink is but gets really confused when we hear about "hard link". It's not that hard though, let me explain it for you. Before we get into knowing the difference between soft link and hard link, we have a few basic thin
Mansoor A
Mansoor A
6 min read

How to disable IPv6 in Exim

The other day I was just [ seriously, for no apparent reason ūüėÄ ] going through the exim logs in my server and this error caught my eye. ASPMX3.GOOGLEMAIL.com [2a00:1450:400b:c02::1b] Network is unreachable Apparently, IPv6 wasn't configured properly in the server and this was causing issues when trying to communicate with google's IPv6 addresses. There are two ways you can fix this issue. The easy way and the correct way. The correct way would be to configure IPv6 properly ( obviously ). As
Mansoor A
Mansoor A
1 min read

Fixing the WiFi issue on Acer Laptops running Linux ( Qualcomm Atheros Device 0042 )

Last week, I bought an Acer Laptop which had Linpus Linux installed in it. The reason why I went for acer instead of HP was that I intend to use Linux Mint as my primary operating systems and HP systems are notorious when it comes to Linux and wifi drivers. But, in my new laptop, I have installed Linux Mint 17.3 and I was shocked to see that the WiFi is not working. I was really frustrated. But, fortunately, later that day I found out that the WiFi card used in the Laptop is a fairly new one an
Mansoor A
Mansoor A
2 min read

Top 6 Free web hosting sites in 2016

If you wanted to create a web site or blog and you are not in a position to spend any penny on it, well, there are a couple of web hosts out there who provides web hosting for free. But let me tell you one thing, if you are serious about your web site, don't even think about a free hosting as there are shortcomings, a lot of them. Even then, if you just want to do some experimental websites or you want to learn the web hosting and stuff, you're better off with some free hosts. Here I have made
Mansoor A
Mansoor A
2 min read

[Script] How to set up Let's Encrypt in cPanel/WHM ( Centos 6.x / 7.x )

Let's be quick and clear. If you're here, you don't need a preface for Let's Encrypt. You probably know how awesome it is. So today I'll show you guys how to quickly and easily setup let's encrypt in your cPanel server, and install SSL certificates for your domains with ease. Please note that you need a dedicated server/VPS for this. Shared hosting is not supported. So, let's get started Setting up Let's Encrypt For Centos 6.x The thing about CentOs 6.x is it comes with Python 2.6 where as Let'
Mansoor A
Mansoor A
4 min read

How to block XMLRPC, and allow only Jetpack

XML-RPC is a remote procedure call protocol with the data in "XML" format and the transport mechanism is "HTTP". WordPress provides an XMLRPC interface to your WordPress installation so that you can do all kind of stuff like, "Create a post", "edit a post" etc, remotely. Basically, you can do pretty much everything through the XML-RPC interface. Okay, that sounds cool. What is the problem? The Problem with WordPress and XML-RPC The problem is that there are a number of ways an attacker can take
Mansoor A
Mansoor A
2 min read

Setup Let's encrypt SSL for your domains - Centos 6/7

The wait is over. Let's encrypt is now in public beta, meaning, you and I can get valid, trusted SSL certificates for our domains, FOR FREE, FOR LIFE TIME. I know, even I didn't believe it the first time, but it's true. It's free. Free as in freedom. In this article, I'll show you guys how to set up an SSL certificate from Let's encrypt for your domain. . Please note that you need a dedicated server/VPS for this. Shared hosting is not supported ( Obviously ) > Update: If you are using cPanel,
Mansoor A
Mansoor A
6 min read

Setting up VirtualHost in Centos 7

This is gonna be a quick and dirty post about how to properly setup VirtualHost in Centos 7. I mainly made this as part of the Let's encrypt setup. So, yeah let's get started First of all, you obviously need to install the LAMP stack in your server. Go HERE [https://digitz.org/blog/how-to-setup-xampp-lamp-in-centos-7/] Create the directory structure We need a specific directory structure so that we can easily manage the VirtualHosts. Here, I'll be using the structure /var/www/site1.com/public_
Mansoor A
Mansoor A
1 min read

How to install GUI (X-Server) on Ubuntu Server

The thing about Linux servers is that, they don't come with a GUI for obvious reasons, including but not limited to "to conserve resource usage". I mean, you don't want your X server to be eating up all your RAM and CPU, do you? So the question comes, do you need  a GUI (X11 server ) on your Linux server ( Ubuntu /Centos / Whatever )? If you ask me, my answer would be "HECK NO!!". Well, it's just my opinion. So, for some weird reasons ( or you're  a newbie and you are scared of the command line
Mansoor A
Mansoor A
1 min read

How to fix python errors when installing modules

This is a quick article showing how to fix common errors you might face when you install a python module using "pip" or by downloading and running "python setup.py install" The Following are the common errors you might come across fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. Compile failed: command ‘x86_64-linux-gnu-gcc' failed with exit status 1 Well, this error means you do not have the python development tools installed.
Mansoor A
Mansoor A
1 min read

"Howdoi" - Get instant coding answers in your terminal itself

If you're  a sysadmin, programmer, or even a hacker, you might come across a situation where you quickly want to know an answer to a simple question, like "How to get epoch time on bash?", or whatever. What you usually do is, open up the browser, start searching in google. But, what if I told you you can get the answer from your command line / terminal itself? Sounds cool, right? There is this tool called "howdoi" which does exactly that. I'll show you a couple of examples to get the idea of how
Mansoor A
Mansoor A
1 min read