How to Install Cloudlog on Fedora Server

Cloudlog is a web-based logging system designed for amateur radio operators. It can be used to log QSOs, manage your station equipment, and generate reports. In this tutorial, you will learn how to install Cloudlog on Fedora Server.

Prerequisites

Before you start, you will need the following:

Step 1: Download Cloudlog

First, download the latest release of Cloudlog from the official website. You can use the following command to download the release using wget:

wget https://github.com/magicbug/Cloudlog/releases/download/v2.0.0/Cloudlog_2.0.0.zip

Step 2: Extract Cloudlog

Once the download is complete, extract the zip file using the following command:

unzip Cloudlog_2.0.0.zip -d /var/www/html/

This will extract the contents of the zip file to the /var/www/html/ directory.

Step 3: Create MySQL Database and User

Next, you need to create a MySQL database and user for Cloudlog. You can use the following commands to create a database called cloudlogdb and a user called cloudloguser:

mysql -u root -p
CREATE DATABASE cloudlogdb;
CREATE USER 'cloudloguser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON cloudlogdb.* TO 'cloudloguser'@'localhost';
FLUSH PRIVILEGES;
exit

Make sure to replace password with a strong password.

Step 4: Configure Cloudlog

Now it's time to configure Cloudlog. Open the following file in your favorite text editor:

/var/www/html/cloudlog/application/config/database.php

Find the following lines:

$db['default'] = array(
    'dsn'   => '',
    'hostname' => '',
    'username' => '',
    'password' => '',
    'database' => '',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8mb4',
    'dbcollat' => 'utf8mb4_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);

Replace the values in quotes for hostname, username, password, and database with the following:

'hostname' => 'localhost',
'username' => 'cloudloguser',
'password' => 'password',
'database' => 'cloudlogdb',

Step 5: Set Permissions

Change the ownership of the Cloudlog directory to the user and group of your web server. For Apache, use the following command:

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

If you're using Nginx, use the following command instead:

chown -R nginx:nginx /var/www/html/cloudlog

Step 6: Enable Rewrite Module

Cloudlog uses the Apache mod_rewrite module to enable pretty URLs. To enable this module, use the following command:

sudo dnf install mod_rewrite

Once the module is installed, make sure to enable it by using the following command:

sudo a2enmod rewrite

Step 7: Restart Web Server

Finally, restart your web server to apply the changes using the following command:

systemctl restart httpd

Step 8: Access Cloudlog

You should now be able to access Cloudlog by visiting your server's IP address or domain name in your web browser. You will be prompted to enter your amateur radio callsign and password to log in.

Congratulations! You have successfully installed Cloudlog on Fedora Server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!