How to install and configure Processwire CMS on Fedora 34
- 00:42 cat /etc/www/process
- 00:57 cd /var/www
- 01:08 mkdir process
- 01:16 cd process/
- 01:24 composer create-project processwire/processwire
- 02:21 ll
- 02:31 mv processwire/ final
- 02:44 cd final/
- 02:53 ll
- 03:07 vim /etc/httpd/conf.d/process.conf
- 03:30 chown -R apache:apache . ./
- 03:52 chmod -R 775 ./
- 04:09 mysql -u root -p
- 04:32 create database process character set utf8mb4;
- 04:51 use process;
- 04:52 create user puser@localhost identified by 'Linuxc#4';
- 05:12 grant all privileges on process.* to 'puser'@localhost;
- 05:31 flush privileges;
- 05:46 exit
- 05:55 vim /etc/hosts
- 06:28 systemctl restart httpd
To Install And Configure ProcessWire CMS On Fedora 34.
Introduction:
ProcessWire is an open-source PHP-based content management system, web application framework, and content management framework. In addition to offering flexibility and ease of use, it enables you to have strong control over your pages, fields, templates, and markup at any scale.
Installation Procedure:
Step 1: Check the OS version by using the below command.
[root@linuxhelp ~]# cat /etc/os-release
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
Step 2: Change the document root directory to Apache’s Document root.
[root@linuxhelp ~]# cd /var/www
Step 3: Create a directory for process CMS by using the below command.
[root@linuxhelp www]# mkdir process
Step 4: Create a directory for process CMS and change the directory to process by using the below command.
[root@linuxhelp www]# cd process
Step 5: Download the ProcessWire CMS using composer by using the below command.
[root@linuxhelp process]# composer create-project processwire/processwire
bash: composer: command not found...
Install package 'composer' to provide command 'composer'? [N/y] y
* Waiting in queue...
The following packages have to be installed:
composer-2.1.12-1.fc34.remi.noarch Dependency Manager for PHP
libicu69-69.1-1.fc34.remi.x86_64 International Components for Unicode - libraries
php-PsrLog-1.1.4-1.fc34.remi.noarch Common interface for logging libraries
php-composer-ca-bundle-1.3.1-1.fc34.remi.noarch Lets you find a path to the system CA
php-composer-metadata-minifier-1.0.0-1.fc34.remi.noarch Library that handles metadata minification and expansion
php-composer-semver3-3.2.6-1.fc34.remi.noarch Semver library version 3
php-composer-spdx-licenses-1.5.6-1.fc34.remi.noarch SPDX licenses list and validation library
php-composer-xdebug-handler2-2.0.2-1.fc34.remi.noarch Restarts a process without Xdebug, version 2
php-intl-7.4.26-1.fc34.remi.x86_64 Internationalization extension for PHP applications
php-jsonlint-1.8.3-2.fc34.noarch JSON Lint for PHP
php-justinrainbow-json-schema5-5.2.11-1.fc34.remi.noarch A library to validate a json schema
php-psr-cache-1.0.1-11.fc34.noarch PSR Cache: Common interface for caching libraries
php-psr-container-1.1.2-1.fc34.remi.noarch Common Container Interface
php-psr-event-dispatcher-1.0.0-5.fc34.noarch Standard interfaces for event handling
php-react-promise-2.8.0-3.fc34.noarch A lightweight implementation of CommonJS Promises/A for PHP
php-seld-phar-utils-1.1.2-1.fc34.remi.noarch PHAR file format utilities
php-symfony-contracts-1.1.10-2.fc34.noarch A set of abstractions extracted out of the Symfony
php-symfony-polyfill-1.23.1-1.fc34.remi.noarch Symfony polyfills backporting features to lower PHP versions
Proceed with changes? [N/y] y
* Waiting in queue...
* Waiting for authentication...
* Waiting in queue...
* Downloading packages...
* Requesting data...
* Testing changes...
* Installing packages...
Do not run Composer as root/super user! See https://getcomposer.org/root for details
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 6: List the contents to view the downloaded file of ProcessWire CMS by using the below command.
[root@linuxhelp process]# ll
total 0
drwxr-xr-x 1 root root 400 Dec 9 12:21 processwire
Step 7: Rename the newly created directory to final by using the below command.
[root@linuxhelp process]# mv processwire/ final
Step 8: Change the directory to final by using the below command.
[root@linuxhelp process]# cd final/
Step 9: List the contents to view the extracted files by using the below command.
[root@linuxhelp final]# ll
total 136
-rw-r--r-- 1 root root 537 Aug 27 23:18 composer.json
-rw-r--r-- 1 root root 624 Dec 9 12:21 composer.lock
-rw-r--r-- 1 root root 3571 Aug 27 23:18 CONTRIBUTING.md
-rw-r--r-- 1 root root 24623 Aug 27 23:18 htaccess.txt
-rw-r--r-- 1 root root 2471 Aug 27 23:18 index.php
-rw-r--r-- 1 root root 60967 Aug 27 23:18 install.php
-rw-r--r-- 1 root root 19125 Aug 27 23:18 LICENSE.TXT
-rw-r--r-- 1 root root 8664 Aug 27 23:18 README.md
drwxr-xr-x 1 root root 78 Aug 27 23:18 site-beginner
drwxr-xr-x 1 root root 78 Aug 27 23:18 site-blank
drwxr-xr-x 1 root root 78 Aug 27 23:18 site-classic
drwxr-xr-x 1 root root 160 Aug 27 23:18 site-default
drwxr-xr-x 1 root root 78 Aug 27 23:18 site-languages
drwxr-xr-x 1 root root 96 Aug 27 23:18 site-regular
drwxr-xr-x 1 root root 40 Dec 9 12:21 vendor
drwxr-xr-x 1 root root 150 Aug 27 23:18 wire
Step 10: Create a customised configuration file for ProcessWire CMS by using the below command.
[root@linuxhelp final]# vim /etc/httpd/conf.d/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 11: Assign the ownership permissions to the final directory by using the below command.
[root@linuxhelp final]# chown -R apache:apache . ./
Step 12: Assign the writable permissions to the final directory by using the below command.
[root@linuxhelp final]# chmod -R 775 ./
Step 13: Configure MariaDB for ProcessWire CMS using the root password.
[root@linuxhelp final]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database process character set utf8mb4;
Query OK, 1 row affected (0.03 sec)
mysql> use process;
Database changed
mysql> create user puser@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.05 sec)
mysql> grant all privileges on process.* to 'puser'@localhost;
Query OK, 0 rows affected (0.03 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
Step 14: Open the hosts entry file and enter your IP and domain name by using the below command.
[root@linuxhelp final]# vim /etc/hosts
127.0.0.1 www.linuxhelp1.com
Step 15: Restart the service of Apache by using the below command.
[root@linuxhelp final]# systemctl restart httpd
Step 16: You can now switch over to the browser and enter your IP on the URL search bar. The installation page appears on your screen. Click on Get Started as shown in the below images.

Step 17: Next page shows the site-installation and compatibility check, check it and click on Continue to Next Site as shown in the below images.

Step 18: Next page lets you to provide your database credentials and create admin credentials as shown in the below images.

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install and configure ProcessWire CMS on Fedora 34. Your feedback is much welcome.
Comments ( 0 )
No comments available