{"id":18594,"date":"2016-02-07T12:25:43","date_gmt":"2016-02-07T18:25:43","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18594"},"modified":"2022-06-03T03:43:49","modified_gmt":"2022-06-03T08:43:49","slug":"how-to-install-pligg-cms-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-pligg-cms-on-ubuntu-14-04\/","title":{"rendered":"How to install Pligg CMS on Ubuntu 14.04"},"content":{"rendered":"
Pligg CMS is a free and open source Content Management System (CMS) written in PHP and using the popular open source MySQL database system for content storage. Pligg enables users to create an online community where anyone can submit articles, vote on them, and leave comments. Pligg CMS is incredibly easy to use and manage, and can easily help power social networks and other interactive communities. There are plenty of templates to choose from, along with a plethora of plugins and extensions. The software encourages visitors to register on your website so that they can submit their content and connect with other users. It is fairly easy to install Pligg CMS on an Ubuntu 14.04 VPS<\/a><\/strong>. The installation process should take about 5-10 minutes if you follow the very easy steps described below.<\/p>\n At the time of writing this tutorial, Pligg CMS 2.0.2 is the latest stable version available and it requires:<\/p>\n – Apache web server; INSTRUCTIONS:<\/p>\n Log in to your VPS via SSH<\/p>\n Update the system<\/p>\n Install MariaDB 10.0<\/p>\n To install MariaDB, run the following command:<\/p>\n Next, we need to create a database for our Pligg CMS installation:<\/p>\n Do not forget to replace \u2018your-password\u2019 with a strong password.<\/p>\n Install Apache2 web server<\/p>\n Install PHP and required PHP modules<\/p>\n To install the latest stable version of PHP version 5. and all nessesary modules, run:<\/p>\n Download and extract the latest version of Pligg CMS on your server:<\/p>\n All files have to be readable by the web server, so we need to set the proper ownership:<\/p>\n Now, before proceeding with the web installation we need to rename several files and directories:<\/p>\n Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018pligg.conf\u2019 on your virtual server:<\/p>\n Then, add the following lines:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/your-domain.com\/install\/install.php and if you configured everything correctly the Pligg CMS installer should be starting. You should follow the easy instructions on the install screen inserting the necessary information as requested.<\/p>\n After everything is completed, change the permissions of the \u2018dbconnect.php\u2019 file:<\/p>\n And delete the installation directory.<\/p>\n That is it. The Pligg CMS installation is now complete.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Pligg CMS<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span><\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Pligg CMS is a free and open source Content Management System (CMS) written in PHP and using the popular open … <\/p>\n
\n– PHP (version 5.3 or higher);
\n– MySQL(version 5.1 or higher) installed on your Linux VPS<\/a>;<\/p>\nssh user@vps_IP<\/pre>\n
[user]$ sudo apt-get update && sudo apt-get -y upgrade<\/pre>\n
[user]$ sudo apt-get install -y mariadb-server<\/pre>\n
[user]$ mysql -u root -p\r\n\r\nMariaDB [(none)]> CREATE DATABASE pligg;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON pligg.* TO 'pligguser'@'localhost' IDENTIFIED BY 'your-password';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q<\/pre>\n
[user]$ sudo apt-get install apache2<\/pre>\n
[user]$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd<\/pre>\n
[user]$ sudo cd \/opt && wget https:\/\/github.com\/Pligg\/pligg-cms\/releases\/download\/2.0.2\/2.0.2.zip\r\n[user]$ sudo unzip 2.0.2.zip\r\n[user]$ sudo mv pligg-cms-master\/ \/var\/www\/html\/pligg<\/pre>\n
[user]$ sudo chown www-data:www-data -R \/var\/www\/html\/pligg<\/pre>\n
[user]$ sudo mv settings.php.default settings.php\r\n[user]$ sudo mv languages\/lang_english.conf.default languages\/lang_english.conf\r\n[user]$ sudo mv logs.default\/ logs\r\n[user]$ sudo mv libs\/dbconnect.php.default libs\/dbconnect.php<\/pre>\n
[user]$ sudo touch \/etc\/apache2\/sites-available\/pligg.conf\r\n[user]$ sudo ln -s \/etc\/apache2\/sites-available\/pligg.conf \/etc\/apache2\/sites-enabled\/pligg.conf\r\n[user]$ sudo nano \/etc\/apache2\/sites-available\/pligg.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/pligg\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/pligg\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nOrder allow,deny\r\nallow from all\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
[user]$ sudo service apache2 restart<\/pre>\n
[user]$ sudo chmod 644 libs\/dbconnect.php<\/pre>\n
[user]$ sudo rm -rf install\/<\/pre>\n