WebServer

Cpanel/WHM Backup in Amazon S3

WHM/cPanel, since version 11.42 allow user to do backup to Amazon S3. This is a great choice to do backup by utilizing reliable service like Amazon S3. Furthermore, new S3 user will get FREE 5GB backup storage for a year making this option even valuable. After FREE time is over, the cost is rather small only 3 cents per GB of storage

Below is the steps on how to backup cPanel/WHM in Amazon S3

Amazon S3 Configuration

  1. Login to your Amazon S3 account or create for a new account if you don’t have one.
  2. Browse to Dashboard → Services → S3
  3. Create a Bucket (Make sure there is no “.” dot in the Bucket name. If you have, you unable to connect to amazon servers due SSL issue and will give timeout error.
  4. Browse to Username → Security Credentials → Access Keys (Access Key ID and Secret Access Key)
  5. Click “Create New Access Key” button.
  6. Download the “Access Key” & keep it secure.

cPanel/WHM Configuration

  1. Login to cPanel/WHM
  2. Browse to Backup → Backup Configuration
  3. Edit Global Settings, Scheduling and Retention, Files, Databases & Configure Backup Directory as per your preference.
  4. In Additional Destinations, Select “Amazon S3™” & Click “Create new destination” button.
  5. Add “Destination Name” and optional “Folder” information in the space.
  6. Key-in “Bucket” name as (3) in Amazon S3 Configuration above.
  7. Key-ion “Access Key ID” & “Secret Access Key” as per (6) in Amazon S3 Configuration above.
  8. Click “Save and Validate Destination” Button.

Install LiteSpeed in cPanel/WHM with Obsolete Owned License

If you have Obsolete Owned LiteSpeed License, installation via cPanel plugins will not work. There will be an error like

[ERROR] You are not authorized to use this binary, please purchase upgrades

If you encounter this error, then you have to manually install authorize old version of LiteSpeed. This is the guides on how to do it.

1. Log in to LiteSpeed Client area and check license update expiry date. In LiteSpeed Release Log Page, find LiteSpeed version that you can use.

2. SSH to your server & download and extract the applicable version (example below for version 4.2.6)

cd /home
wget http://www.litespeedtech.com/packages/4.0/lsws-4.2.6-ent-x86_64-linux.tar.gz
tar zxf lsws-4.2.6-ent-x86_64-linux.tar.gz
cd lsws-4.2.6

3. create a file with name serial.no, edit the file & copy license information into the file and save.

nano serial.no

4. Proceed with LiteSpeed installation

sh install.sh

5. Accept the License Agreement by typing – Yes

6. Specify installation directory – /usr/local/lsws

7. Installer will generate license key & exit.

8. Run the installer again, accept the licence agreement & specify installation directory as of step 4 to 6 above.

9. Enter username – admin

10. Enter your choosen password

11. Enter admin email address

12. Enter “1” for cPanel installation

13. Enter Port Offset “0” for replace Apache

14. Enter “1” to enable PHP suEXEC

15. Installation will start

16. Enter “Y” to enable LiteSpeed start automatically when server start

17. Enter “Y” to start LiteSpeed.

18. Is start failed, login to WHM. Under Plugins  LiteSpeed, Click compile matching LSPHP binary.

19. When LSPHP compilation complete, try to restart Litespeed

20. Is the start failed, click on Version menu & force re-install the same version or older version.

21. LiteSpeed should be running now.