How do convert a dedicated IP to a shared IP on cPanel/WHM

In root SSH, copy the /etc/domainips file and then remove the IP from it: Code: cp /etc/domainips /etc/domainips.bak110726 vi /etc/domainips You’ll see a line for the IP like the following that you’d remove from that file: Code: IP#: domain.com Where IP# is the dedicated IP and domain.com is the current domain using that IP. After…

How to configure the passive ports range for ProFTPd on a Plesk server behind a firewall

Question How to configure the passive ports range for ProFTPd on a server behind a firewall? Answer Note: When configuring the passive port range, a selected port range must be in the non-privileged range (e.g., greater than or equal to 1024). It is strongly recommended that the chosen range should be large enough to handle…

AutoSSL issue with cpnginx

cat /usr/local/nginx/conf/vhost.ssl.d/domainname.com.conf Add below lines before –  location = /favicon.ico { #………….. Cpnginx OCSP stapling protection for security start ……………….. ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /usr/local/nginx/conf/ssl.ca.d/gameoncricket.com_ca-bundle; resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2 valid=300s; resolver_timeout 5s; #………….. Cpnginx OCSP stapling protection for security end………………….. After above, nginxctl rebuildvhost  domainname.com check nginx status – systemctl status nginx.service…

OpenVZ useful commands

OpenVZ useful commands Here is the list of some useful OpenVZ commands which should be run from the main node : 1. To fetch the consumption of disk for each container in the node along its it’s hostname and ctid vzlist -H -o veid,hostname,diskspace | awk ‘{ printf(“%d\t%s\t%.2f GB\n”, $1, $2, $3/(1024*1024))}’   2. To…

Disk Extend EXT2/3/4 and XFS root partition without LVM

Disk Extend EXT2/3/4 and XFS root partition without LVM Looking for steps to grow your KVM VM/Container’s partition after extending root OS size or extending ext2/3/4 and XFS root partition without LVM at runtime. Steps to extend root partition without LVM are quite easy and can be followed without going into many technical details. This…

How to fix and Prevent SQL Injection in WordPress

Introduction SQLi is the manipulation of a security flaw in database systems. WordPress, as a platform, runs server-side scripts in PHP and uses SQL databases. Hence, SQL and PHP make WordPress websites vulnerable to attackers. They could insert malicious URLs (which are embedded with commands) that trigger unwanted behaviors from your database. Consequently, your database’s…