How to Install PivotX CMS on CentOS 7.6

To Install PivotX Cms On CentOS 7.6

Requirements for Pivotx:

Apache

Mariadb

Php and its modules

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt

Installation procedure

Check the Centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database pivotx;
Query OK, 1 row affected (0.07 sec)

MariaDB [(none)]> create user 'pivotxuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.09 sec)

MariaDB [(none)]> grant all privileges on pivotx.* to 'pivotxuser'@localhost;
Query OK, 0 rows affected (0.00 sec)

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

MariaDB [(none)]> Ctrl-C -- exit!
Aborted

Once the database configuration is done, download the Pivotx cms Installation package by using the wget command.

[root@linuxhelp ~]# wget https://sourceforge.net/projects/pivot-weblog/files/latest/download
--2019-06-13 05:29:37--  https://sourceforge.net/projects/pivot-weblog/files/latest/download
Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/pivot-weblog/PivotX/pivotx_2.3.11.zip?r=&ts=1560383985&use_mirror=excellmedia [following]
--2019-06-13 05:29:38--  https://downloads.sourceforge.net/project/pivot-weblog/PivotX/pivotx_2.3.11.zip?r=&ts=1560383985&use_mirror=excellmedia
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/pivot-weblog/PivotX/pivotx_2.3.11.zip [following]
--2019-06-13 05:29:39--  https://excellmedia.dl.sourceforge.net/project/pivot-weblog/PivotX/pivotx_2.3.11.zip
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3228558 (3.1M) [application/octet-stream]
Saving to: ‘download’

100%[======================================================================>] 3,228,558   1.11MB/s   in 2.8s   

2019-06-13 05:29:42 (1.11 MB/s) - ‘download’ saved [3228558/3228558]

Once the download is completed extract the downloaded package using unzip command.

[root@linuxhelp ~]# unzip download -d pivotx
Archive:  download
  inflating: pivotx/LICENSE.txt      
  inflating: pivotx/README.txt       
  inflating: pivotx/example.htaccess  
  inflating: pivotx/example.web.config  
   creating: pivotx/images/
  inflating: pivotx/images/icon_pivotx.jpg  
  inflating: pivotx/images/index.html  
  inflating: pivotx/index.php        
.
.
 inflating: pivotx/pivotx/templates_internal/window_fileupload.tpl  
  inflating: pivotx/pivotx/templates_internal/window_insert_download.tpl  
  inflating: pivotx/pivotx/templates_internal/window_insert_image.tpl  
  inflating: pivotx/pivotx/templates_internal/window_insert_popup.tpl  
  inflating: pivotx/pivotx/templates_internal/window_insert_tag.tpl  
  inflating: pivotx/pivotx/templates_internal/window_upload.tpl  
 extracting: pivotx/robots.txt       

Move the Pivotx cms directory to apache root directory.

[root@linuxhelp ~]# mv pivotx /var/www/

Set the ownership and permission for Pivotx cms by using the following command.

[root@linuxhelp ~]# chown -R apache:apache /var/www/pivotx

[root@linuxhelp ~]# chmod -R 755 /var/www/pivotx

Configure the virtualhost for accessing the Pivotx cms.

[root@linuxhelp ~]# vim /etc/httpd/conf.d/pivotx.conf

<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/pivotx
<directory /var/www/pivotx>
allowoverride all
allow from all
</directory>
</Virtualhost>

Restart the apache service by using the following command.

[root@linuxhelp ~]# systemctl restart httpd

Switch to your browser and enter the domain name. Configure the Admin Credentials and select the language Configure the database details Enter the admin credentials to login the pivotx This is the dashboard of pivotx cms With this, the method to install pivotx cms on Centos 7.6 comes to an end.

FAQ
Q
Where to get download the pivotx?
A
Download a PivotX CMS package using the following command.

# wget https://sourceforge.net/projects/pivot-weblog/files/latest/download
Q
How to configure the Host entry in pivotx?
A
Enter into #vim /etc/hosts



Q
What are the php modules required for pivotx?
A
These are the modules required for pivotx?



php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear
Q
What are all the requirements needed to install pivotx ?
A
requirements are,
Install LAMP(Apache, MariaDB, php7)
Q
What is the purpose of installing pivotx?
A
PivotX is a free and open source blog software content management system. It’s written in PHP using either flat files or a database to store content. It uses the Smarty web template system.