• How to find a Disk is SSD or HDD in Linux?

    I recently bought a server with SSD (Solid State Drive) disk. But how do I verify if I had really got a server with SSD disk? Fortunately there are few commands that will tell you if a disk attached to system is SSD or HDD. So if you ever want…

  • Metadata file does not match checksum – YUM error!

    Sometimes you might land up with this error – Metadata file does not match checksum while performing any yum operation. For instance, I was using yum provides command to check if a particular binary is available in any package and the result was “Metadata file does not match checksum“. Here’s the…

  • ifconfig command not found on CentOS 7 Minimal installation

    I have been using ifconfig command to configure network interfaces, enable or disable interface, display IP address information, change MAC address of the network interface on Linux. But where is that command now on CentOS 7? I get ifconfig command not found on CentOS 7 minimal installation? Well, you know…

  • Disable Comments on Media Attachment Pages in WordPress

    Dealing with spam comments in WordPress is not a pleasant experience. If you are running a WordPress site that does not require comments, then you can simply disable comments via Settings > Discussion and un-checking “Allow people to post comments on new articles”.Although this setting will disable comments for future posts or…

  • Why hosts.allow not working on CentOS 7 Minimal installation

    Here’s a question asked by Gokul, one of the regular reader at Techglimpse – hosts.allow not working on CentOS 7 minimal installation. Question: I recently installed a minimal version of CentOS on my VPS. After installing I tried configuring hosts.allow to allow TCP connections only from known IP addresses and…

  • How to Disable Root User Login via SSH

    By default SSH will allow any valid user account to login to the remote system and that includes root user as well. Though root user is set with strong password, it can only limit its exposure to brute force attacks. But as said it only limits, still a malicious access…

  • How to Delete all Records of a Table in phpMyAdmin

    Recently my client’s WordPress site was flooded with fifteen thousand spam comments & posts. To protect the site, I advised the client to disable comments via Settings > Discussion and un-checking “Allow people to post comments on new articles”. Well, this setting will only disable future comments, but there were…

  • PHP Script to Extract URLs from Webpage

    Are you looking for a PHP script to extract URLs from webpage? This tutorial will provide a code snippet that will help you to extract all URLs/links from a given website. Step 1: Create a variable to store the source URL. $sourceURL=”http://example.com”; Step 2: Read source using file_get_contents() function $content=file_get_contents($sourceURL); The…

  • How to view Balance in Paytm Android app

    Since demonetisation of 500 & 1000 rupee notes in India, the mobile wallets have seen a tremendous growth. Now even the common person can make digital payments via mobile wallets and Paytm leads that list. According to recent reports, Paytm wallet is used by over 150 million users across India….

  • W3 Total Cache + Google Drive CDN = Deprecated!

    Probably I’m too late to write about this, but I was not aware of it until I enabled Google drive as CDN in W3 Total Cache plugin. I have been dreaming for a long time to use cheap CDN for my website and only yesterday I realized W3 Total Cache…

  • How to Avoid a character set in the meta tag

    I was analyzing the site for speed optimization using GTmetrix, which gave me an insight to avoid a character set in the meta tag. This tutorial will explain why you should not set character set in meta tag and what’s the right way of achieving the same. Before we starting…

  • Block Clean Master ads on Android Charging Screen

    Do you have Clean Master app installed? Then you would probably want to disable annoying ads shown on charging screen. Well, this tutorial will explain how to block Clean Master ads on Android charging screen and also explains why you don’t require any cleaning app. How to Block Clean Master…

  • Vodafone session cost 0.04 and How to Stop that?

    Do you have mobile data switched Off and still see Vodafone session cost 0.04 balance drop? I see many complaints in the internet including the consumer forums and those complaints were all from Vodafone users. Generally, the operator should not charge for data usage when the mobile data is turned Off….

  • Why mysql user has bash shell in /etc/passwd?

    If you install MySQL on Linux, then a new user account called ‘mysql‘ will be created for running mysqld service. But why does the mysql user has bash shell in /etc/passwd? Generally, services are run as nologin user, where the shell will be set to /bin/false or /bin/nologin in /etc/passwd…

  • Difference between /bin/false & /sbin/nologin

    I have seen few system administrators using /sbin/nologin and few use /bin/false to deny shell access to a particular user in Unix machines. But I have been wondering what’s the difference between /bin/false & /sbin/nologin and what is the right way of denying a shell access to a user. Well,…

  • Missing Delete option under a category in WordPress?

    When I started using WordPress, I created many categories – around 30 to 40. After few years, it started to look clumsy, so I decided to delete few of them and move posts to relevant category. Deleting the category in WordPress is quite simple, as you need to click “Delete”…

  • How to Recover/Restore Deleted Post in WordPress?

    Deleted a post by mistake? Don’t panic. It can happen to anyone and it had happened to me many times. Happened is happened, but is there a way to recover/restore deleted post in WordPress? Fortunately, there are few options. 4 Ways to Recover/Restore Deleted Post in WordPress Look into Trash…

  • WhatsApp shows numbers instead of Contact names? Here’s a fix

    All of a sudden, WhatsApp shows numbers instead of contact names on Android. Fortunately, there’s a fix for it and this tutorial explains how to get rid of numbers from chats and call lists. In most cases, the issue might be because of WhatsApp sync error or due to insufficient …

  • Fix PHP Error – It is not safe to rely on the system’s timezone settings

    Do you see this error “It is not safe to rely on the system’s timezone settings” (PHP timezone setting error)  while executing a PHP script? I recently got this error after updating PHP on CentOS machine. Below is the complete error when mysqli_connect failed connecting to the database. Warning: mysqli_connect():…