Skip to content

Installation

Firefly QSL is a PHP application that runs on an ordinary web server or shared hosting account. There is no installer: copy the files, create the database, and edit the configuration.

Upgrading from Smooth QSL or Firefly QSL 2.x?

Follow Upgrading from 2.x instead.

Prerequisites

  • A web server running PHP 8.2 or newer with the PDO, pdo_mysql and imagick extensions
  • MariaDB 11 or newer
  • ImageMagick 6 or newer, with the fonts you want to use on the card
  • Basic familiarity with running a LAMP/WAMP-style stack

On Debian or Ubuntu, the PHP pieces are usually:

apt install php php-mysql php-imagick imagemagick

This guide does not cover installing or configuring the web server, PHP or MariaDB themselves.

New Installation

  1. Download the latest stable release and unpack it.

  2. Edit the configuration. At a minimum, set the club callsign, club name, password and database settings. You must change the password: logins are refused while it is still the shipped default. See Configuration. Putting your settings in a config.local.php file keeps them out of git and safe across upgrades.

  3. Copy or upload all of the files to your web server directory or hosting account. A subdirectory works well, for example /qsl. Every path in the application is relative, so it runs in any directory.

  4. Make the templates subdirectory writable by the web server. The Card Designer saves your card artwork there. On most hosting providers this is already the case.

  5. Create the database and load the schema. qsl.sql creates a database named fireflyqsl with the qsos and card_layouts tables:

    SOURCE qsl.sql;
    CREATE USER 'fireflyqsl'@'localhost' IDENTIFIED BY 'a-strong-password';
    GRANT SELECT, INSERT ON fireflyqsl.* TO 'fireflyqsl'@'localhost';
    GRANT DELETE, UPDATE ON fireflyqsl.card_layouts TO 'fireflyqsl'@'localhost';
    FLUSH PRIVILEGES;
    

    On shared hosting, create the database in the hosting control panel and import qsl.sql with phpMyAdmin. Remove the CREATE DATABASE and USE lines first if the database name the host gives you is different.

  6. Check the install. On the server, run:

    php check_install.php
    

    To run it from a browser before you can log in, set $install_check_enabled = true in the configuration, open https://example.com/qsl/check_install.php, then set it back to false. See Command-Line Tools.

  7. Log in and open Card Designer from the menu to upload your QSL card and place the fields. See Card Designer. If you don't have card artwork yet, use the example cards in examples/ to try things out.

  8. Load a log, then search for one of the callsigns in it on the home page and print a card to confirm everything works.

URLs

With the files in /qsl, the application is at https://example.com/qsl/. The pages people use are:

Page Who uses it
https://example.com/qsl/ Anyone: search for QSOs and print cards
https://example.com/qsl/load.php Club: load an ADIF log (asks for a login)
https://example.com/qsl/designer.php Club: set up the card (asks for a login)

Upload Size

The largest ADIF file and card image you can upload are limited by PHP's upload_max_filesize and post_max_size settings. Both the loader and the Card Designer show the current limit. If your logs or artwork are larger, raise both settings in php.ini (or your host's PHP settings page), for example:

upload_max_filesize = 20M
post_max_size = 25M

For logs too big to upload, use the command-line loader.