How to install zPanel on CentOS 6.6

If you have a VPS or dedicated server and are looking for a free web hosting control panel, then ZPanel probably the best choice for you. Not only it is a free, complete, and open-source web hosting system, its web interface is also responsive making it easy to manage our hosting from any mobile devices, thanks to Twitter Bootstrap CSS Framework for making the responsive CSS framework.

Installing zPanel on Centos is easy. This post guides you how to install zPanel 10.1.1 on CentOS 6.6.

First of all download the installation script:

wget https://raw.github.com/zpanel/installers/master/install/CentOS-6_4/10_1_1.sh

As root, make the script executable and then run it!

[root@centos ~]# chmod +x 10_1_1.sh 
[root@centos ~]# ./10_1_1.sh 
package php is not installed
package httpd is not installed
package mysql is not installed
package bind is not installed
postfix-2.6.6-6.el6_5.x86_64
package dovecot is not installed
Detected : CentOs  6.6  64
Ok.
##############################################################
# Welcome to the Official ZPanelX Installer for CentOS 6.4   #
#                                                            #
# 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 CentOS with no extra packages.                   #
#                                                            #
# If you selected additional options during the CentOS       #
# install please consider reinstalling without them.         #
#                                                            #
##############################################################
Would you like to continue (y/n)? y

Type ‘y’ to continue.

Find your timezone from : http://php.net/manual/en/timezones.php e.g Europe/London
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
 1) Africa
 2) Americas
 3) Antarctica
 4) Arctic Ocean
 5) Asia
 6) Atlantic Ocean
 7) Australia
 8) Europe
 9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#? 5 

Please select a country.
 1) Afghanistan		  18) Israel		    35) Palestine
 2) Armenia		  19) Japan		    36) Philippines
 3) Azerbaijan		  20) Jordan		    37) Qatar
 4) Bahrain		  21) Kazakhstan	    38) Russia
 5) Bangladesh		  22) Korea (North)	    39) Saudi Arabia
 6) Bhutan		  23) Korea (South)	    40) Singapore
 7) Brunei		  24) Kuwait		    41) Sri Lanka
 8) Cambodia		  25) Kyrgyzstan	    42) Syria
 9) China		  26) Laos		    43) Taiwan
10) Cyprus		  27) Lebanon		    44) Tajikistan
11) East Timor		  28) Macau		    45) Thailand
12) Georgia		  29) Malaysia		    46) Turkmenistan
13) Hong Kong		  30) Mongolia		    47) United Arab Emirates
14) India		  31) Myanmar (Burma)	    48) Uzbekistan
15) Indonesia		  32) Nepal		    49) Vietnam
16) Iran		  33) Oman		    50) Yemen
17) Iraq		  34) Pakistan
#? 15

Please select one of the following time zone regions.
1) Java & Sumatra
2) west & central Borneo
3) east & south Borneo, Sulawesi (Celebes), Bali, Nusa Tengarra, west Timor
4) west New Guinea (Irian Jaya) & Malukus (Moluccas)
#? 1

The following information has been given:

	Indonesia
	Java & Sumatra

Therefore TZ='Asia/Jakarta' will be used.
Local time is now:	Mon Dec  8 18:19:17 WIB 2014.
Universal Time is now:	Mon Dec  8 11:19:17 UTC 2014.
Is the above information OK?
1) Yes
2) No
#? 1

Since I live in Jakarta, Indonesia, the timezone is set to Asia/Jakarta. Change it to your timezone.

You can make this change permanent for yourself by appending the line
	TZ='Asia/Jakarta'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Jakarta
Enter the FQDN you will use to access ZPanel on your server.
- It MUST be a sub-domain of you main domain, it MUST NOT be your main domain only. Example: panel.yourdomain.com
- Remember that the sub-domain ('panel' in the example) MUST be setup in your DNS nameserver.
FQDN for zpanel: zpanel.myserver.id
Enter the public (external) server IP: 192.168.10.184
ZPanel is now ready to install, do you wish to continue (y/n)

You need to set the FQDN and IP address for the ZPanel. Later to access the zPanel you can use either via zpanel’s fqdn name or the IP address.
The script will download the dependency packages and the zPanel software itself. It may take long time depending on your internet connection and server specification.

If everything installed successfully, the script will tell you the zPanel admin account and password to manage your hosting.

##############################################################
# Congratulations ZpanelX has now been installed on your     #
# server. Please review the log file left in /root/ for      #
# any errors encountered during installation.                #
#                                                            #
# Save the following information somewhere safe:             #
# MySQL Root Password    : EAVJg5yKanxxxxxx		     #
# MySQL Postfix Password : tc6HY72a6KCXXXXX		     #
# ZPanelX Username       : zadmin                            #
# ZPanelX Password       : 1zifqPu8E8mxxxxx		     #
#                                                            #
# ZPanelX Web login can be accessed using your server IP     #
# inside your web browser.                                   #
#                                                            #
##############################################################

Restart your server now to complete the install (y/n)? y

You need to restart the server to complete the installation. Once it is restarted, use your favorite browser to access the zPanel.

ZPanel Login Page

Use the ‘ZPanelX Username’ and ‘ZPanelX Password’ to login. If granted, you will be redirected to ZPanel Admin page and are ready to manage your hostings.