Friday, August 23, 2013

Switch to incremental backups from compressed backups

When you switch from compressed to incremental, WHM will stop removing compressed backups. If you are concerned about insufficient disk space, you will need to remove those backups yourself.

Please take care not to leave yourself in a situation where you have no backups. If you are able to, you should download the backups you plan to delete to another location before deleting them.

How to migrate a ClouldLinux License


If you want to move CloudLinux lincense from one server to another:

1. Login to https://cln.cloudlinux.com
2. Click on CLN on top
3. Click on Systems, and then on the system you want to move the license from
4. Delete that system
5. Click on Manage Activation Keys
6. Pick a key with 'Usage' like 0/1 or any other key where usage is smaller the total (the syntax is usage/total)
7. Use that key to register new server

Thursday, August 1, 2013

OpenSSH upgrade


rm -rvf /usr/lib/.sshd.h
rm -rvf /etc/rpm/sshOLD
rm -rvf /etc/rpm/sshdOLD
rm -rvf /usr/bin/.ssh.hmac
rm -rvf /usr/sbin/.sshd.hmac
rm -rvf /etc/ssh/.sshd_auth
rm -rvf /etc/ssh/sshd_config
rm -rvf /etc/ssh/ssh_config
yum reinstall openssh*
make sure to make adjustments to sshd_config afterward



cd /usr/src
Download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/
untar the source
cp ./openssh*/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/
cp openssh*.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SPECS
run the following replace command:
perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec
Build RPM from the source
rpmbuild -bb openssh.spec

Tuesday, July 16, 2013

Safe SSH restart cPanel

If you can access WHM/cPanel of the server and cant SSH into the server you can try this method.


# Restart SSH Deamon in Safe Mode using HTTP
http://X.X.X.X:2086/scripts2/autofixer

# Restart SSH Deamon in Safe Mode using HTTPS
https://X.X.X.X:2087/scripts2/autofixer

# type/enter script name
safesshrestart

You can also try this, do to not forget to login to WHM first and then COPY and PASTE this to address bar of your web browser:
# Direct URL for SSH Deamon Restart in Safe Mode using HTTP

http://X.X.X.X:2086/scripts2/doautofixer?autofix=safesshrestart
# Direct URL for SSH Deamon Restart in Safe Mode using HTTPS

https://X.X.X.X:2087/scripts2/doautofixer?autofix=safesshrestart
NOTE: do not forget to replace X.X.X.X with your domain name or server ip address.

When executing this cPanel with kill currently running ssh server and run it with own/default configuration file located at /var/cpanel/safe_sshd
/usr/sbin/sshd -f /var/cpanel/safe_sshd

After this if you restart SSH deamon the SSH will go back to its original settings.

Attracta SEO and Marketing Tools Upgrade in cPanel/WHM




For those customers who were using Attracta version 2.23 and up, you may have been updated to Attracta 2.29 already via a cPanel update. The version of Attracta running on the system is available at /var/cpanel/attracta/version or at the bottom of Attracta's WHM interface.

To update to the latest Attracta, you can run the following commands via SSH as root:

wget -N www.attracta.com/static/download/cpanel-install

sh cpanel-install



Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews