Posted on

HOW-TO: Installing ZPanel on the Cubieboard2 ARM Dedicated Server

If you are looking to install a web hosting control panel on your Cubieboard2, or perhaps a RaspberryPi or other ARM based server, ZPanel is one of the few open source options currently available. These commands were run on a freshly installed Lubuntu 12.10 for ARM build. I’m not sure if they will work on the Fedora 19 ARM build, but if someone verifies functionality, let me know. Also, take note that I am not configuring a mail server in this tutorial, just Apache, PHP, MySQL, and ZPanel.

First, we need to get the server ready, before we can actually install ZPanel. We’ll start with getting tofrodos and proFTP server installed. Open up a Terminal and run:

sudo su
apt-get install tofrodos
apt-get install proftpd
apt-get update
apt-get upgrade

Next, we’ll install Apache:

apt-get install apache2
service apache2 stop

Apache will need a hostname, so modify this file and define the fully qualified host name of your server:

cd /etc
nano hostname

Now we will need to define the IP Addresses for Apache to use. Modify the file to look like this, of course replacing ‘your-ip-address’ with your actual IP and ‘your-hostname-here’ with the hostname you defined in the previous step:

nano hosts localhost
your-ip-address localhost
your-ip-address your-hostname-here

Finally, we need to create a file called servername.conf and place your hostname in it as well, after the ServerName directive. Have it look like this:

cd /etc/apache2/conf.d
nano servername.conf
ServerName your-hostname-here

Now, its time to install PHP, MySQL, and phpMyAdmin:

apt-get install php5 libapache2-mod-php5 php5-intl php5-mcrypt php5-curl php5-gd php5-sqlite
service apache2 stop
apt-get install mysql-server mysql-client php5-mysql # you'll need to define a password for the MySQL root user
service apache2 stop
apt-get install php-pear php5-dev apache2-prefork-dev build-essential make && pecl install apc # you can choose default settings
service apache2 stop
apt-get install nmap
apt-get install zenmap
apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin # you'll be asked for the MySQL root user credentials once again
cd /var/www
ln -s /usr/share/phpmyadmin

Let’s configure PHP to use make use of apc and MySQL:

service apache2 stop
nano /etc/php5/apache2/php.ini # scroll down to the "Dynamic Extension" section, and add two lines. On the first, place '' and on the second place the text '' (without the quote marks on either).

Before proceeding with the installation of ZPanel, let’s reboot just to be safe.

shutdown -r now

Once the server comes back up, we can make use of Xengulai’s ZPanel install script:

sudo su
chmod +x

The install script will configure all of the services and install ZPanel on the server. Please note, this is not my script, all credit goes to Xengulai. Per his instructions, we need to reboot once again upon completion:

shutdown -r now

If all goes well, you should be able to access ZPanel in a browser at http://localhost/zpanel
For additional help, check out the ZPanel forums at