How to Install Known CMS on Linux Mint 20

To Install Known CMS on LinuxMint 20

Introduction:

Known CMS is a free and open source content management tool and also a publishing platform to share different types of posts like photos, notes, stories, songs etc. It is written in PHP and can be used with any type of database. In this tutorial will cover the Installation of Known CMS on linux Mint 20

Requirements for Known CMS:

Apache

MySQL

Php and its Modules

php libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-mcrypt php-ldap php-zip php-curl

Installation Procedure:

Now I am going to check the version of the OS

root@linuxhelp:~# cat /etc/os-release 
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

I am going to create a database before I am download the Known CMS Package

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 55
Server version: 10.3.22-MariaDB-1ubuntu1 Ubuntu 20.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database knowndb;
Query OK, 1 row affected (0.019 sec)
MariaDB [(none)]> create user 'knownuser'@localhost identified by 'linuxc@123';
Query OK, 0 rows affected (0.084 sec)
MariaDB [(none)]> grant all privileges on knowndb.* to 'knownuser'@localhost;
Query OK, 0 rows affected (0.002 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.020 sec)
MariaDB [(none)]> exit
Bye

Now download the Known CMS package by using following command

root@linuxhelp:~# wget http://assets.withknown.com/releases/known-0.9.9.zip
--2020-12-05 11:45:38--  http://assets.withknown.com/releases/known-0.9.9.zip
Resolving assets.withknown.com (assets.withknown.com)... 13.249.232.84, 13.249.232.93, 13.249.232.62, ...
Connecting to assets.withknown.com (assets.withknown.com)|13.249.232.84|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24494049 (23M) [application/zip]
Saving to: ‘known-0.9.9.zip’

known-0.9.9.zip                100%[==================================================>]  23.36M  1017KB/s    in 40s     

2020-12-05 11:46:19 (592 KB/s) - ‘known-0.9.9.zip’ saved [24494049/24494049]

root@linuxhelp:~# ls
known-0.9.9.zip
now extract the known cms package by using unzip command
root@linuxhelp:~# unzip known-0.9.9.zip -d known
Archive:  known-0.9.9.zip
  inflating: known/.gitignore        
  inflating: known/.htaccess         
  inflating: known/.travis.yml       
   creating: known/ansible.sample/
 extracting: known/ansible.sample/.htaccess  
  inflating: known/ansible.sample/develop.yml  
   creating: known/ansible.sample/roles/
extracting: known/warmup/bottom.php  
  inflating: known/warmup/index.php  
  inflating: known/warmup/messages.php  
  inflating: known/warmup/requirements.php  
  inflating: known/warmup/settings.php  
  inflating: known/warmup/top.php    
  inflating: known/warmup/writeconfig.php  

now move the knowm directory to apache root directory

root@linuxhelp:~# root@linuxhelp:~# mv known /var/www/

Now set ownership and permissions to known directory

root@linuxhelp:~# chown -R www-data:www-data /var/www/known/
root@linuxhelp:~# chmod -R 755 /var/www/known/

Now configure the virtualhost for access the Known CMS

root@linuxhelp:~# vim /etc/apache2/sites-available/known.conf

now disable the default site access

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Now enable the site access for known CMS

root@linuxhelp:~# a2ensite known.conf
Enabling site known.
To activate the new configuration, you need to run:
systemctl reload apache2

Now enable the rewrite module

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Now restart the apache service

root@linuxhelp:~# systemctl restart apache2

Open browser and enter your hostname

This the welcome page of Known CMS

Check the requirements of Known CMS

Now configure the database settings on Known CMS

Now create a admin Credentials

This the daskborad of Known CMS

With this method the installation Known CMS is comes to end.

FAQ
Q
What is prequisite for knowm CMS?
A
Apache, MySQL, Php and its Modules
Q
At which location to create virtualhost for Known CMS?
A
# vi /etc/apache2/sites-available/known.conf
Q
From where to create host file for Known CMS?
A
Location for host file creatiion# vi /etc/hosts
Q
From which package i have to down Known CMS?
A
Download using wget command and the URL is http://assets.withknown.com/releases/known-0.9.9.zip
Q
What is Known CMS?
A
Known CMS is a free and open source content management tool and also a publishing platform to share different
types of posts like photos, notes, stories, songs etc. It is written in PHP and can be used with any type of database.