How to install Cloudlog on Ubuntu Server

Cloudlog is an open-source web-based logging program that helps you record your amateur radio contacts. It is a modern logging program that can be installed on Ubuntu Server. Here is a step by step guide to install Cloudlog:

Prerequisites

Before installing Cloudlog, you will need the following prerequisites:

You can install these prerequisites using the following command:

sudo apt update
sudo apt install apache2 mysql-server php7.4 git

Step 1: Installing Cloudlog

To get started, navigate to your server's root directory and clone the Cloudlog repository using Git:

cd /var/www/
sudo git clone https://github.com/magicbug/Cloudlog.git

Once the download is complete, move into the Cloudlog directory:

cd Cloudlog

At this point, you should install the required PHP packages that Cloudlog uses:

sudo apt install php7.4-zip php7.4-curl php7.4-mysql php7.4-xml

Step 2: Configuring the Database

Next, you need to create a blank database. Log in to your MySQL server and run the following command:

CREATE DATABASE cloudlog;

Next, create a new user account and grant access to the newly created database:

CREATE USER 'cloudloguser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON cloudlog.* TO 'cloudloguser'@'localhost';
FLUSH PRIVILEGES;

Replace yourpassword with your own password. Note that if you're installing Cloudlog on a remote server, replace 'localhost' with the server's IP address.

Step 3: Configuring Cloudlog

Navigate to your Cloudlog installation directory (/var/www/Cloudlog), and copy the config.php.dist file to config.php:

sudo cp config.php.dist config.php

Next, edit the config.php file with the following command:

sudo nano config.php

In the file, find the DB_HOST, DB_NAME, DB_USER, and DB_PASS variables, and modify them to match your MySQL database settings:

define("DB_HOST", "localhost");
define("DB_NAME", "cloudlog");
define("DB_USER", "cloudloguser");
define("DB_PASS", "yourpassword");

Save the config.php file.

Step 4: Setting Permissions

You will need to set the appropriate permissions for Cloudlog to be able to write to certain directories. To do this, enter the following commands:

sudo chown -R www-data:www-data /var/www/Cloudlog
sudo chmod -R 755 /var/www/Cloudlog

Step 5: Testing Cloudlog

To test if Cloudlog is installed correctly, open up a web browser and navigate to http://yourserverIP/Cloudlog/. If all went well, you should see the Cloudlog login page.

Conclusion

Congratulations! You have successfully installed Cloudlog on your Ubuntu Server. You can now log in with the default username (admin) and password (password). Once you're logged in, you can begin recording your amateur radio contacts!

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!

Alternatively, for the best virtual desktop, try Shells!