Category: Blog

WHM unable to create or remove accounts

1) Check your /etc/resolv.conf. If its missing valid nameservers this can be the cause Code: dig . NS If this times out then this is the problem. You have to fix your /etc/resolv.conf 2) Make sure you aren’t missing perl modules or have 11.x scripts on a 10.x machine r Code: un /scripts/perlinstaller File::Copy::Recursive /usr/local/cpanel/bin/checkperlmodules… Read more »

cPanel sshd has failed, please contact the sysadmin

If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail. You have to ssh to the server and issue the following command to restart sshd… Code: /sbin/service sshd restart To, temporarily, reset your shell port back to 22, run the following command from… Read more »

CPanel: Backup and Restore a Domain Account via SSH

CPanel: Backup and Restore a Domain Account via SSH Sometimes there is a need to backup a CPanel account without logging into the endusers CPanel yourself. In those situations the account can also be backed up via SSH. Every CPanel server comes with scripts that can be executed via SSH. In this case we will… Read more »

VirtualHost directives in httpd.conf for all accounts are gone

To restore VirtualHost directives for all accounts in /usr/local/apache/conf/httpd.conf file (if your running RELEASE or CURRENT builds), run the following command at the prompt: Code: /scripts/rebuildhttpdconf

Common SSH Commands or Linux Shell Commands

Common SSH Commands or Linux Shell Commands, ls : list files/directories in a directory, comparable to dir in windows/dos. ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file. cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory cd ~ :… Read more »

partners partners partners partners partners partners partners partners