How to install pluck cms using lamp configuration on centos 7.5
Installation of Pluck cms on CentOS 7.5
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.
Installation
Checking centos version
[root@linuxhelp ~]#rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64
configuring LAMP setup
[root@linuxhelp ~]#yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* epel: epel.scopesky.iq
* extras: centos.mirrors.estointernet.in
* remi-php70: fr2.rpmfind.net
* remi-safe: remirepo.reloumirrors.net
* updates: mirrors.123host.vn
Resolving Dependencies
--> Running transaction check
.
.
.
Running transaction test
Transaction test succeeded
Running transaction
Installing : httpd-2.4.6-88.el7.centos.x86_64 1/1
Verifying : httpd-2.4.6-88.el7.centos.x86_64 1/1
Installed:
httpd.x86_64 0:2.4.6-88.el7.centos
Once the above process Is completed start the service
[root@linuxhelp ~]# systemctl start httpd
Enable the apache service
[root@linuxhelp ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Then install mariadb and mariadb-server
[root@linuxhelp ~]# yum install mariadb-server mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* epel: mirror.xeonbd.com
* extras: centos.mirrors.estointernet.in
* remi-php70: mirror.xeonbd.com
* remi-safe: mirror.xeonbd.com
* updates: mirrors.123host.vn
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed
.
.
.
Installing : 1:mariadb-5.5.60-1.el7_5.x86_64 1/2
Installing : 1:mariadb-server-5.5.60-1.el7_5.x86_64 2/2
Verifying : 1:mariadb-server-5.5.60-1.el7_5.x86_64 1/2
Verifying : 1:mariadb-5.5.60-1.el7_5.x86_64 2/2
Installed:
mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5
Complete!
Once the above process Is completed start the service
[root@linuxhelp ~]# systemctl start mariadb
And enable the service
[root@linuxhelp ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
After enabling the service secure the root password for mysql database
[root@linuxhelp ~]#mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorization.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
Once it completed we need to install php 7.0
Now we are going to install php and php modules
[root@linuxhelp ~]# 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
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: ftp.jaist.ac.jp
* extras: centos-hcm.viettelidc.com.vn
* remi-php70: remi.xpg.com.br
* remi-safe: remi.xpg.com.br
* updates: mirrors.123host.vn
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-7.0.33-5.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.0.33-5.el7.remi will be installed
--> Processing Dependency: php-cli(x86-64) = 7.0.33-5.el7.remi for package: php-7.0.33-5.el7.remi.x86_64
---> Package php-common.x86_64 0:7.0.33-5.el7.remi will be installed
---> Package php-json.x86_64 0:7.0.33-5.el7.remi will be installed
.
.
.
Installed:
php.x86_64 0:7.0.33-5.el7.remi php-common.x86_64 0:7.0.33-5.el7.remi php-json.x86_64 0:7.0.33-5.el7.remi
php-mbstring.x86_64 0:7.0.33-5.el7.remi php-mysqlnd.x86_64 0:7.0.33-5.el7.remi php-pdo.x86_64 0:7.0.33-5.el7.remi
php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.0 php-xml.x86_64 0:7.0.33-5.el7.remi
Dependency Installed:
libzip5.x86_64 0:1.5.2-1.el7.remi php-cli.x86_64 0:7.0.33-5.el7.remi
Then restart the apache service
[root@linuxhelp ~]# systemctl restart httpd
Installing Pluck cms
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/releases/download/4.7.9-dev1/pluck.tar.gz
--2019-03-22 00:21:31-- https://github.com/pluck-cms/pluck/releases/download/4.7.9-dev1/pluck.tar.gz
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
.
.
.
100%[==================================================================================================>] 1,353,372 547KB/s in 2.4s
2019-03-22 00:21:36 (547 KB/s) - ‘pluck.tar.gz’ saved [1353372/1353372]P request sent, awaiting response... 302 Found
Once the download is done, you need to extract the package using the following command
[root@linuxhelp ~]# tar -xvf pluck.tar.gz
pluck-4.7.9-dev1/
pluck-4.7.9-dev1/README.md
pluck-4.7.9-dev1/admin.php
pluck-4.7.9-dev1/data/
pluck-4.7.9-dev1/data/image/
pluck-4.7.9-dev1/data/image/AUTHORS
pluck-4.7.9-dev1/data/image/add.png
pluck-4.7.9-dev1/data/image/add_small.png
pluck-4.7.9-dev1/data/image/back.jpg
pluck-4.7.9-dev1/data/image/back_hover.jpg
pluck-4.7.9-dev1/data/image/button_cancel.png
pluck-4.7.9-dev1/data/image/button_document_save.png
pluck-4.7.9-dev1/data/image/button_save.png
Move pluck directory to this location.
[root@linuxhelp ~]# mv pluck-4.7.9-dev1 /var/www/pluck
And in there, you need to provide owner permission and file execution permission.
[root@linuxhelp ~]# chown -R apache:apache /var/www/pluck
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 ~]# vim /etc/httpd/conf.d/pluck.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/pluck
</Virtualhost>
Now Make a Entry in host File a
[root@linuxhelp ~]# vim /etc/hosts
<ip name> <Domain name>
Then we need to restart the apache server
[root@linuxhelp ~]# systemctl restart httpd
Once the above configuration is completed go to the browser
Switch to your browser and type ip or domain name
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.
Enter your password to log into the site.
You will be taken to the dashboard of your website.
With this, the installation of Pluck CMS comes to an end.
create an unlimited amount of pages
create your own blog
create an album to show images or photos to your visitors
include a contact form in your page(s)