How to install ProcessWire CMS on Ubuntu 21.04

To Install ProcessWire CMS on Ubuntu 21.04

Introduction

CMS stands for the content management system, software that manages digital content. ProcessWire is an open-source content management system written in PHP with a great API.

Prerequisites:

Apache Web server

Maria DB

PHP and its Modules

Composer

Installation Procedure:

Step 1: Check the OS version by using the following command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Step 2: Log in to the Maria DB

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 30
Server version: 10.5.12-MariaDB-0ubuntu0.21.04.1 Ubuntu 21.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Step 3: Create database for processwire CMS

MariaDB [(none)]> create database process character set utf8mb4;
Query OK, 1 row affected (0.017 sec)

Step 4: Select the process database

MariaDB [(none)]> use process;
Database changed

Step 5: Create a user named “puser”

MariaDB [process]> create user puser@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.024 sec)

Step 6: Grant all privileges on process database for the user “puser”

MariaDB [process]> grant all  on process.* to puser@localhost;
Query OK, 0 rows affected (0.003 sec)

Step 7: Flush privileges to make changes effect.

MariaDB [process]> flush privileges;
Query OK, 0 rows affected (0.003 sec)

Step 8: Exit from the Maria DB

MariaDB [process]> exit
Bye

Step 9: Make a directory for ProcessWire CMS

root@linuxhelp:~# mkdir /var/www/process

Step 10: Change directory to the process directory

root@linuxhelp:~# cd /var/www/process/

Step 11: Download ProcessWire CMS by using the composer

root@linuxhelp:/var/www/process# composer create-project processwire/processwire
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "processwire/processwire" project at "./processwire"
Installing processwire/processwire (3.0.184)
  - Downloading processwire/processwire (3.0.184)
  - Installing processwire/processwire (3.0.184): Extracting archive
Created project in /var/www/process/processwire
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files

Step 12: Rename processwire directory to final

root@linuxhelp:/var/www/process# mv processwire/ final

Step 13: Change Ownership to the final directory

root@linuxhelp:/var/www/process# chown -R www-data. final/

Step 14: Change Permisiions to the final directory

root@linuxhelp:/var/www/process# chmod -R 775 final/

Step 15: Create Virtual Host for the ProcessWire CMS

root@linuxhelp:/var/www/process# vim /etc/apache2/sites-available/process.conf


<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/process/final

<directory /var/www/process/final >
allowoverride all
allow from all
</directory>
</virtualhost>

Step 16: Disable the default Virtual Host file of apache

root@linuxhelp:/var/www/process# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step 17: Enable the Virtual Host

root@linuxhelp:/var/www/process# a2ensite process.conf
Enabling site process.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step 18: Enable the read write module of apache

root@linuxhelp:/var/www/process# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Step 19: Restart the apache webserver

root@linuxhelp:/var/www/process# systemctl restart apache2

Step 20: Make host entry for ProcessWire CMS

root@linuxhelp:/var/www/process# vi /etc/hosts
192.168.6.115 www.linuxhelp1.com

Step 21: Ping server name in browser

Step 22: Beginner install with ProcessWire CMS

Step 23: Giving Data Base Credentials

Step 24: Give Time Zone

Step 25: Create Admin Credentials

Step 26: Login in Admin section

Step 27: ProcessWire CMS Dashboard

By this installation of ProcessWire CMS on Ubuntu 21.04 is comes to an end

FAQ
Q
What was the Architecture built in ProcessWire?
A
ProcessWire is built around a page content tree (as opposed to a bucket system).
Q
Why do you use ProcessWire CMS?
A
ProcessWire is largely used for the development of websites, web applications, services.
Q
What is the latest version of ProcessWire CMS?
A
The latest version of ProcessWire CMS is 3.0.165.
Q
In what language is ProcessWire CMS written?
A
The process is written in the PHP programming language.
Q
How to download ProcessWire CMS by the composer?
A
To download the ProcessWire CMS by using the command "composer create-project processwire/processwire