How to Install Known on Fedora Server
Known is a flexible social publishing platform that allows you to easily create and manage your own website or blog. In this tutorial, we'll walk you through the steps to install Known on a Fedora server.
Prerequisites
Before starting the installation process, make sure your server meets the following requirements:
- Fedora Server latest version installed
- Apache web server
- PHP version 7.3 or later
- MySQL or MariaDB database server
- A web browser
Step 1: Update Fedora Server
The first step is to update all installed packages on Fedora Server. To do so, open a terminal and execute the following command:
sudo dnf update
Step 2: Install Apache web server
Known requires an Apache web server installed on your server. To install Apache, run the following command:
sudo dnf install httpd
Step 3: Install PHP
Known requires PHP version 7.3 or later. To install PHP, run the following command:
sudo dnf install php php-mysqlnd php-opcache php-gd php-xml php-mbstring
Step 4: Install MariaDB Database Server
Known requires a database server to store its data. In this tutorial, we'll use MariaDB. To install it, run the following command:
sudo dnf install mariadb-server
Step 5: Configure MariaDB
After installing MariaDB, we need to configure it. Start the MariaDB service using the following command:
sudo systemctl start mariadb
Then, run mysql_secure_installation to secure the MariaDB installation:
sudo mysql_secure_installation
Step 6: Create a Database and User for Known
We'll now create a database and a user for Known.
Log in to MariaDB by executing the following command:
sudo mysql -u root -p
Enter your MySQL/MariaDB root user password when prompted, then create a new database and user:
CREATE DATABASE known;
GRANT ALL PRIVILEGES ON known.* TO 'knownuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
Make sure to replace knownuser and password with your desired database username and password.
Step 7: Download and Install Known
Now, it's time to download Known from their website. Go to the https://withknown.com/ website and download the latest version of Known.
Once downloaded, extract the file into the /var/www/html/ directory:
cd ~/Downloads && unzip known-latest.zip
sudo mv known /var/www/html/.
Step 8: Set File Permissions
Set appropriate file permissions for the Known installation by issuing the following command:
sudo chown -R apache:apache /var/www/html/known
Step 9: Configure Apache for Known
To configure Apache for Known, create a new virtual host file by running the following command:
sudo nano /etc/httpd/conf.d/known.conf
Paste the following code into the file:
<VirtualHost *:80>
ServerName your-domain.com
DocumentRoot /var/www/html/known
<Directory /var/www/html/known>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/your-domain.com-error_log
CustomLog /var/log/httpd/your-domain.com-access_log common
</VirtualHost>
Replace your-domain.com with your actual domain name.
Save and exit the file.
Step 10: Enable and Start Apache and MariaDB
Enable and start the Apache web server and MariaDB:
sudo systemctl enable httpd mariadb
sudo systemctl start httpd mariadb
Step 11: Configure Known
Open a web browser and navigate to http://your-domain.com/known to start the Known configuration wizard.
Follow the prompts to configure your site.
Once the installation is complete, log in to your Known site using the username and password you provided during the installation.
Congratulations! You have successfully installed Known on your Fedora server.