How to install cpanel on Ubuntu Server 12.04?

First login to the ssh shell, and remove some webserver packages:

dpkg -l *apache* *mysql* *php* | grep ^ii | awk '{ print $2}' | xargs sudo apt-get -y purge --auto-remove

You also need to run

apt-get update

once

Now, download the latest zpanel from the site:

# wget https://github.com/bobsta63/zpanelx/releases/download/10.1.0/installer-10-1-0-ubuntu-64.sh.x

Run the installer:

chmod +x ./installer-10-1-0-ubuntu-64.sh.x 
./installer-10-1-0-ubuntu-64.sh.x
##############################################################
# Welcome to the Official ZPanelX Installer for Ubuntu 12.04 #
#                                                            #
# Please make sure your VPS provider hasn't pre-installed    #
# any packages required by ZPanelX.                          #
#                                                            #
# If you are installing on a physical machine where the OS   #
# has been installed by yourself please make sure you only   #
# installed Ubuntu and no extra packages.                    #
#                                                            #
# If you selected additional options during the Ubuntu       #
# install please consider reinstalling with no               #
# additional options.                                        #
#                                                            #
# Help for this installation script can be obtained on the   #
# official ZPanelCP forums (http://forums.zpanelcp.com)      #
#                                                            #
# All bugs should be reported to http://bugs.zpanelcp.com    #
# Licensed Under the GPL which can be found here:            #
# (http://www.gnu.org/licenses/gpl.html)                     #
#                                                            #
# Owner : Kevin Andrews ([email protected])                   #
# Current maintainer : Kevin Andrews ([email protected])      #
# Version 3.0.0                                              #
#                                                            #
##############################################################
To contine please agree to the GPL license (y/n/q)? 

After installation, login to your zpanel panel at your FQDN/IP:

http://5.3.5.6/

Configuring Zpanel:
Create a package first:
Reseller>Package manager.
Then, create a Client:
Manage Clients>Create

Now, logout as zadmin, login as the new client.
Create a domain.

The domain’s files will be located at:
/var/zpanel/hostdata/joel/public_html/domainname/


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.