DEMO : Flipboard/Book style page-flips using CSS & Jquery Plugins Refer Tutorial
Previous page Next Page

How to Shorten Bash Prompt in Linux?

If you are working with a deep directory structure, then you might have noticed a lengthier bash prompt. This tutorial will explain various tricks that lets you to shorten bash prompt. For example, if you are working within a directory /var/www/website/content/assets/styles/css/, then based on your settings, you might see a bash prompt as shown below: […]

How to Add or Modify State in WooCommerce?

Do you need to add or modify state in WooCommerce plugin? If yes, all you need is a simple snippet. Generally, every country in WooCommerce has an unique code. For example, India has a code country of ‘IN’ and IRAN as ‘IR’. Here’s a complete list of country codes in WooCommerce plugin. To add a […]

How to Reset WordPress Password via PHPMyAdmin

Do you want to reset WordPress password? Well, you can use “Lost your password” link in the WordPress login page. Upon clicking, you will be asked to enter WordPress username or email address and once done, WordPress will send you the password reset link. Ok, all is fine when you have an access to your email address. […]

How to view SSL Certificate Information in Chrome 56

Until few months back, I was able to view SSL certificate information in Chrome browser by clicking the padlock icon in the address bar. But starting from Chrome 56, the user cannot follow the same process to view SSL certificate information. For some reason, Chrome does not allow you to do that. But don’t worry, […]

How to disable MySQL Password Validation plugin

I had recently Installed MySQL v5.7 on Debian 8 Jessie. After the successful installation of MySQL, to improve the security of MySQL installation, ran the below command: # mysql_secure_installation The above command will prompt for the root password. Enter the password you created during the installation. A series of questions are asked for which you need to […]

file_get_html returns null, but cURL should fix it [PHP]

I have been using file_get_html function of Simple HTML DOM parser to parse and extract the contents of a remote website. The script was working well few months ago, but not anymore (file_get_html returns null). Well, after doing some research, I understood that file_get_html() may not work with all remote websites, but cURL should. Before […]

Android Cellular data Status Disconnected? [Solution]

Are you facing an issue with your cellular data? or do you see an exclamation mark next to the mobile data toggle in the notification tray? Then, you have landed on the right page. In this tutorial, I’ll explain how to fix the issue “Android Cellular data Status Disconnected” If you have enabled “Cellular Data”, but […]

quotaon: Quota format not supported in kernel : Ubuntu [Solved]

I was recently working with quota tool on Ubuntu and was trying to configure quota for / partition. After the configuration, when I try to turn on quota using the command quotaon, I got the following error: # quotaon / quotaon: cannot find // on /dev/vda1 [/] quotaon: using //aquota.user on /dev/vda1 [/]: No such process quotaon: […]

Installand Configure User and Group Disk quota on Ubuntu and Debian

Most of the time, the user keeps all of his junk/unwanted files in his home directory and never bothers to clear it. This might block the usage of storage to other genuine users. So, quotas are used to limit the amount of disk space a user/group can use on the system. To implement quotas, a […]

How to Fix “nova.compute.manager Stderr: u”qemu-img: Could not open”

All of a sudden, the Hypervisor Summary page in Horizon dashboard was not updating the usage stats of vCPUs, RAM and Local storage for one of the compute node. I see new VMs are launched on that compute node, but the stats page still showed all the vCPUs, RAM and disk were intact/not-used (though the new VMs […]

Fix HTTP 403 Forbidden, Failed to Open Stream – PHP Copy function

I wrote a simple PHP program to copy an image from a website to local directory. The copy() function will copy a file to the specified destination and it can be used to copy a file that’s stored locally and also from a remote website. But I was stuck with an error “failed to open […]

How to install LEMP on Ubuntu 14.04 LTS

LEMP is a group of open source software stack used to setup web server, database and PHP on a Linux operating system to serve dynamic web pages. LEMP stands for Linux, Nginx (pronounced as Engine X) web server, MySQL database and PHP. Another stack called LAMP (alternative to LEMP) is also available in which Nginx web […]

Write a Batch Script to Automate File Transfer Between Linux & Windows using WinSCP

Question: I have been running cron on a Linux server to take a backup of my website once in a day. But I download those backups to my local machine (which is Windows) once in a week or so. Is it possible to automate file transfer from Linux to Windows? Answer: Yes, you can. Take a look at […]

Fix FTP Passive Mode problem on OpenStack & EC2 VMs

Have you installed VSFTP in your OpenStack or Amazon EC2 VM and getting errors such as “Entering passive mode…connection failed“? If yes, then you have landed on the right page. This tutorial will help you to fix FTP passive mode problem on VMs started in OpenStack cloud middle-ware and in Amazon EC2. This error is […]

How to Allow SFTP and disallow SSH?

In this tutorial, I will explain how to configure SSH to allow SFTP and disallow SSH login access. Solution: Well, SFTP uses SSH and by default the users will able to use both SSH and SFTP. But if you ever want users to use only SFTP and disallow SSH access, then OpenSSH supports that. From OpenSSH […]

Install PHP 7 on a fresh Ubuntu VPS: [Fix] Unable to locate package PHP

Recently one of my client provided a fresh VPS and asked me to install PHP 7, Apache and MySQL. While installing PHP, I encountered the below error: root@webimage:~# apt-get install php Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package php Solution: By default PHP5.5 is only available […]

What is “Yes This Is A Really Long Request URL” connection attempt to your webserver?

Today, I noticed a strange connection attempt to my server requesting for a long file name – that starts as ‘/YesThisIsAReallyLongRequestURLbutWeAreDoingItOnPurpose……………….’. Below is the snapshot from the Apache error log. [Thu May 11 17:52:01 2017] [error] [client] (36)File name too long  : access to /YesThisIsAReallyLongRequestURLbutWeAreDoingItOnPurposeWeAreScanningForResearchPurposePleaseHaveALookAtTheUserAgentTHXYesThisIsAReallyLongRequestURL                   […]

COMODO SSL Certificate Installation : Nginx

COMODO SSL Certificate Installation – I installed LEMP stack for one of my client on his CentOS 7 machine and configured SSL certificate obtained from COMODO for his domain. It was working fine in desktops and mobile devices. But my client came back with an issue and said that he sees an SSL warning error […]

Call to undefined function simplexml_load_file() – PHP Error [Solved]

While working on a migration of a Joomla powered website on to a new VPS with PHP version 7.0 and Apache 2.4, encountered the an error “Call to undefined function simplexml_load_file()“. Below is the complete error. Error displaying the error page: Call to undefined function simplexml_load_file(): Call to undefined function simplexml_load_file() In this tutorial, I’ll explain […]

StartSSL Distrusted, Migrate to LetsEncrypt!

TRUST is the word that comes to our mind when we speak about Certificate Authority. StartSSL, a certificate authority that provides free SSL certificate with a validity of one year for non-commercial use. An initiative that aimed to secure the internet traffic has now lost TRUST – StartSSL distrusted! The CA lost trust well during October 2016 – below […]