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 …

Control Panel, Installation

How To Fix Video Conversion Problem in Clipbucket?

This topic has been discussed many times so i am going to write a complete guide to track your video conversion problem and fix it. I am using ClipBucket 2.0.9, if you have not already update to latest version, please download it from http://clip-bucket.com/latestAdding some of my Forum post content, here is what we are …

Apache, Control Panel, CPanel / WHM

ACME (acme.sh) Free SSL Certificate?

ACME (acme.sh) is a shell script for generating LetsEncrypt SSL certificate. acme.sh is written in bash, so it works on any Linux server without special requirements. For getting SSL, another popular option is to use certbot.https://github.com/acmesh-official/acme.shacme.sh list all SSL certificatesacme.sh SSL using manual DNS method To install, run cd /usr/local/src git clone https://github.com/acmesh-official/acme.sh.git cd ./acme.sh …