• Can’t locate Test/Harness.pm perl Error: [Solution]

    Do you get the below Perl error while installing/Upgrading OpenSSL to the latest version? Can’t locate Test/Harness.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at .././test/run_tests.pl line 72. BEGIN failed–compilation aborted at .././test/run_tests.pl line 72. make[1]: *** [_tests] Error 2 make[1]: Leaving directory `/root/openssl-1.1.0f’ make: ***…

  • Error loading shared libraries libcrypto.so.1.1 – OpenSSL [Fix]

    Followed the guide to upgrade my OpenSSL to version 1.1.0f and after successful installation I get this error “Error loading shared libraries libcrypto.so.1.1” when OpenSSL command is invoked. Below is the complete error message. openssl: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or…

  • How to upgrade OpenSSL v1.0.1e to v1.0.2 on CentOS/RHEL

    OpenSSL is an open source toolkit that provides tons of functionalities for Secure Socket Layer (SSL) and Transport Layer Security (TLS) protocols for popular applications like secure web server, MySQL Databases and email applications. While working on a project to setup a certification authority using OpenCA on CentOS 6, found that…

  • yum-config-manager command not found [Fix]

    Do you get an error “yum-config-manager command not found” while upgrading PHP? Well, I got this error while upgrading PHP from version 5.3 to 7 on CentOS vps and here’s how I solved the issue. Here’s the snapshot of the error while setting up REMI repository which contains PHP7 packages. [root@centos6…

  • Configure error: no acceptable C compiler found in $PATH

    Do you get an error “no acceptable C compiler found” while compiling OpenCA from source? If yes, here’s a fix for it. configure: error: in `/home/openra/openca-base-1.5.1′: configure: error: no acceptable C compiler found in $PATH See `config.log’ for more details Fix compilation error : no acceptable C compiler found in…

  • Perl error: PERL XML-Parser module requires expat-devel

    I recently fixed an error “addMessage failed for log slot XML” while accessing OpenCA pub page. However that was an older version of OpenCA. Today I decided to install the latest version on CentOS7 virtual machine and ran into a Perl error – “PERL XML-Parser module requires expat-devel”. Below is the…

  • Upgrade PHP 5.3 to PHP 7.0 using yum on CentOS/RHEL/Fedora

    My web server was running PHP version 5.3 for a long time and now I would like to en-cash the advantages of PHP 7.0. So I decided to upgrade PHP 5.3 to PHP 7.0. As this is a production web server, I don’t want to disturb the existing setup and…

  • OpenCA Error addMessage failed for log slot XML. Cannot create directory [Solved]

    Do you see the below error while accessing OpenCA pub page? Error 64510030 – General Error OpenCA Error addMessage failed for log slot xml (6512032). Cannot create directory /home/openra/var/log/xml/time/2017/10/30/04/28. Content-type: text/html Below is the detailed error message in stderr.log. PKI Master Alert: Logging error PKI Master Alert: Aborting all operations PKI Master…

  • How to List Modules Loaded or Enabled in PHP from command line

    Question: With the help of Webserver optimization guide, I was able to reduce the server load and improve website performance. But then PHP also loads lot of modules as extensions. I would like to know if there’s any command that will list all modules that are enabled with PHP? I’m using CentOS Linux and…

  • Apache2 configtest failed: Segmentation fault (core dumped) [Solved]

    I have installed Apache2 and it was working fine. I had also installed PHP 7.1 and everything was working fine, until I installed phpMyAdmin. Yes, all of a sudden Apache failed with an error message “Apache2 configtest failed”. Below is the apache2 failed error: root@osticket-server:~# /etc/init.d/apache2 restart * Restarting web…

  • Secure WordPress MySQL database with restricted privileges

    Since hacking is on the rise and we have seen in recent times many WordPress websites are getting hacked daily, it is very important to secure your websites with highly recommended WordPress security plugins and follow the best security practices. However, people give least importance to one particular WordPress security guideline, i.e.,…

  • How to make your WordPress search match Exactly!

    This is a common question about WordPress search match exactly, or in other words, asked by my client: If I search for a term, all kinds of posts are shown which contain the term, for example, If I search for “all on 4 Implant” I also get posts having the…

  • Deleted WordPress User, but it appeared again [WordPress Hacked]

    I recently wrote an article on how I recovered my client’s website from Black Hat SEO spam attack. During the process, I observed a strange behavior – even after deleting an user account called ‘wpdev‘, which belonged to an ex-developer of the company, the account appeared again in Users >…

  • wc command prints wrong output character count [Solved]

    Question: Why does wc command prints wrong output character count when used with echo command in Linux? Below is the command I used to count the number of characters in a string. $echo “santhosh” | wc -c 9 But it always gives me one count more. Am I doing anything wrong?…

  • Integrating OpenSRS Domains Pro with WHMCS

    One of my client gave a task of installing and integrating OpenSRS Domains Pro with WHMCS. Below are the steps to be followed. Download OpenSRS Domains Pro WHMCS Module Download the latest version of OpenSRS Pro WHMCS module from here and extract it. The extracted directory would contain WHMCS directory under which…

  • Add submenu under WooCommerce WordPress Plugin

    This tutorial will explain how to add submenu under WooCommerce menu in WordPress admin panel. For example, imagine that you are developing a plugin for WooCommerce – where you want to add submenu called “Bebuzzd” and link it to a custom settings page. Here’s how you can do that. Step…

  • 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…

  • 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 //aquota.group on /dev/vda1 [/] quotaon: using //aquota.user on /dev/vda1…

  • Install and 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…