Show pageBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== FireFly ====== ===== Installation ===== ==== PHP 7.2 ==== ${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 ==== Composer ==== ${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 ===== Setup ===== ==== Locale ==== $ sudo apt-get install -y language-pack-en-base $ sudo locale gen ==== Database ==== See [[selfhosted:mysql|MySQL]] to: - install - create user - create databases - grant user privileges to the databases - 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 ==== Nginx ==== See [[selfhosted:nginx|Nginx]] to: - install - 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:28by hli