How To Setup Social Publishing CMS (Content Managemnet System) Using Pligg in CentOS 6.5

Pligg is an open-source CMS social publishing software that encourages visitors to register on your website so that they can submit content and connect with other users. It is used to setup your own social publishing community in just minutes.

 In this article, I use CentOS 6.5 to setup this website. My hostname and IP Address are ansh.geniusansh.com and 192.168.1.150/24 respectively. Change these values as per your setup.

Prerequisites
Install the following prerequisites to install and configure Pligg:
[root@ansh ~]# yum install mysql mysql-server httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring wget unzip -y
 Start/Restart MySQL and Apache services now:
[root@ansh ~]# /etc/init.d/mysqld start
[root@ansh ~]# /etc/init.d/httpd start
[root@ansh ~]# chkconfig mysqld on
[root@ansh ~]# chkconfig httpd on
U can see LAMP configuration on my previous blog for  MySql Configuration.

Create MySQL Database and user for Pligg:
Here I create a database ‘pliggdb’ and user ‘pliggadmin’ with password ‘admin@123’:
[root@ansh ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.69 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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

mysql> create database pliggdb;
Query OK, 1 row affected (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON pliggdb.* TO pligguser@192.168.0.150 IDENTIFIED BY 'admin@123';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye
 you just keep in mind, ur fiewall if off and Selinux is Disabled  mode.
if not then u just off or add rule for apache with  port no 80

[root@ansh html]# vi /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
 Restart the iptables to save the changes:
[root@ansh html]# /etc/init.d/iptables restart
 Disable SELinux and reboot your system:
[root@ansh ~]# vi /etc/sysconfig/selinux 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Download Pligg
Download the latest Pligg software from google like type Pligg CMS download:
Extract the downloaded file using the following command:
[root@ansh ~]# unzip Pligg\ CMS\ 1.2.2.zip

This will create a directory called pligg in your current directory. Move all the contents of this directory to your Apache html folder(/var/www/html).
Now we have to rename the following files to make it work. Change to the html directory and enter the following commands to rename the necessary files:
[root@ansh ~]# cd /var/www/html/pligg
[root@ansh pligg]# mv languages/lang_english.conf.default languages/lang_english.conf
[root@ansh pligg]# mv libs/dbconnect.php.default libs/dbconnect.php
[root@ansh pligg]# mv settings.php.default settings.php
 Now set required permissions to the following folders as shown below:
[root@ansh pligg]# chmod 777 admin/backup/
[root@ansh pligg]# chmod 777 avatars/groups_uploaded/
[root@ansh pligg]# chmod 777 avatars/user_uploaded/
[root@ansh pligg]# chmod 777 cache/
[root@ansh pligg]# chmod 777 cache/admin_c/
[root@ansh pligg]# chmod 777 cache/templates_c/*.*
[root@ansh pligg]# chmod 777 templates/*.*
[root@ansh pligg]# chmod 777 languages/*.*
[root@ansh pligg]# chmod 666 libs/dbconnect.php
[root@ansh pligg]# chmod 666 settings.php

Begin Installation
Navigate http://ip-address or domain-name/install/index.php and follow the on-screen instructions.
Go to Install menu and select the language.

 Click Next.
Enter the Database name, username and password. Click Check Settings to verify.

 

 If you entered the valid database credentials, the database connection should established.
Now the necessary tables will be created. Enter the administrative account details and click Create Admin Account.
 You’re done now. Your Pligg site is successfully installed.
Post Installation
Delete the Install folder:
[root@ansh html]# rm -fr install/
 Change the permission of “/libs/dbconnect.php” file back to 644:
[root@ansh html]# chmod 644 libs/dbconnect.php

Configure Pligg
Next login to admin console to start configure Pligg:

That’s it. Customize your site as per your liking by adding modules, widgets and templates etc. If getting trouble to open any modules, check the permissions.
This is how your Homepage looks.
to know mopre about PLIGG then u can see pligg official Website:

Enjoy UR Self. Have a Good Day!!!




Comments

Popular posts from this blog

Step By Step Configuration Cisco VoIP Phone in Cisco Packet Tracer.

How To Install And Configuring OpenFire XMPP Chat server on centos 6.5