How to Install Zikula on Ubuntu 16.04

How to Install Zikula on Ubuntu 16.04

In this tutorial we are going to provide you with step by step instructions on how to install Zikula on an Ubuntu的 16.04 VPS. Zikula is an open-source web application framework written in PHP.

在写这篇教程的时候, the latest stable version of Zikula 是 2.0.1 它要求:

  • PHP 5.5.9 or higher (preferably the latest), with mbstring, JSON, 卷曲, Intl, mysql and GD PHP extensions enabled.
  • MySQL的 5, MariaDB的 5 或更高版本
  • Apache Web服务器 2.0 or higher compiled with mod_rewrite module and AllowOverride set to ‘All’ (please note, the default setting for AllowOverride in Apache 2.3.9 and higher is ‘None’).

This install guide assumes that Apache is already installed and configured on your virtual server.

Let’s start with the installation.

Make sure your server OS packages are fully up-to-date:

apt-get update 
apt-get upgrade

安装所需的软件包:

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

Enable Apache rewrite module if it is not already done so:

a2enmod重写

重新启动Apache服务以使更改生效:

服务重新启动的Apache2

Install 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 have to be readable by the web server, so set a proper ownership:

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> 放弃

Do not forget to replace ‘y0uR-pa5sW0rd’ with a strong password.

创建于Apache的一个新的虚拟主机指令. 例如, create a new Apache configuration file named ‘zikula.conf’ on your 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

然后, add the following lines:

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

Remove the 000-default.conf file:

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

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

服务重新启动的Apache2

Open http://your-domain.com in your favorite web browser and follow the easy instructions on the install screen inserting the necessary information as requested:

Database type: MySQL
Storage Engine: InnoDB
Database Host: localhost
Database Username: zikulauser
Database Password: y0uR-pa5sW0rd   // change this password with your actual password
Database Name: zikuladb

在接下来的页面, create a new Zikula administrator account.

Click ‘Begin Installer’.

这就对了. Zikula has been installed on your server.

Log in to the Zikula administration back-end and start creating new content, install new extensions, add new users and so on…

How to Install Zikula on Ubuntu 16.04

如果你有一个 Zikula VPS Hosting with us, simply ask our expert Linux administrators to install it for you. They’re available 24/7, and will be able to help you solve this issue.

资源

发表评论

本网站使用的Akismet,以减少垃圾邮件. 了解您的意见如何处理数据.

我们使用cookies来给你最好的在线体验. 通过同意你接受使用cookies按照我们的Cookie政策.