Installation
How to install Flute: an archive on hosting with a control panel, from git on your own server, or with install.sh in Docker.
By the end of this page you will have a working site and an owner account in its admin panel. On hosting with a control panel, that takes one archive and a few steps in the web installer.
Choose the path that fits your server:
If you are not sure your hosting will do, check the requirements.
Archive on hosting
Download the archive
On the releases page, download flute-cms-with-vendor-<VERSION>.zip. It contains the site together with all its dependencies.
Unpack it into the site folder
Upload the archive with the panel's file manager and unpack it right in the site folder. If the panel allows it, point the domain root at the public/ folder inside. If it does not, that is fine: the .htaccess from the archive sends requests where they need to go.
Open the site
Go to your domain. The web installer starts and guides you through the steps.
No vendor/ folder
If the site reaches the hosting without vendor/, it downloads vendor-<VERSION>.zip on the first visit and unpacks it. For this, PHP needs the zip extension and either curl or allow_url_fopen turned on. The work is split into short requests, so a hosting limit of 30 seconds per request does not get in the way.
Web installer
The installer asks for the language and where the site is hosted, checks the server and asks for the database details. Then you add the scheduler line, create the owner account and pick the game your community plays, so the site gets matching styling and pages right away. You can skip the Flute key, the first game server and the Steam key and add them later in the admin panel. The installation itself usually takes under a minute.
The "The server needs a fix" step appears only if something is missing: the PHP version, an extension or folder permissions. The installer shows exactly what.
Database through the panel
In FASTPANEL, HestiaCP and Plesk, the database step has a button with the panel's name, for example "Through FASTPANEL". You enter the panel login and password, and the installer creates the database with a strong password, adds the scheduler job and fills everything into the form. The panel login and password are not stored anywhere.
For cPanel and ispmanager, the installer shows step-by-step hints, and you create the database and the job in the panel yourself.
| Panel | What you need |
|---|---|
| HestiaCP | a panel administrator. Also, the panel API rejects requests from the server itself until you run v-add-sys-api-ip 127.0.0.1 on it |
| Plesk | any user can create the database. Only a server administrator can add the scheduler job and PHP extensions |
| FASTPANEL | any panel user can create the database and the job, an administrator turns on extensions |
If the installation was interrupted
Open the site again: the installation continues from the step where it stopped.
If you see "The owner account is already in this database, so the database cannot be changed now", you already got as far as creating the owner, and the owner is stored in the database you chose. Carry on with that database.
Your own server from git
You need PHP with the extensions from the requirements, Composer 2 and a web server with the site root pointing at public/.
git clone https://github.com/flute-cms/cms.git
cd cms
composer installThe main branch holds stable releases, development happens in early. After composer install, open the site in a browser and the same web installer starts.
For nginx with php-fpm, this config will do. Adjust the php-fpm socket path to your system and PHP version.
server {
listen 80;
server_name <YOUR_DOMAIN>;
root <SITE_DIR>/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php-fpm.sock;
}
location ~ /\.(?!well-known).* {
deny all;
}
}Then add the scheduler job as the user the site runs as (crontab -e):
* * * * * php <SITE_DIR>/flute cron:run