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… /sbin/service sshd restart To, temporarily, reset your shell port back to 22, run the following command from the Address… Continue reading cPanel : sshd has failed, please contact the sysadmin
Category: Uncategorized
Formatting and Mounting a new drive in Linux
I have installed a new slave hard drive. How do I format it and mount it? Solution: 1. Login as root: and type the following command: [root@34 root]# fdisk /dev/hdc 2. This screen will appear: The number of cylinders for this disk is set to 10011. There is nothing wrong with that, but this is… Continue reading Formatting and Mounting a new drive in Linux
rndc: the key is invalid
Problem: ——— Issue: ——— While starting named, or when running /etc/rc.d/init.d/named status, you get the following error: rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. Solution: ——- Fix: ——-… Continue reading rndc: the key is invalid
semget: No space left on device
This relates to semaphores on your system (you’ve run out). Run the following to clear them out: ipcs | grep apache | awk ‘{print $2}’ > sem.txt for i in `cat sem.txt`; do { ipcrm -s $i; }; done; For cPanel servers : ipcs | grep nobody | awk ‘{print $2}’ > sem.txt for i… Continue reading semget: No space left on device
Cpanel DNS on Freebsd: named or rndc does not exist
Problem: Cpanel on FreeBSD shows the error that named or rndc does not exist after a cpanel update. Solution: server1# ln -s /usr/local/sbin/named /usr/sbin/named