• Get In Touch
May 24, 2017

How to Install Zikula on Ubuntu 16.04

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

Zikula is a free and open source web application framework that can be used to develop interactive and editable websites easily.

It is written in PHP and uses MySQL, MariaDB and SQL to store it’s data. It is a cross platform application and supports all popular operating systems like, Linux, Windows, FreeBSD and many more. You can easily create simple blog site to a complicated e-commerce application using Zikula.

Zikula is infinitely expandable to add the functionality you need.

Here, we will explain how to install Zikula on Ubuntu 16.04 server.

Requirements

  • A server running Ubuntu 16.04.
  • A normal user with sudo privileges setup on your server.

Update the System

Before installing any packages, it is recommended to update your system with the latest stable version. You can do this with the following command:

sudo apt-get update -y
sudo apt-get upgrade -y

Once your system is up to date, you can proceed to install Apache web server.

Install Apache Web Server

First, you will need to install Apache web server on your system. You can easily install it by running the following command:

sudo apt-get install apache2 -y

Once apache is installed, start the Apache web server and enable it to start on boot with the following command:

sudo systemctl start apache2
sudo systemctl enable apache2

Install PHP

You can install PHP and other required modules with the following command:

sudo apt-get install wget unzip php7.0 php7.0-mysql php7.0-gd php7.0-curl libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-mbstring php7.0-xmlrpc

Once all the packages are installed, you can proceed to install MariaDB server.

Install and Configure MariaDb Server

You will need to install MariaDB server to store data. You can install it with the following command:

sudo apt-get install mariadb-server -y

Start MariaDB and enable it to automatically start at boot time.

sudo systemctl start mysql
sudo systemctl enable mysql

By default, MariaDB is not secured, so you will need to secure it first. You can secure it by running the mysql_secure_installation script.

sudo mysql_secure_installation

Answer all the questions as shown below:

Set root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

Once MariaDB is secured, log in to the MySQL shell and create a database for zikula:

mysql -u root -p

Enter your root password when prompted, then create a database for zikula. It is recommended to set secure password:

MariaDB [(none)]>CREATE DATABASE zikuladb;


Query OK, 1 row affected (0.00 sec)

Next, create a username and password for zikula with the following command:

MariaDB [(none)]>CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';

Query OK, 1 row affected (0.00 sec)

Next, grant privileges to the zikula database with the following command:

MariaDB [(none)]>GRANT ALL PRIVILEGES ON zikuladb.* TO 'user'@'localhost';

Query OK, 1 row affected (0.00 sec)

Next, you will need to run the FLUSH PRIVILEGES command so that the privileges table will be reloaded by MariaDB and we can use new credential:

MariaDB [(none)]>FLUSH PRIVILEGES;

Query OK, 1 row affected (0.00 sec)

Next, exit from the MariaDB console with the following command:

MariaDB [(none)]>\q

Once you are done, you can proceed to the next step.

Install Zikula

You can download the latest stable version of the zikula from their official website.

Once the download is completed extract the downloaded file with the following command:

unzip Zikula_Core-1.4.6.build119.zip

Next move the extracted directory to the apache web root directory:

sudo mv Zikula_Core-1.4.6.build119 /var/www/html/zikula

Next, you will need to change permissions of the zikula folder:

sudo chown -R www-data:www-data /var/www/html/zikula

Configure Apache Web Server for Zikula

You will need to create a virtual host file for zikula. You can do this by creating snipeit.conf file inside /etc/apache2/sites-available/ directory:

`sudo nano /etc/apache2/sites-available/zikula.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot "/var/www/html/zikula/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
<Directory "/var/www/html/zikula/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/zikula-error_log
CustomLog /var/log/apache2/zikula-access_log common
</VirtualHost>

Save and close the file when you are finished, then enable the site with the following command:

sudo a2ensite zikula.conf

Next, enable the rewrite module with the following command:

sudo a2enmod rewrite

Finaly, restart Apache web server so that the changes take place:

sudo systemctl restart apache2

Once you are finished, you can proceed to access zikula web installation wizard.

Access Zikula

Before accessing the Zikula Web Interface, you will need to allow HTTP service through UFW firewall.

By default UFW is disabled on your system, so you need to enable it first. You can enable it with the following command:

sudo ufw enable

Once UFW firewall is enabled, you can allow HTTP service by running the following command:

sudo ufw allow http

You can now check the status of UFW firewall by running the following command:

sudo ufw status

Next, Open your web browser and type the URL http://yourdomain.com, you should see the following page:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/642903275.png” alt=”” />

Here, click on Install Zikula button, you should see the following page:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/1875515247.png” alt=”” />

Here, provide database information like, database name, username and password then click on Next button, you should see the following page:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/719606634.png” alt=”” />

Here, provide your administrator user account details and click on the Next button, you should see the following page:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/743083764.png” alt=”” />

Here, click on Begin Installer button to start installation, once the installation is completed you should see the following page:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/1429907686.png” alt=”” />

Now, click on Finish button to complete the installation, you should see the Zikula administration panel as below:

HP_NO_IMG/data/uploads/users/f36d03b4-5bf0-4986-8e72-2e14d73d9b4d/863719775.png” alt=”” />

Conclusion

Congratulations! You have successfully installed Zikula on Ubuntu 16.04 server. You can now easily create your own website using Zikula.
Feel free to comments me if you have any question.

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

Share this Article!

Related Posts

Node.js Authentication – A Complete Guide with Passport and JWT

Node.js Authentication – A Complete Guide with Passport and JWT

Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will be avoided or at least […]

Node.js and MongoDB: How to Connect MongoDB With Node

Node.js and MongoDB: How to Connect MongoDB With Node

MongoDB is a document-oriented NoSQL database, which was born in 2007 in California as a service to be used within a larger project, but which soon became an independent and open-source product. It stores documents in JSON, a format based on JavaScript and simpler than XML, but still with good expressiveness. It is the dominant […]

Using MySQL with Node.js: A Complete Tutorial

Using MySQL with Node.js: A Complete Tutorial

Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you need to scale an application, […]

Node.Js Vs Django: Which Is the Best for Your Project

Node.Js Vs Django: Which Is the Best for Your Project

Django and NodeJs are two powerful technologies for web development, both have great functionality, versatile applications, and a great user interface. Both are open source and can be used for free. But which one fits your project best? NodeJs is based on JavaScript, while Django is written in Python. These are two equally popular technologies […]

Nodejs Vs PHP:  Which Works Best?

Nodejs Vs PHP: Which Works Best?

Before getting into the “battle” between Node.js and PHP we need to understand why the issue is still ongoing. It all started with the increased demand for smartphone applications, their success forcing developers to adapt to new back-end technologies that could handle a multitude of simultaneous requests. JavaScript has always been identified as a client-side […]