Pligg is a free and open source Content Management System (CMS) written in PHP. Pligg can be used for creating social publishing networks, where registered users can submit and promote their content and connect with other users. Using Pligg you can start your own social network in just minutes, all on your Linux VPS.
This tutorial will guide you through the easy process of installing Pligg CMS on a CentOS 6 VPS.
Pligg CMS requires Apache, MySQL version 5 or later and PHP version 5 or later installed on your CentOS VPS. The installation of LAMP (Linux, Apache, MySQL and PHP) has already been described in one of our previous blog posts.
Before we start installing Pligg make sure that your CentOS VPS is up to date:
yum -y update
Download and unpack the latest stable version of Pligg (currently version 2.0.1) from their official website to the document root directory on your server:
mkdir /var/www/html/pligg && cd /var/www/html/pligg wget https://github.com/Pligg/pligg-cms/releases/download/2.0.1/2.0.1.zip unzip 2.0.1.zip
Now, we need to create a MySQL database and user for Pligg CMS. Log in to the MySQL server as user root and execute:
mysql -u root -p Enter password:
Create a MySQL database;
mysql> CREATE DATABASE pligg; Query OK, 1 row affected (0.02 sec)
Create MySQL user and set its password:
CREATE USER 'pligguser'@'localhost' IDENTIFIED BY 'USER_PASSWORD';
Change ‘USER_PASSWORD’ with an actual password.
Grant all privileges on the ‘pligg‘ database to ‘pligguser‘ user:
GRANT ALL PRIVILEGES ON pligg.* TO 'pligguser'@'localhost';
And reload the privileges:
Now, before proceeding with the web installation we need to rename several files and directories:
mv settings.php.default settings.php mv languages/lang_english.conf.default languages/lang_english.conf mv logs.default/ logs mv libs/dbconnect.php.default libs/dbconnect.php
Change the ownership of the Pligg installation directory:
chown -R apache:apache /var/www/html/pligg
Now go to http://yourdomain.tld/pligg/install/install.php and complete the installation. You will be prompted to enter the information of the created MySQL database, create an admin user, etc..
After everything is completed, change the permissions of the ‘dbconnect.php’ file:
chmod 644 libs/dbconnect.php
And delete the installation directory.
rm -rf install/
That’s all. Enjoy using Pligg CMS.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Pligg CMS for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.