Pagekit is modern, intuitive, modular, and flexible open source (MIT license) CMS built with Symfony components and Vue.js. It gives you the tools to create beautiful websites. It has a rich theme and plugin ecosystem.

In this tutorial, we will walk you through the Pagekit CMS installation process on a CentOS 7 operating system by using NGINXas a web server, MariaDB as a database server, and optionally you can secure transport layer by using acme.sh client and Let's Encrypt certificate authority to add SSL support.

Requirements

To install Pagekit, make sure your server meets the following requirements:

Optional PHP extensions: cURL, iconv and XML Parser, as well as APC or XCache for caching.

Prerequisites

A system running CentOS 7.

A non-root user with sudo privileges.

Initial steps

Check your CentOS version:

cat /etc/centos-release# CentOS Linux release 7.6.1810 (Core)

Set up the timezone:

timedatectl list-timezonessudo timedatectl set-timezone 'Region/City'

Update your operating system packages (software). This is an important first step because it ensures you have the latest updates and security fixes for your operating system's default software packages:

sudo yum update -y

Install some essential packages that are necessary for basic administration of the CentOS operating system:

We can move on to the next step, which is the database installation and setup.

Step 2 - Install MariaDB and create a database for Pagekit

Pagekit CMS supports MySQL, MariaDB and SQLite databases. In this tutorial, we will use MariaDB as the database server. If you want to install original MySQL you can add and use official MySQL repository maintained by Oracle.

Securing your website with HTTPS is not necessary, but it is a good practice to secure your site traffic. In order to obtain an SSL certificate from Let's Encrypt we will use Acme.sh client. Acme.sh is a pure UNIX shell software for obtaining SSL certificates from Let's Encrypt with zero dependencies.