{"id":17056,"date":"2015-04-17T13:21:06","date_gmt":"2015-04-17T18:21:06","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17056"},"modified":"2022-12-09T05:10:08","modified_gmt":"2022-12-09T11:10:08","slug":"how-to-install-known-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-known-on-a-centos-7-vps\/","title":{"rendered":"How to install Known on CentOS 7"},"content":{"rendered":"
Known 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<\/a> with Apache, PHP and MariaDB server.<\/p>\n <\/p>\n Known requires the following server components: Log in to your server as user root and make sure that all packages are up to date<\/p>\n Install MariaDB on your server<\/p>\n Start the MariaDB server and add the service to automatically start on system start-up<\/p>\n Secure the MariaDB server and set a new ‘root’ password<\/p>\n Now, log in to the MariaDB server and create a user and database<\/p>\n Don\u2019t forget to replace \u2018PASSWORD\u2019 with an actual strong password.<\/p>\n Known requires a web server, so we will install Apache<\/p>\n Start the Apache web server and enable it to start at boot<\/p>\n Install PHP and several PHP components required by Known<\/p>\n Now, we will set up Apache virtual hosting directive for the Known website<\/p>\n Create a \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content<\/p>\n and create a \u2018\/etc\/httpd\/vhosts.d\u2019 directory where we will put all our virtual hosts.<\/p>\n Create a virtual host for your domain<\/p>\n Now, download the latest Known release from their official website<\/p>\n Extract the downloaded zip archive in the document root directory.<\/p>\n Change the ownership<\/p>\n Finally, open a browser, access http:\/\/yourdomain.com 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<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Known for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Known is quite new and promising open-source publishing and collaboration platform that allows individuals or groups to share their stories … <\/p>\n
\n– Apache web server with mod_rewrite enabled
\n– PHP vesion 5.4 or above
\n– MySQL\/MariaDB 5 or MongoDB<\/p>\nyum -y update<\/pre>\n
yum install mariadb-server mariadb<\/pre>\n
systemctl start mariadb.service\r\nsystemctl enable mariadb.service<\/pre>\n
mysql_secure_installation<\/pre>\n
mysql -u root -p\r\nMariaDB [(none)]> CREATE DATABASE known;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON known.* TO 'user'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-common php-xml php-gd php-mbstring php-mysql php-xmlrpc<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/knowndomain.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@knowndomain.com\r\nDocumentRoot \"\/var\/www\/html\/known\"\r\nServerName knowndomain.com\r\nServerAlias www.knowndomain.com\r\nErrorLog \"\/var\/log\/httpd\/knowndomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/knowndomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/known\">\r\nDirectoryIndex index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
wget http:\/\/assets.withknown.com\/releases\/known-0.7.6.zip<\/pre>\n
unzip known-0.7.6.zip -d \/var\/www\/html\/known\/<\/pre>\n
chown -R apache:apache \/var\/www\/html\/known\/<\/pre>\n