Category: Cloud Linux

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 …

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 …

Cloud Linux, Control Panel, CPanel / WHM

How to install PHP ssh2 module in Cpanel Server

PHP ssh2 module allows you to connect to SSH servers. On Cpanel servers, this module is not available under EasyApache. You need to install using PECL. The PECL module installer in WHM does not list this module. The module is available to download from https://pecl.php.net/package/ssh2 To install it, log in to the Cpanel server as …

Cloud Linux, Control Panel, CPanel / WHM

How to enable jailed shell/SSH access to CPanel user using command line.

To enable jailed shell or SSH access to CPanel user. You can run below command. chsh -s /usr/local/cpanel/bin/jailshell username Kindly replace username with CPanel username. It will show output like below [[email protected] ~]# chsh -s /usr/local/cpanel/bin/jailshell abcde23 Changing shell for abcde23. Shell changed. [[email protected] ~]#

Cloud Linux, CPanel / WHM

whmapi to change cpanel user account password using SSH.

If you want to reset CPanel user account password using SSH then run below command. whmapi1 passwd user=username password=passwordtoreset Above command will change the password of the user. Kindly replace the username with actual username and password with the actual password with which you want to reset it. It wil show output like below [[email protected]

Cloud Linux, CPanel / WHM

whmapi to list users accounts using SSH.

If you want to list the all the accounts username using SSH then run below command. whmapi1 list_users It will show list of all the accounts hosted on the server. It will show output like below: [[email protected] ~]# whmapi1 list_users — data: users: – abcded – dfgdfgdfg – dfgdfgdfg – rtytryrty – gfhjgfhj – fghfghfgh …