Showing posts with label whm / cpanel. Show all posts
Showing posts with label whm / cpanel. Show all posts

Friday, September 29, 2017

WHM/Cpanel: install on centos 7 (1708)

Recommendation: install whm/cpanel on minimum Centos 7

Install yum util and network tool
# yum install yum-utils net-tools

Disable SeLinux
# vi /etc/selinux/config
...
SELINUX=disabled
...

Set  fully qualified hostname 
# hostname example.[your_domain]

Download whm/cpanel installer script
# wget https://securedownloads.cpanel.net/latest
--2017-09-29 02:02:22--  https://securedownloads.cpanel.net/latest
Resolving securedownloads.cpanel.net (securedownloads.cpanel.net)... 208.74.123.12
Connecting to securedownloads.cpanel.net (securedownloads.cpanel.net)|208.74.123.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26720 (26K)
Saving to: ‘latest’

100%[======================================>] 26,720       125KB/s   in 0.2s

2017-09-29 02:02:23 (125 KB/s) - ‘latest’ saved [26720/26720]

Run whm/cpanel installer
# chmod 744 latest
# ./latest

It may takes some times. Mine, it takes al least 40 minutes.

Continue configure your whm/cpanel via web, for example https://[youripaddress]:2087

Wednesday, December 30, 2015

WHM/Cpanel update and license problems

Update your Centos, from console/terminal run:
# yum update -y
# /scripts/upcp update all
If your WHM/Cpanel asks you to activate your license, and your license not yet expired, run this command
# /usr/local/cpanel/cpkeyclt
To show WHM/Cpanel version via terminal
# cat /usr/local/cpanel/version
11.64.0.33

WHM Backup using WHM Web Console

Home »Backup »Backup Configuration

  1. Global Settings
    1. Backup Status -> Enable
    2. Backup Type -> Compressed (Compressed, Uncompressed, Incremental).
    3. Maximum destination timeout 7200 in seconds (default: 7200)
    4. Maximum restore timeout 21600 in seconds (default: 21600)
  2. Scheduling and Retention
    1. Backup Daily
    2. Backup Weekly
    3. Backup Monthly 1st of the month (default:1st of the month , 15th of the month) Retain 1 Monthly backups default:1.
  3. Files
    1. Backup Accounts select all active user (default:none) 
    2. Backup Suspended Accounts (default:Disable) 
    3. Backup Access Logs (default:Disable) 
    4. Backup Bandwidth Data (default:Enable) 
    5. Use Local DNS (default:Disable)
    6. Backup System Files (default: checked)
  4. Databases
    1. Backup SQL Databases Per Account Only  (default:Per Account Only, Entire MySQL Directory Per Account and Entire MySQL Directory)
  5. Configure Backup Directory 
    1. Default Backup Directory (default: /backup) 
    2. Retain backups in the default backup directory (default: checked) 
    3. Mount Backup Drive as Needed. (default:Disable)
  6. Additional Destinations
Save Configuration




Tuesday, July 7, 2015

How to create a WHM user without an associated domain

To create a user account in WHM that is not associated with a domain:

  1. Log in to the server as the root user via SSH.
  2. Create a user with the system utility with the following command:
    # adduser [username]
  3. Set a password for the user with the following command:
    # passwd [username]
  4. Create an entry in the resellers file with minimal permissions with the following command:
    # echo "[username]:all" >> /var/cpanel/resellers
  5. Log in to WHM as the root user.
  6. Navigate to Home >> Resellers >> Edit Reseller Nameservers and Privileges.
  7. Select username from the list, Click Submit.
  8. Apply the desired permissions to the user, Click Save.

 Note: replace [username] with Linux user id / login
Src: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CreateAccountwithoutdomain
CLOSE INFO