How to install Zikula on Ubuntu 16.04

In this article, we are going to show you step by step instructions on installing Zikula on Ubuntu 16.04 VPS… Zikula is an open source web application framework written in PHP.

At the time of this writing, the latest stable version of Zikula is 2.0.1 and requires:

  • PHP 5.5.9 or higher (preferably the latter), with mbstring, JSON, curl, Intl, mysql and GD PHP extension
  • MySQL 5, MariaDB 5 or later
  • Apache web server 2.0 or higher is compiled with mod_rewrite and AllowOverride set to “All” (please note that the default setting for AllowOverride in Apache 2.3.9 and above is not “None”).

This installation guide assumes that Apache is already installed and configured on the virtual server.

Let’s get started with the installation.

Make sure the OS packages on the server are fully up to date:

apt-get update 
apt-get upgrade

Install the required packages:

apt-get install php7.0-curl php7.0-gd php7.0-mbstring php7.0-mysql php7.0-intl

Enable Apache rewrite module if not already done:

a2enmod rewrite

Restart the Apache service for the changes to take effect:

service apache2 restart

Installing Zikula

Download the latest version of Zikula available at https://github.com/zikula/core/releases to the / opt / directory on the server:

cd /opt/
wget https://github.com/zikula/core/releases/download/2.0.1/Zikula_Core-2.0.1.zip
unzip Zikula_Core-2.0.1.zip
mv 2.0 /var/www/html/zikula

All files on the webserver must be readable, so set the correct property:

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

Create a new MySQL database and user:

mysql -u root -p
mysql> SET GLOBAL sql_mode="";
mysql> CREATE DATABASE zikuladb;
mysql> CREATE USER 'zikulauser'@'localhost' IDENTIFIED BY 'y0uR-pa5sW0rd';
mysql> GRANT ALL PRIVILEGES ON zikuladb.* TO 'zikulauser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit

Remember to replace “y0uR-pa5sW0rd” with a strong password.

Create a new Apache virtual host directive. For example, you can create a new Apache configuration file called “zikula.conf” on the virtual server:

touch /etc/apache2/sites-available/zikula.conf
ln -s /etc/apache2/sites-available/zikula.conf /etc/apache2/sites-enabled/zikula.conf
vi /etc/apache2/sites-available/zikula.conf

Then add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/zikula/
ServerName your-domain.ru
ServerAlias www.your-domain.ru
<Directory /var/www/html/zikula/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.ru-error_log
CustomLog /var/log/apache2/your-domain.ru-access_log common
</VirtualHost>

Delete the 000-default.conf file:

rm /etc/apache2/sites-enabled/000-default.conf

Restart the Apache web server for the changes to take effect:

service apache2 restart

Open http://your-domain.ru in your favorite web browser and follow the simple instructions on the installation screen by pasting in the required information as requested:

Database type: MySQL
Storage Engine: InnoDB
Database Host: localhost
Database Username: zikulauser
Database Password: y0uR-pa5sW0rd // измените этот пароль на ваш фактический пароль
Database Name: zikuladb

On the next page, create a new Zikula administrator account.

Click the “Start Installer” button.

All. Zikula is installed on your server.

Login to the Zikula admin panel and start creating new content, installing new extensions, adding new users, and so on …

Sidebar