How to install ProcessWire CMS on Ubuntu 21.04
- 00:40 lsb_release -a
- 00:52 mysql -u root -p
- 01:07 create database process character set utf8mb4;
- 01:32 use process;
- 01:42 create user puser@localhost identified by 'linuxc';
- 02:19 grant all on process.* to puser@localhost;
- 02:48 flush privileges;
- 02:58 exit
- 03:07 mkdir /var/www/process
- 03:20 cd /var/www/process
- 03:37 composer create-project processwire/processwire
- 04:02 mv processwire/ final
- 04:18 chown -R www-data. final/
- 04:31 chmod -R 775 final/
- 04:46 vim /etc/apache2/sites-available/process.conf
- 05:18 a2dissite 000-default.conf
- 05:34 a2ensite process.conf
- 05:47 a2enmod rewrite
- 05:58 systemctl restart apache2
- 06:12 vi /etc/hosts
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
Comments ( 0 )
No comments available