Code Monkey home page Code Monkey logo

install-firefly-iii-on-freenas's Introduction

Install-Firefly-iii-on-freenas

#steps taken to install Firefly-iii in Freenas 11.2 jail

This works on ubuntu-server18 vm with bhyve:

https://old.reddit.com/r/FireflyIII/comments/8thxuu/fireflyiii_on_ubuntu_server_1604lts_nginx_php72/

So... let's try one more time with nginx on FN 11.2

source: https://www.cyberciti.biz/faq/freebsd-install-nginx-webserver/

pkg install nano nginx php72 php72-extensions php72-ldap php72-gd php72-bcmath php72-intl php72-curl php72-mbstring php72-zip php72-openssl php72-zlib php72-fileinfo php72-pdo_mysql mariadb102-server

sysrc *_enable=YES

  • for all services, nginx, mysql-server, php-fpm

start services

set up db

mysql_secure_installation

    mysql_secure_installation
    mysql -u root -p 
    CREATE DATABASE firefly; 
    GRANT ALL ON firefly.* TO firefly@localhost IDENTIFIED BY 'your_password'; 
    \q

DONT THINK I NEED THIS_ MAYBE TRY WITHOUT

    nano /usr/local/etc/php/99-custom.ini

    display_errors=Off
    safe_mode=Off
    safe_mode_exec_dir=
    safe_mode_allowed_env_vars=PHP_
    expose_php=Off
    log_errors=On
    error_log=/var/log/nginx/php.scripts.log
    register_globals=Off
    cgi.force_redirect=0
    file_uploads=On
    allow_url_fopen=On
    sql.safe_mode=Off
    disable_functions=show_source, system, shell_exec, passthru, proc_nice, exec
    max_execution_time=60
    memory_limit=60M
    upload_max_filesize=2M
    post_max_size=2M
    cgi.fix_pathinfo=0
    sendmail_path=/usr/sbin/sendmail -email -t

cp -v /usr/local/etc/php.ini-production /usr/local/etc/php.ini

NGINX CONFIG: (put behind a proxy at some point???) - only lan no wan access atm

    server {
            listen 80 default_server;
            listen [::]:80 default_server;
            root /firefly-iii/public;
            index index.php index.html index.htm;
            server_name localhost;
            
            location / {
                    try_files $uri $uri/ /index.php?$query_string;
                    autoindex on;
                    sendfile off;
            }
  
            location ~ \.php$ {
            #include snippets/fastcgi-php.conf; - DOES NOT LIKE THIS LINE
            fastcgi_pass unix:/run/php/php7.2-fpm.sock;
            }
  
            location ~ /\.ht {
            deny all;
            }

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

composer create-project grumpydictator/firefly-iii --no-dev --prefer-dist firefly-iii 4.7.17.3

chown -R www:www firefly-iii

php artisan migrate:refresh --seed

php artisan passport:install

An error occurred. ----RATS----

install-firefly-iii-on-freenas's People

Contributors

stronics77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.