Now Reading
How to Install ProcessWire on Ubuntu

How to Install ProcessWire on Ubuntu

To install ProcessWire in Ubuntu

Processwire is an open source content management system and framework based on PHP. ProcessWire offers simple and strong on your pages, fields, templates and markup at any scale. This article sheds light on the installation of ProcessWire on Ubuntu.

To Install ProcessWire

It is essential to configure the LAMP setup before installing ProcessWire. After it, open MariaDB console and create a database for ProcessWire and set the privileges.

root@linuxhelp:~# mysql
MariaDB [(none)]> create database wire_db;
Query OK, 1 row affected (0.07 sec)

MariaDB [(no ne)]> grant all on wire_db.* to 'wire'@'localhost' identified by '12345';
Query OK, 0 rows affected (0.77 sec)

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

MariaDB [(none)]> \q;

After creating a database, enable Apache rewrite module by triggering the following command.

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
 service apache2 restart

Now restart the Apache service.

root@linuxhelp:~# service apache2 restart

Once Apache service is restarted, download the latest version from GitHub.

root@linuxhelp:~# cd /opt 
root@linuxhelp:~#  wget https://github.com/ryancramerdesign/ProcessWire/archive/master.zip
--2016-11-01 14:23:40--  https://github.com/ryancramerdesign/ProcessWire/archive/master.zip
Resolving github.com (github.com)...,
Connecting to github.com (github.com)||:443... connected.
2016-11-01 14:27:01 (50.3 KB/s) - ‘master.zip’ saved [10032027]

Run the following command to extract the downloaded package.

root@linuxhelp:/opt# unzip master.zip
Archive:  master.zip
   creating: ProcessWire-master/
  inflating: ProcessWire-master/.gitignore  
  inflating: ProcessWire-master/COPYRIGHT.txt  
  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

Once the package is extracted, use the following command to move the ProcessWire package into web-root directory.

root@linuxhelp:/opt# ls
master.zip  ProcessWire-master
root@linuxhelp:/opt# mv ProcessWire-master/ /var/www/html/processwire

Now run the following command to change the ownership for processwire directory

root@linuxhelp:/opt# chown www-data:www-data -R /var/www/html/processwire/

Once the ownership is changed, create new virtualhost file and link it.

root@linuxhelp:/opt# touch /etc/apache2/sites-available/processwire.conf
root@linuxhelp:/opt# ln -s /etc/apache2/sites-available/processwire.conf /etc/apache2/sites-enabled/processwire.conf 

Now edit the configuration file as follows.

root@linuxhelp:/opt# vim /etc/apache2/sites-available/processwire.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/processwire/
ServerName linuxhelp1.com
ServerAlias www.linuxhelp1.com
<Directory /var/www/html/processwire/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/apache2/linuxhelp1.com-error_log
CustomLog /var/log/apache2/linuxhelp1.com-access_log common

Once the configuration is done, restart the Apache service as follows.

root@linuxhelp:~# service apache2 restart

After restarting Apache, open the browser and enter the processwire virtualhost domain to access ProcessWire.

Select the installation profile and click next.

Click continue to nextstep.

Enter the Database details and Time zone.

Configure the login credentials.

Click loginadmin to enter processwire

Now enter the login credentials to access ProcessWire.

The ProcesWire is configured and installed successfully as below.

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.

Leave a Response