How to install Known on a CentOS 7 VPS

logo_betaKnown is quite new and promising open-source publishing and collaboration platform that allows individuals or groups to share their stories to a wide range of social media services. In today’s article we will guide you through the process of installing Known on a Centos 7 VPS with Apache, PHP and MariaDB server.

Known requires the following server components:
– Apache web server with mod_rewrite enabled
– PHP vesion 5.4 or above
– MySQL/MariaDB 5 or MongoDB

Log in to your server as user root and make sure that all packages are up to date

yum -y update

Install MariaDB on your server

yum install mariadb-server mariadb

Start the MariaDB server and add the service to automatically start on system start-up

systemctl start mariadb.service
systemctl enable mariadb.service

Secure the MariaDB server and set a new ‘root’ password


Now, log in to the MariaDB server and create a user and database

mysql -u root -p
MariaDB [(none)]> CREATE DATABASE known;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON known.* TO 'user'@'localhost' IDENTIFIED BY 'PASSWORD';
MariaDB [(none)]> \q;

Don’t forget to replace ‘PASSWORD’ with an actual strong password.

Known requires a web server, so we will install Apache

yum install httpd

Start the Apache web server and enable it to start at boot

systemctl start httpd
systemctl enable httpd

Install PHP and several PHP components required by Known

yum install php php-common php-xml php-gd php-mbstring php-mysql php-xmlrpc

Now, we will set up Apache virtual hosting directive for the Known website

Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content

vim /etc/httpd/conf.d/vhosts.conf
IncludeOptional vhosts.d/*.conf

and create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts.

mkdir /etc/httpd/vhosts.d

Create a virtual host for your domain

vim /etc/httpd/vhosts.d/knowndomain.conf

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/known"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/known">
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Now, download the latest Known release from their official website


Extract the downloaded zip archive in the document root directory.

unzip -d /var/www/html/known/

Change the ownership

chown -R apache:apache /var/www/html/known/

Finally, open a browser, access and follow the instructions to configure your Known site for the first time. The setup wizard will check if your server meets the requirements and if you have everything installed, there will be a ‘Continue’ button at the bottom of the page. Click the button and finish the installation

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 Known 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.

Install Simple Machines Forum on a CentOS 7 Linux VPS
Install Symphony CMS on an Ubuntu VPS
How to Setup an Email Server with Mail-in-a-Box on Ubuntu
There are currently no comments.