How to install Known on CentOS 7

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.

Need a fast and easy fix?
✔ Unlimited Managed Support
✔ Supports Your Software
✔ 2 CPU Cores
✔ 2 GB RAM
✔ 50 GB PCIe4 NVMe Disk
✔ 1854 GeekBench Score
✔ Unmetered Data Transfer

Now just $43 .99

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.

Leave a Comment