TwitterRSS Feed

Esc.sh

Random notes from an Engineer

Better RDP client for Fedora and Ubuntu

The other day, I had to use RDP to connect to a customer's Windows Server 2012. I use a Linux Workstation, so normally, I use "rdesktop" to get things done. But, this time, when I did rdesktop 95.x.x.x I got the following error. [email protected] ~ # rdesktop 95.xx.xx.xx Autoselected keyboard map en-us Failed to connect, CredSSP required by server. I tried a quick google search and the results suggested me to uncheck "Allow connections only from computers running Remo
Mansoor A
Mansoor A
1 min read

Fix 'Roundcube - Connection to storage server failed' error

This is going to be a very short post. I faced this issue on a Plesk server. All of a sudden ( it was after a reboot ), Roundcube stopped working. No matter what you do, this is the error you get > Connection to storage server failed Not very helpful, I know. This is a generic error, there could be a 100 reason why it happens. But, if this happened all of a sudden, then it must be easy to fix. Make sure that dovecot is running /etc/init.d/dovecot status If it isn't, restart it /etc/init.d
Mansoor A
Mansoor A
1 min read

How To Fix Poor Font Rendering in Fedora

Backstory I've been using Linux Mint 17.3 for some time, and then Ubuntu 16.04 was released. I have this problem, you know, like, if there is any distro release, I have to install it and use it. Be it Linux Mint, Ubuntu, Fedora, or whatever. So I installed Ubuntu 16.04. It was nice, for a while, then came quite a lot of bugs ( It's an LTS release for God's sake ). So I ditched Ubuntu and decided to go back to Fedora 23 KDE. And I did. Fedora is awesome. I mean, so many people underestimate Fed
Mansoor A
Mansoor A
3 min read

Fix YUM getting stuck - Centos 6/7

Some times it happens. You were trying to install something and Yum gets stuck. No error messages, it's just stuck. After you do several Ctrl+C, you're back in the shell. But, yum is still not working as it should. There could be several reasons why it happens, and the fixes are pretty simple. > Applicable to : Centos 6/7, Fedora * Check if you have the DNS set properly in your server. You can try something like ping www.google.com If you are getting a response, your DNS is working
Mansoor A
Mansoor A
1 min read

SuperFast WordPress Part 2 : Setting up FastCGI microcaching + Load tests

This is the second part of a post series. Please read the first one, if you haven't: Part 1 : Setting up Nginx + PHP-FPM + WordPress [https://esc.sh/blog/superfast-wordpress-part-1-nginx-php-fpm/] Alright. So now we have our WordPress site up and running. But things aren't running as smooth as you'd wished. If you did a load test right now, you will probably get similar results as if you had Apache serving the pages. The reason is that each time a page is requested, the php-fpm process has to u
Mansoor A
Mansoor A
3 min read
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