Miscellaneouss

How to Install Cotonti CMS on OpenSUSE Leap 42.3

cotonti
mm
Written by Santosh Prasad

Cotonti combines the flexibility of a web framework with the rapid deploy-ability and feature-set of a content management system. Despite having features such as user accounts, content creation, file management and community tools out of the box, it can be easily extended using modules or plugins.

In this tutorial I will show you how to install Cotonti CMS on OpenSUSE Leap 42.3.

Prerequisite:

  • LAMP Stack –  Install LAMP Stack
  • PHP Extension – php-mysql php-gd php-mbstring

Cotonti CMS Installation

First of all you have to download the latest stable version using wget command. Follow the below command to download Cotonti CMS.

# wget https://github.com/Cotonti/Cotonti/archive/master.zip
--2017-11-04 09:51:00-- https://github.com/Cotonti/Cotonti/archive/master.zip
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Cotonti/Cotonti/zip/master [following]
--2017-11-04 09:51:02-- https://codeload.github.com/Cotonti/Cotonti/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.255.121, 192.30.255.120
Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

[ <=> ] 3,555,810 787KB/s in 6.1s

2017-11-04 09:51:09 (571 KB/s) - ‘master.zip’ saved [3555810]

After downloaded now extract the download package in your Apache document root directory and unzip it.

# unzip master.zip -d /srv/www/htdocs/
Archive: master.zip
9ac62ca287b41306103eb28c12a59a29fc5d07d4
creating: /srv/www/htdocs/Cotonti-master/
inflating: /srv/www/htdocs/Cotonti-master/.gitattributes
inflating: /srv/www/htdocs/Cotonti-master/.gitignore
extracting: /srv/www/htdocs/Cotonti-master/.htaccess
inflating: /srv/www/htdocs/Cotonti-master/Install.txt
inflating: /srv/www/htdocs/Cotonti-master/License.txt
inflating: /srv/www/htdocs/Cotonti-master/README.md
inflating: /srv/www/htdocs/Cotonti-master/admin.php
extracting: /srv/www/htdocs/Cotonti-master/apple-touch-icon.png
creating: /srv/www/htdocs/Cotonti-master/datas/
inflating: /srv/www/htdocs/Cotonti-master/datas/.htaccess
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/symisun-03.ru.lang.php
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.details.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.edit.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.passrecover.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.profile.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.register.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/users.tpl
inflating: /srv/www/htdocs/Cotonti-master/themes/symisun-03/warnings.tpl
........
.......

Now go to Apache document root directory with cd command and list the files.

# cd /srv/www/htdocs/
# ll
total 16
drwxr-xr-x 12 root root 4096 Aug 28 15:53 Cotonti-master
drwxrwxrwx 2 wwwrun www 4096 Oct 9 23:15 gif
-rwxrwxrwx 1 wwwrun www 2356 Mar 18 2017 info2html.css

Set the appropriate owner permission and file execution permission using below command.

# chown -R wwwrun:www /srv/www/htdocs/
# chmod -R 775 /srv/www/htdocs/

Now create an Apache configuration file named “vhost.conf” and add the following content in this file.

# vim /etc/apache2/conf.d/vhost.conf

<VirtualHost *:80>
DocumentRoot "/srv/www/htdocs"
ServerName cotonti.looklinux.com
<Directory "/srv/www/htdocs/">
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Note : I have create a subdomain to access Cotonti CMS. You can also use your main domain to access it like below :

# vim /etc/apache2/conf.d/vhost.conf

<VirtualHost *:80>
DocumentRoot "/srv/www/htdocs"
ServerName www.your_domain.com
<Directory "/srv/www/htdocs/">
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Restart Apache service.

#systemctl restart apache

Now go to your web browser and enter the below URL. In my case my URL is:

http://cotonti.looklinux.com/contonti/install.php

You will get installation wizard of Cotonti apears on the screen.

cotonti-cms-img-1

Select Language and click on “Next“.

Next screen will show you the summary of the configuration setting along with file and permission.

cotonti-cms-img-2

To create database enter the required details and click Next.

cotonti-cms-img-3

Next enter the required details for miscellaneous settings and administrator accounts. Click the Install option to begin with the installation procedure.

cotonti-cms-img-4

Now it will list all modules that will be install along with Cotonti CMS.

cotonti-cms-img-5

Installation has been completed now click on “View the site“.

cotonti-cms-img-6

The Cotonti CMS admin page is now displayed on the screen. The CMS prompts the user to remove the installation folder from the system.

cotonti-cms-img-7

Run the below command to remove the installation folder of Cotonti CMS.

# rm –rf install.php

Cotonti CMS Dashboard

cotonti-cms-img-8

Cotonti CMS Modules List

cotonti-cms-img-9

Thank you! for visiting Look Linux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment