How to install Pluck CMS on Ubuntu 21.04

To Install Pluck CMS on Ubuntu 21.04

Introduction:

Pluck is a CMS (Content Management System) written in PHP, it is open-source and enables you to create unlimited blog pages and albums

Prerequisites:

Apache web server

Maria DB

PHP and its Modules

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: Download the pluck CMS by using the following command

root@linuxhelp:~# wget https://github.com/pluck-cms/pluck/archive/4.7.9-dev1.zip
--2021-11-22 01:48:18--  https://github.com/pluck-cms/pluck/archive/4.7.9-dev1.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/pluck-cms/pluck/zip/4.7.9-dev1 [following]
--2021-11-22 01:48:18--  https://codeload.github.com/pluck-cms/pluck/zip/4.7.9-dev1
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘4.7.9-dev1.zip’

4.7.9-dev1.zip                   [  <=>                                          ]   1.54M  6.00MB/s    in 0.3s    

2021-11-22 01:48:19 (6.00 MB/s) - ‘4.7.9-dev1.zip’ saved [1614971]

Step 3: Extract pluck CMS by using the following command

root@linuxhelp:~# unzip 4.7.9-dev1.zip 
Archive:  4.7.9-dev1.zip
ca6bc74dd0913554e35b3e1a613bfcc23ce34797
   creating: pluck-4.7.9-dev1/
  inflating: pluck-4.7.9-dev1/README.md  
  inflating: pluck-4.7.9-dev1/admin.php  
   creating: pluck-4.7.9-dev1/data/
   creating: pluck-4.7.9-dev1/data/image/
  inflating: pluck-4.7.9-dev1/data/image/AUTHORS  
 extracting: pluck-4.7.9-dev1/data/image/add.png  
 extracting: pluck-4.7.9-dev1/data/image/add_small.png  
  inflating: pluck-4.7.9-dev1/data/image/back.jpg  
  inflating: pluck-4.7.9-dev1/data/image/back_hover.jpg  

Step 4: Move the extracted file to the apache home directory

root@linuxhelp:~# mv pluck-4.7.9-dev1/ /var/www/pluck

Step 5: Changing permissions to the CMS directory

root@linuxhelp:~# chmod -R 755 /var/www/pluck

Step 6: Change Ownership to the CMS directory

root@linuxhelp:~# chown -R www-data. /var/www/pluck

Step 7: Create Virtual Host for the Pluck CMS

root@linuxhelp:~# vi /etc/apache2/sites-available/pluck.conf

<VirtualHost *:80>

ServerName www.linuxhelp1.com
DocumentRoot /var/www/pluck

</VirtualHost>

Step 8: Disable the default Virtual Host file of apache

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

Step 9: Enabling the Virtual Host

root@linuxhelp:~# a2ensite pluck.conf
Enable site pluck.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step 10: Enable the read write module of apache

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

Step 11: Restart the apache web server

root@linuxhelp:~# systemctl restart apache2

Step 12:Make host entry for the local domain

root@linuxhelp:~# vi /etc/hosts
192.168.6.115 www.linuxhelp1.com

Step 13: Open the web address in browser

Step 14: Installing the pluck CMS

Step 15: Creating Credentials

Step 16: Creating Content

Step 17: Dash board of Pluck CMS

By this installation of Pluck CMS on Ubuntu 21.04 has been completed

FAQ
Q
What does the a2ensite command exactly do?
A
It creates a short link for the virtual host file in the sites-enabled directory.
Q
How to disable default Virtual Host in apache?
A
Disable the default Virtual Host in apache by using the "a2dissite 000-default.conf" command.
Q
What is a2enmod rewrite?
A
By this, we can enable the mod_rewrite module for Apache.
Q
What is a virtual host?
A
Virtual hosting is a method for hosting multiple domain names.