How to install Cotonti CMS in Ubuntu 16.04

To install Cotonti CMS in Ubuntu 16.04

Cotonti is open source Content Management System and Content Management Framework built based on PHP and MySQL. It possesses both the flexibity of web development framework and the featureset of a content manager with more focus on security, speed and flexibility. It is simple to install Cotonti CMS and in this tutorial, you will learn about the method to install Cotonti CMS on Ubuntu 16.04

For installing Cotonti CMS, you need to have LAMP stack installed in your system. After installing the LAMP stack, you shall continue the Cotonti installation process.

Installing Cotonti

Make sure you create a database for your Cotonti application. Following the below mentioned commands.

root@example:/home/user1# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with   or g.
Your MySQL connection id is 4
Server version: 5.7.19-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2017, 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 cotonti 
Query OK, 1 row affected (0.00 sec)
mysql>  GRANT ALL PRIVILEGES ON cotonti.* TO ' cotontiuser' @' localhost'  IDENTIFIED BY ' password'  
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql>  FLUSH PRIVILEGES 
Query OK, 0 rows affected (0.01 sec)
mysql>  exit
Bye

Once the database is created, you shall download the Cotonti package with the help of the following command.

root@example:/home/user1# wget https://github.com/Cotonti/Cotonti/archive/master.zip
--2017-11-11 06:34:25-- https://github.com/Cotonti/Cotonti/archive/master.zip
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Cotonti/Cotonti/zip/master [following]
--2017-11-11 06:34:26-- https://codeload.github.com/Cotonti/Cotonti/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ master.zip’ 
master.zip [ < =>  ] 3.39M 466KB/s in 8.3s
2017-11-11 06:34:36 (418 KB/s) - ‘ master.zip’  saved [3555810]

After downloading the package, you should extract it. You can use the following command for the same purpose.

root@example:/home/user1# unzip master.zip
Archive: master.zip
9ac62ca287b41306103eb28c12a59a29fc5d07d4
creating: Cotonti-master/
inflating: Cotonti-master/.gitattributes
inflating: Cotonti-master/.gitignore
extracting: Cotonti-master/.htaccess
inflating: Cotonti-master/Install.txt
&hellip 
&hellip 
&hellip 
inflating: Cotonti-master/themes/symisun-03/users.profile.tpl
inflating: Cotonti-master/themes/symisun-03/users.register.tpl
inflating: Cotonti-master/themes/symisun-03/users.tpl
inflating: Cotonti-master/themes/symisun-03/warnings.tpl

Now, move the contents of Cotonti-master to /var/www/html/cotonti directory

root@example:/home/user1# mv Cotonti-master/ /var/www/html/cotonti

Next, change the ownership for the cotonti directory as follows.

root@example:/home/user1# chown www-data:www-data -R /var/www/html/cotonti/

After that follows an important step &ndash the configuration of the Apache VirtualHost for Cotonti CMS. So, create cotonti.conf in /etc/apache2/sites-available/ directory

root@example:/home/user1# touch /etc/apache2/sites-available/cotonti.conf

Next, create a soft link for cotonti.conf in /etc/apache2/sites-enabled/ directory

root@example:/home/user1# ln -s /etc/apache2/sites-available/cotonti.conf /etc/apache2/sites-enabled/cotonti.conf

Once it is done, open the cotonti.conf file

root@example:/home/user1# nano /etc/apache2/sites-available/cotonti.conf

You can now add the following VirtualHost configuration to the file.

< VirtualHost *:80> 
ServerAdmin linuxhelpserver@gmail.com
DocumentRoot /var/www/html/cotonti/
ServerName example.linuxhelp1.com
ServerAlias www.example.linuxhelp1.com
< Directory /var/www/html/cotonti/> 
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
ErrorLog /var/log/apache2/example-error_log
CustomLog /var/log/apache2/example-access_log common
< /VirtualHost> 

Save the file and exit.

After all this is done, you need to restart the Apache web server, for which you can use the following command.

root@example:/home/user1# service apache2 restart

Now open the web browser and navigate to http://192.168.7.201

Cotonti web installer appears

File and folder permissions are correct,click next

Enter the database information

Enter the administrative account information

Select the modules and plugins that you need and click finish

Installation completed

Remove the install.php file from /var/www/html/cotonti/ directory and change permission for config.php file

root@example:/var/www/html/cotonti# rm -rf install.php
root@example:/var/www/html/cotonti# cd datas/
root@example:/var/www/html/cotonti/datas# chmod 644 config.php

Click login at the bottom and enter the login details and click the Login button.

You will be taken to the Forums section.

You can also view all the details about your Cotonti application from the Administration panel.

With this, the installation of Cotonti CMS gets completed.

FAQ
Q
Which integrations are available?
A
Currently we are working on 'Slife C5 Events', which hooks into several useful concrete5 events. The source code is available on https://github.com/a3020/slife_c5_events.
Q
What are the benefits of cms website?
A
There are so many benefits is there some


Simplified content management – Managing content becomes non-technical


Saves time and effort – Its advanced functionality and automation saves time & labor


Complete control- You can make changes anytime, anywhere.
Q
What are Extensions for the Cotonti CMS?
A
Sometimes you'll need something very specific for your site to support, like for example image gallery or a blog system. The Extension size and complexity depend only on Extension developers, you will find the Extension that is either very small (covering only one needed functionality) or quite big (like sophisticated media galleries).
Q
what are the features for the cotonti CMS?
A
Here I have to mention some of the features for the Cotonti CMS are given below,
• Open source, community driven
• Secure and reliable
• Fast and lightweight
• Modular and extensible
• Layout separated from logic
• A fast and easy template engine
• Internatio
Q
What do I need to install Extension on Cotonti CMS?
A
You will need:
1. An unpacking program (e.g. unrar, unzip or other)
2. Some FTP client (e.g. Putty, Total Commander, FileZilla)
3. Basic knowledge about file editing (considering you already installed Cotonti, this is not a problem)