You need a working LAMP, LEMP or WAMP stack. If you don’t have one, search the web to find out how to get one. Make sure you’re running PHP 7.1. There are many tutorials that will help you install one. For example:
You also need an email address and the associated password and server settings. You can safely use your own email address. If you prefer not to, you can register a free email account at GMail or Outlook
1. Preparing your server
Install the following PHP modules:
- PHP BCMath Arbitrary Precision Mathematics
- PHP Internationalization extension
- PHP MBstring
- PHP Curl
- PHP Zip
You can search the web to find out how to install these modules. Some may be installed already.
If you run Apache, open the
apache2.conf configuration file (its location differs, but it is probably in
Find the line that starts with
<Directory /var/www>. If you see
/, keep looking!
You will see the text
AllowOverride None right below it. Change it to
Also run the following commands:
sudo a2enmod rewrite sudo service apache2 restart
If you run nginx, the configuration should be fine. You’ll just have to search the web on how to run PHP7.1 in nginx. You can check out my own nginx configuration.
If you have sudo rights (try
sudo ls) you can install composer using the following command:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Verify the installation of composer using the following command.
This concludes the server preparations!
2. Installing Firefly
/var/www which is probably the directory where your web server is configured to find its files.
Enter the following command.
composer create-project grumpydictator/firefly-iii --no-dev --prefer-dist firefly-iii 4.6.8
If this gives an error because of access rights, prepend the command with
sudo . We’ll fix the access rights later. The output of this command must look something like this example.
firefly-iii directory you will find a
.env file. Open this file using your favorite editor.
In the list below you will see each value in this file and what you must put there. If a value from the
.env file is not mentioned, you should ignore it.
||Set this to true when you file a bug. It will enable detailed errors.|
||Firefly III knows if you use http or https. To force https, set this to true.|
||Firefly III knows its own web address. If it is mistaken, fill in this field|
||Change this to get more detailed logging.|
||Change this to match your database settings.|
||Tie the cookies to a specific path if necessary|
||Tie the cookies to a specific domain if necessary|
||Update this to reflect your email settings.|
||Set this to true if you want to use incomplete translations.|
||You need to fill this in to be able to set the location for tags.|
||If you want to see analytics for your own Firefly III installation|
||Important Fill in your email address.|
Initialize the database
This step is very important, because Firefly III needs a database to work with and it will tell you whether or not your configuration is correct. Run the following command:
php artisan migrate:refresh --seed
If this command does not work, and it says “could not open input file”, do this first:
Make sure the web server user has access rights.
Especially when you install Firefly III using
sudo, the web server may not have (write) access to the Firefly III directory. To make sure that the webserver can run Firefly, run the following commands:
sudo chown -R www-data:www-data /var/www/firefly-iii sudo chmod -R 775 /var/www/firefly-iii/storage
Now you should be able to visit http://localhost/firefly-iii/public and see Firefly.
3. Accessing Firefly
Browsing to site
Browsing to the site should be easy. You should see a login screen. If you see empty pages, or “Whoops” errors, open the
.env file again and change
true. Also change
debug. This will give you some insight in what is happening. If you don’t know what to do, open an issue and I will help you.
Stuff not working? See this page!
Registering an account
You cannot login yet. Click on “Register a new account” and fill in the form.
Your first accounts
You will be logged in automatically. Follow the instructions and you are done!
Is it not working? Check out the FAQ!