selfhosted:firefly

FireFly

${shell}:~$ wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
${shell}:~$ echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
${shell}:~$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
${shell}:~$ sudo apt-get install php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-xml php7.2-ldap php7.2-zip php7.2-simplexml php7.2-mbstring php7.2-mysql php7.2-fpm
${shell}:~$ sudo nano /etc/php/7.2/fpm/php.ini
  < /etc/php/7.2/fpm/php.ini >
    cgi.fix_pathinfo=0
${shell}:~$ sudo systemctl restart php7.2-fpm
${shell}:~$ composer create-project grumpydictator/firefly-iii --no-dev --prefer-dist firefly-iii 4.7.14
$ sudo apt-get install -y language-pack-en-base
$ sudo locale gen

See MySQL to:

  1. install
  2. create user
  3. create databases
  4. grant user privileges to the databases
  5. flush privileges
$ cd firefly-iii
$ sudo nano .env
  < .env >
      DB_CONNECTION=mysql
      DB_HOST=127.0.0.1
      DB_PORT=3306
      DB_DATABASE=firefly
      DB_USERNAME=fireflyuser
      DB_PASSWORD=firefly1234
## initialize database
$ php artisan migrate:refresh --seed
$ php artisan firefly:upgrade-database
$ php artisan firefly:verify
$ php artisan passport:install

See Nginx to:

  1. install
  2. configure and enable site
< /etc/nginx/sites-available/firefly >
  server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    root /var/www/html/firefly-iii/public;
    index index.php index.html index.htm;
    location / {
      try_files $uri $uri/ /index.php?$query_string;
      autoindex on;
      sendfile off;
    }
    location ~ \.php$ {
      include snippets/fastcgi-php.conf;
      fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }
    location ~ /\.ht {
      deny all;
    }
  }
  • selfhosted/firefly.txt
  • Last modified: 2023/07/02 18:28
  • by hli