How to install cPanel on your Alibaba instance

  1. Supports operations such as Backup, restore, migrations in a very easy and smooth way.
  2. Intuitive and powerful GUI to control your server with WHM
  3. Offers AutoSSL supporting proxy Subdomains.
  4. Allows you to view SSL in status in cPanel.
  5. Easy integration with PhpMyAdmin to manage your Databases from a web browser
  6. Supports unlimited user accounts, email and FTP accounts
  7. Supports SSL, disk quota, domain redirect, domain alias.
  8. Manage Domains, DNS, subdomains, MySQL, FTP and Email.
  9. Supports Rebranding
  10. Supports API Authentication tokens

Requirements & Prerequisites

  1. A freshly deployed Alibaba Cloud CentOS 7 server instance
  2. Minimum 1GB RAM (2 GB highly recommended)
  3. Minimum Disk Space of 20 GB (but 40GB recommended)
  4. A cPanel license
  5. Perl
  6. Standard hostname (FQDN or Fully Qualified Domain Name)
  7. A non-root user with admin privileges set up on your server
  8. A static IP address of your server (for example 192.160.0.120)

Step by Step guide for cPanel Installation on alibaba instance

If you don’t have an instance deployed on your server, go to this article how to deploy an instance on alibaba cloud.Otherwise, in this guide i will use my freshly setup CentOS 7 server to demonstrate how to install cPanel.

# hostnamectl set-hostname hostpc.example.com
# yum install perl
# yum install curl
# yum install screen wget
# screen
# wget -N http://httpupdate.cPanel.net/latest
# sh latest
  1. In your web browser URL bar, enter your IP address as shown below ( replace for server_ip with your server IP address) and press enter.
    http://server_ip:2087
  2. Now login to cPanel using Root username and password. There are a few more steps to complete installation.
  1. Next, read the End User License Agreement and accept the terms by clicking on “I Agree? And continue to Step 2” button to proceed.
  1. In the Setup Networking section, provide your email address and contact in the fields Server contact Email Address and Server Contact SMS address respectively.
  1. cPanel uses the email address to send important notifications, alerts and other important information. Change the server’s hostname to the required name if not auto filled otherwise leave the rest set to default. You can as well use Google resolvers in the hostname section if you don’t have ISP’s resolvers.
  1. Next, proceed to select the Main Network/Ethernet Device. In this section, the available IP address of the device while be made the IP address of your server. Click “Save & Go to Set 5”.
  1. In this step, you’ll be required to setup your servers static IP address. Note if you have more than one IP address attached to your NIC Card, you may want to select the specific IP address from drop down and Tap “Go to Setup 4”
  1. In the following section, Add the A Entries for hostname and nameservers of your server. Add the nameservers in the empty fields e.g ns1.example.com/ns2.example.com
  1. In addition, you may add an entry for your hostname and name server by selecting the check box as shown below. Click “Save & Go to step 5”
  1. Now, setup different services like Cphulk, Mail & FTP. I recommend you select Pure-FTPD for the FTP configuration. Choose the disabled option if you want to only disable the local FTP server.
  2. In the same section, I recommend you select your Mail server that will be used for all your mailing activities in the future.
  1. Under Configure cPHulk Brute Force protection, enable this setting. cPHulk detects and blocks false password attacks activities and can also block their IP for your server. You can enable or disable the configurations as shown below.
  1. Lastly, you can now enable quotas which helps you to track down the disk space usages. Select “Use file system quotas” and click on “Finish setup wizard” to complete the Installation process.
  1. If you don’t enable Use file system quotas, then you won’t be in position to monitor the amount of disk space used by any website on your hosting.
  2. Once you have installed cPanel on your CentOS server, you cannot remove it. You can only delete it by uninstalling your existing Operating System.
  3. cPanel is not free, it’s a commercial software. You require a license to work, however, there is a 14-day trial which is automatically activated on installation. You can install cPanel using the free version and later purchase the software.
  4. cPanel doesn’t support Ubuntu servers i.e ubuntu 14.04 or 16.04 etc. (at the time of writing this)
  5. Sometimes cPanel installer script is not able to update your license because of resolvers or Firewall. You can do it manually with single line of command below.
# /usr/local/cpanel/cpkeyclt

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com