How to install Pluck CMS on CentOS 7

To install Pluck CMS on CentOS 7

Pluck, also known as Pluck CMS, is an open source content management system, written in the PHP scripting language. It allows for web page creation for users with little or no programming experience, and, unlike most content management systems, does not use a database to store its data. Pluck also includes a module system, which allows developers to integrate custom functionality into the system.


Requirements
Apache
Php7

Install php 7 by
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

yum-config-manager --enable remi-php70

yum install php php-openssl php-mysql php-mbstring php-dom php-json php-session php-ctype php-tokenizer php-simplexml php-pcre php-zip php-pdo php-curl php-iconv php-xml

Installing Pluck

Download the latest stable version of Pluck CMS. You shall use the wget command along with the download link as follows.

[root@linuxhelp ~]# wget https://github.com/pluck-cms/pluck/archive/master.zip
--2017-11-08 10:20:35--  https://github.com/pluck-cms/pluck/archive/master.zip
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/pluck-cms/pluck/zip/master [following]
--2017-11-08 10:20:36--  https://codeload.github.com/pluck-cms/pluck/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ master.zip’ 

    [               < =>                      ] 1,789,615    427KB/s   in 4.1s   

2017-11-08 10:20:42 (427 KB/s) - ‘ master.zip’  saved [1789615]

Once the download is done, you need to extract the package in Apache document root. Run the following command for the same purpose.

[root@linuxhelp ~]# unzip master.zip -d /var/www/html/
Archive:  master.zip
6fbb5a3c1a87e5c265a9f5e17198187928db5a31
   creating: /var/www/html/pluck-master/
  inflating: /var/www/html/pluck-master/README.md  
  inflating: /var/www/html/pluck-master/admin.php  
   creating: /var/www/html/pluck-master/data/
   creating: /var/www/html/pluck-master/data/image/
  inflating: /var/www/html/pluck-master/data/image/AUTHORS  
 extracting: /var/www/html/pluck-master/data/image/add.png  
 extracting: /var/www/html/pluck-master/data/image/add_small.png  
.
.
.
.
creating: /var/www/html/pluck-master/images/
 extracting: /var/www/html/pluck-master/images/.images  
  inflating: /var/www/html/pluck-master/index.php  
  inflating: /var/www/html/pluck-master/install.php  
  inflating: /var/www/html/pluck-master/login.php  
  inflating: /var/www/html/pluck-master/requirements.php  
  inflating: /var/www/html/pluck-master/robots.txt  

Later, you should move to your Apache document root.

[root@linuxhelp ~]# cd /var/www/html/
[root@linuxhelp html]# ls -l
total 4
drwxr-xr-x 6 root root 4096 Jun  1 16:38 pluck-master

And in there, you need to provide appropriate owner permission and file execution permission.

[root@linuxhelp html]# chown -R apache:apache /var/www/html/
[root@linuxhelp html]# chmod -R 775 /var/www/html/

After that, you should configure your Apache VirtualHost, and for that you need to open a .conf file for Pluck CMS. Use the following command to open it.

[root@linuxhelp html]# vim /etc/httpd/conf.d/pluck.conf

Once the .conf file is opened, add the following lines into it.

< VirtualHost *:80> 
DocumentRoot " /var/www/html" 
ServerName www.linuxhelp1.com
< Directory " /var/www/html/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Later, make sure you restart your Apache service with the help of the following command.

[root@linuxhelp html]# systemctl restart httpd

After that, make sure you also configure your Firewall. You can run the following commands for the firewall configuration.

[root@linuxhelp html]# firewall-cmd --add-port=80/tcp
success
[root@linuxhelp html]# firewall-cmd --add-port=443/tcp
success
[root@linuxhelp html]# firewall-cmd --reload
Success

Switch to your browser and type http://yourdomain/pluck-master.

In the Step 1 of the installation, you should check if all the files displayed are writable. Proceed to the next step once you are done.

In the Step 2 of the installation, you should enter all the general information and click save.

In this step, you can enter the content for your web page.

You can take a look at your website now.

Enter your password to log into the site.

You will be taken to the dashboard of your website.

You can view the website.


With this, the installation of Pluck CMS comes to an end.

FAQ
Q
Shall I login as someother user for DB?
A
If you have the user with cull permission you can make use of .
Q
I have already PHP installed latest version shall I processd?
A
Yes. You can proceed but make sure you have installed all the required dependencies
Q
Shall I use the separate package installation method for LAMP setup?
A
Yes you can choose any method as per your preference
Q
Is the Stack installation is same as single exection of lamp setup?
A
Yes Both are almost similar but it you want to customize go for manual installation
Q
Why I can able to install using "apt-get install lamp-server" .right?
A
yes you can install it . But You should add " ^ " symbol at the end