Pages

Friday, January 26, 2018

How to Restore a Full cPanel Backup to VPS

Backup restoration is one of the essential tasks every server administrator must know how to perform. Under cPanel it is really simple to restore full backup of one account. In this tutorial we are going to show you two very easy methods about how to restore a full cPanel backup to a Linux VPS.

Restore Full cPanel Backup via WHM

Outlook - Update to enable TLS 1.1 and TLS 1.2 as a default secure protocols

Due to the recent version changes, cPanel software uses a secure version of TLS, v1.2 and will prevent email clients from accessing secure email with older, less secure ones such as TLS v.1.1 , TLS v.1.0 and SSL 2 and 3 . It is possible that the version of the mail client being used or the version of windows is the major reason for the recent issues. For example, if on Windows 7, Windows 7 may not be fully up to date or may not offer appropriate support for the minimum required version of TLS cpanel now support. Microsoft itself has published methods of allowing this to work:

It is better to try configuring your  operating systems and web browsers to use TLS v1.2 according to sites such as these:
 

Follow the instructions below:

Saturday, December 30, 2017

How can I reboot my VPS from SSH?

To reboot your VPS using SSH, run as root the following command: 

reboot

How to solve: cPanel update failure: ***** FATAL: Cannot proceed. Needed system RPMs were not installed

On your VPS or dedicated server running CloudLinux (or CentOS switched to CloudLinux) you may find this problem while trying to upgrade your cPanel to the newest version:

[20130322.110359] Error: Protected multilib versions: libwmf-lite-0.2.8.4-22.el6.i686 != libwmf-lite-0.2.8.4-22.el6.centos.x86_64
[20130322.110359] You could try using --skip-broken to work around the problem
[20130322.110400] ** Found 5 pre-existing rpmdb problem(s), 'yum check' output follows:
[20130322.110400] bandmin-1.6.1-5.noarch has missing requires of perl(bandmin.conf)
[20130322.110400] bandmin-1.6.1-5.noarch has missing requires of perl(bmversion.pl)
[20130322.110400] bandmin-1.6.1-5.noarch has missing requires of perl(services.conf)
[20130322.110400] exim-4.80-5.x86_64 has missing requires of perl(SafeFile)
[20130322.110400] frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
[20130322.110400] Prelinking shared libraries and binaries: /usr/sbin/prelink -av -mR
[20130322.110405] E Sysup: Needed system RPMs were not installed: libwmf
[20130322.110405] ***** FATAL: Cannot proceed. Needed system RPMs were not installed.
[20130322.110405] The Administrator will be notified to review this output when this script completes
[20130322.110405] E Detected events which require user notification during updatenow. Will send iContact the log
=> Log closed Fri Mar 22 11:04:05 2013
[20130322.110405] E Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.1363968224.log --force` failed, exited with code 4608

How to whitelist your IP at CPHulk

cd/script
 
./cphulkdwhitelistxxx.xxx.xxx.xxx

Just don’t forge to replace xxx.xxx.xxx.xxx with your IP addres

How do I disable SSH login for the root user?

Instructions

NOTE: In the following example, we are using admin for the username. This is just a example and can be replaced with any username you wish to use.

1. Add the user. In the following example, we will use the user name admin. The command adduser will automatically create the user, initial group, and home directory.

[root@root ~]# adduser admin
[root@root ~]# id admin
uid=10018(admin) gid=10018(admin) groups=10018(admin)

[root@root ~]# ls -lad /home/admin/
drwx------ 2 admin admin 4096 Jun 25 16:01 /home/admin/



2. Set the password for the admin user. When prompted, type and then retype the password.

How to enable mod_deflate globally in cPanel/WHM

This will be a quick one folks.  The Apache module mod_deflate helps in reducing the size of the information sent to a user, by compressing things prior.  It seems to work very well.  To test if your site already has mod_deflate installed and working, you can go here:

http://www.whatsmyip.org/http_compression/

To enable mod_deflate on your WHM / cPanel server, make sure you run EasyApache through WHM, and select to install mod_deflate.  Once done, you’ll notice that it is not active globally.  In your cPanel control panel for your domain, you should notice that under “Software / Services” an icon called “Optimize Website” is now there.  This is how you control mod_deflate on a per user basis.

If however, you wish enable it globally, so that all websites on your server can benifit from this, you need to venture back into WHM, and this time go to:

Services Configuration >> Apache Configuration >> Include Editor >> Post VirtualHost Include, and select All Versions