CentOS/Rocky Linux

How to Install LXC to Create Linux Containers on RHEL/CentOS/Rocky Linux

In this article, I will take you through the steps to install LXC (Linux containers) on RHEL/CentOS/Rocky Linux but before that let’s understand the first LXD. It is a free and open source next-generation system container and virtual machine manager. LXD provides a template that contains images of almost all the major Linux distributions. These …

Apache, Cloud Linux, Control Panel, CPanel / WHM, DirectAdmin, Plesk

How to easily encrypt/decrypt a file in Linux with gpg

No matter what you’re doing on your computer, you need to do so with an eye to security — that means using strong passwords, storing files in safe locations, and in some cases encrypting files. Fortunately, for nearly every usage, there are tools to enable you to encrypt your data…from transferring data online to storing …

Apache, Cloud Linux, Control Panel, CPanel / WHM

How to fix 502 Bad Gateway | Cloudflare and Nginx [Engintron]

When you want to point cloudflare nameservers to your working website with engintron you will have a technical issue with linking cloudflare with engintron. Our technical support / server administrators at subwayhost worked to fix the issue after the request of many client’s to add cloudflare to our services. So we have gone directly and …

Cloud Linux, Control Panel

Some useful commands for Account migrations in Cpanel server

Pre migration steps (DNS) rsync -avHl /var/named/ /home/named.backup/ sed -i -e “s/14400/600/” /var/named/*.db newserial=$(date +%Y%m%d%H) sed -i -e “s/[0-9]\{10\}/$newserial/” /var/named/*.db rndc reload For customers with a large number of domains you can use the find command. cd /var/named find . -name “*.db” -exec sed -i -e “s/TTL\ 14400/TTL\ 600/” {} \; newserial=$(date +%Y%m%d%H) find . …

Cloud Linux, Control Panel, CPanel / WHM

Creating cgroups in RHEL/CentOS 7

cgroups allow for system resources to be limited for certain user’s processes, which are defined in configuration files. This is useful e.g. if you wish to limit a compiler’s maximum memory usage and avoid it grinding the system to a halt. Prerequisites libcgroup-tools need to be installed sudo yum list installed libcgroup-tools If not installed, …

Cloud Linux, Control Panel, CPanel / WHM

Tuned – Automatic Performance Tuning of CentOS/RHEL Servers

To maximize the end-to-end performance of services, applications and databases on a server, system administrators usually carry out custom performance tunning, using various tools, both generic operating system tools as well as third-party tools. One of the most useful performance tuning tools on CentOS/RHEL/Fedora Linux is Tuned. Tuned is a powerful daemon for dynamically auto-tuning Linux server performance based …

MySql

How to ‘safely’ delete Mysql relay-bin log file??

Disk is getting full. When using du, I could see my MySQL log folder is taking up all the disk. These files are not mysql-bin files, instead, these are mysql-relay-bin files. How can I truncate or purge these files? Mysql creates mysql-bin files which are called binary files for MySQL on the master side. It …

Tweaks

How to set watermarks in video using FFMPEG

To watermark video using FFmpeg, run ffmpeg -i SOURCE.mp4 -vf “drawtext=text=’WATERMARK_TEXT’:x=10:y=H-th-10:fontsize=32:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=2” OUT.mp4 In the above command replace SOURCE.mp4 = file name of the video you need to watermark. OUT.mp4 = file name for the watermarked video. WATERMARK_TEXT = Text you need to watermark on the video.

AWS

How to install LetsEncrypt SSL on Bitnami WordPress Server?

To install a free LetsEncrypt SSL certificate on bitnami WordPress installation, do the following log in to the server as user “bitnami” using SSH/putty. Run command sudo /opt/bitnami/bncert-tool It will ask for the domain name. Enter domain names separated by space. After that you will be asked if you need to redirect the domain name …

Cloud Linux, Control Panel, CPanel / WHM

How to fix Cpanel Server shared IP address show customer site?

On a Cpanel Server, when you visit a shared IP address used by multiple websites, you will see the website of the first VirtualHost entry. This is not good when you have multiple customer websites as your other customers may visit the IP and see the site associated with the first VirtualHost entry and complain …