How to install ProcessWire 3.0.98 on Ubuntu 18.04

To install ProcessWire 3.0.98 on Ubuntu 18.04
ProcessWire is free and open source Content Management System(CMS) and Content Management Framework written in PHP and has an easy-to-use interface and high customization options which enables the users to publish websites easily. It provides a simpler and stronger control over your pages, fields, templates, and markup at any scale.

Prerequisites

To install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc 
php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap 
php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download a Processwire package using the following URL

root@linuxhelp1:~# wget https://github.com/processwire/processwire/archive/master.zip
--2018-05-31 17:33:01--  https://github.com/processwire/processwire/archive/master.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
.
.
HTTP request sent, awaiting response... 200 OK
Length: 12824928 (12M) [application/zip]
Saving to: ‘master.zip’

master.zip              100%[==============================>]  12.23M   370KB/s    in 18s  
   
2018-05-31 17:33:21 (713 KB/s) - ‘master.zip’ saved [12824928/12824928]

Unzip the downloading package as follow

root@linuxhelp1:~# unzip master.zip 
Archive:  master.zip
341342dc5b1c58012ae7cb26cffe2c57cd915552
   creating: processwire-master/
 extracting: processwire-master/.gitattributes  
  inflating: processwire-master/.gitignore  
  inflating: processwire-master/CONTRIBUTING.md  
  inflating: processwire-master/LICENSE.TXT
.
.
extracting: processwire-master/wire/templates-admin/styles/images/logo.gif  
  inflating: processwire-master/wire/templates-admin/styles/images/topnav_a_bg.gif  
  inflating: processwire-master/wire/templates-admin/styles/inputfields.css  
  inflating: processwire-master/wire/templates-admin/styles/install.css  
  inflating: processwire-master/wire/templates-admin/styles/main.css  
  inflating: processwire-master/wire/templates-admin/styles/reset.css  
  inflating: processwire-master/wire/templates-admin/styles/ui.css  
  inflating: processwire-master/wire/templates-admin/topnav.inc

Move the extracted file into the HTML directory

root@linuxhelp1:~# mv processwire-master /var/www/

Navigate to the apache document root directory

root@linuxhelp1:~# cd /var/www/

Change ownership and permission of the as Processwire CMS follows

root@linuxhelp1:/var/www# chown -R www-data.www-data processwire-master
root@linuxhelp1:/var/www# chmod -R 775 processwire-master

Create a new virtual host configuration for accessing the Processwire CMS

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/process.conf
<VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/processwire-master/

<Directory /var/www/processwire-master/>
AllowOverride All
allow from all
</Directory>

</VirtualHost>

Enable site access

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

Disable default access

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

Enable  rewrite module

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

Restart the apache service to make the changes effect  

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://<ipaddress or domain name
Snap 1

You will see the Welcome page of Processwire as shown below
Snap 2

Choose the installation setup
Snap 3

Verify the compatibility for installing Processwire as shown below
Snap 4

Configure the Database setup as follows

Snap 5

Configure the Admin user setup

Snap 6
Snap 7

After the configuration, you will see the following page as shown below
Snap 8

You can log in using the admin user credentials
Snap 9

After the Successful login, you will see the Admin dashboard of Processwire as shown below
Snap 10

You will see the version of Processwire
Snap 11

You will see the Homepage of Processwire as shown below
Snap 12

With this, the method to install Processwire 3.0.98 on Ubuntu 18.04 comes to an end.


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Ubuntu
user image Author :  Elijah