How to Install ProcessWire CMS 3.0.123 v On Ubuntu 18.10
Installation Of ProcessWire CMS 3.0.123v On Ubuntu 18.10
Pre-requisites:
LAMP Stack
Ubuntu 18.10
Apache 2.4.34
MariaDB 5.5+ and
PHP 7.2
PHP Modules:
php php-gd php-mbstring php-mcrypt php-mysql php-curl php-simplexml php-zip
Download Link:
composer create-project processwire/processwire
Configure MariaDB For ProcessWire CMS using root password
root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 55
Server version: 10.1.29-MariaDB-6ubuntu2 Ubuntu 18.10
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database wire character set utf8mb4;
Query OK, 1 row affected (0.09 sec)
MariaDB [(none)]> use wire;
Database changed
MariaDB [wire]> create user wireuser@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.11 sec)
MariaDB [wire]> grant all on wire.* to wireuser@localhost;
Query OK, 0 rows affected (0.01 sec)
MariaDB [wire]> flush privileges;
Query OK, 0 rows affected (0.02 sec)
MariaDB [wire]> exit
Bye
Change the directory to Apache’s Document root directory.
root@linuxhelp:~# cd /var/www
Create a directory for ProceessWire CMS
root@linuxhelp:/var/www# mkdir wire
Change the directory to wire to download Process Wire CMS using composer
root@linuxhelp:/var/www# cd wire
Download the Process Wire CMS using the following command.
root@linuxhelp:/var/www/wire# composer create-project processwire/processwire
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing processwire/processwire (3.0.123)
- Installing processwire/processwire (3.0.123): Downloading (100%)
Created project in /var/www/wire/processwire
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
List the content to view the files and folders that has created using composer.
root@linuxhelp:/var/www/wire# ll
total 12
drwxr-xr-x 3 root root 4096 Apr 24 20:15 ./
drwxr-xr-x 4 root root 4096 Apr 24 20:13 ../
drwxr-xr-x 10 root root 4096 Apr 24 20:15 processwire/
Rename the directory to final
root@linuxhelp:/var/www/wire# mv processwire/ final
Change the directory to final
root@linuxhelp:/var/www/wire# cd final/
List the files and folders in the final directory
root@linuxhelp:/var/www/wire/final# ll
total 164
drwxr-xr-x 10 root root 4096 Apr 24 20:15 ./
drwxr-xr-x 3 root root 4096 Apr 24 20:15 ../
-rw-r--r-- 1 root root 537 Dec 21 11:30 composer.json
-rw-r--r-- 1 root root 589 Apr 24 20:15 composer.lock
-rw-r--r-- 1 root root 3571 Dec 21 11:30 CONTRIBUTING.md
-rw-r--r-- 1 root root 52 Dec 21 11:30 .gitattributes
-rw-r--r-- 1 root root 708 Dec 21 11:30 .gitignore
-rw-r--r-- 1 root root 12709 Dec 21 11:30 htaccess.txt
-rw-r--r-- 1 root root 2421 Dec 21 11:30 index.php
-rw-r--r-- 1 root root 53399 Dec 21 11:30 install.php
-rw-r--r-- 1 root root 19125 Dec 21 11:30 LICENSE.TXT
-rw-r--r-- 1 root root 6289 Dec 21 11:30 README.md
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-beginner/
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-blank/
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-classic/
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-default/
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-languages/
drwxr-xr-x 6 root root 4096 Dec 21 11:30 site-regular/
drwxr-xr-x 3 root root 4096 Apr 24 20:15 vendor/
drwxr-xr-x 5 root root 4096 Dec 21 11:30 wire/
Assign the Ownership permissions to the final directory.
root@linuxhelp:/var/www/wire/final# chown -R www-data. ./
Assign writable Permissions to the final directory.
root@linuxhelp:/var/www/wire/final# chmod -R 775 ./
Create a customised Configuration file for Process Wire CMS
root@linuxhelp:/var/www/wire/final# vim /etc/apache2/sites-available/wire.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/wire/final/
<directory /var/www/wire/final/>
allowoverride all
require all granted
</directory>
</virtualhost>
Disable the default access sites to avoid conflicts
root@linuxhelp:/var/www/wire/final# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the Process Wire site
root@linuxhelp:/var/www/wire/final# a2ensite wire.conf
Enabling site wire.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite Module
root@linuxhelp:/var/www/wire/final# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the service of Apache.
root@linuxhelp:/var/www/wire/final# systemctl restart apache2
Open the browser and enter the servername that has set in the configuration file of Processwire CMS
Enroll the admin credentials and click continue.