Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

FreeBSD 11 Jail using Nginx Installation

Erez Zabusky   ( User )

Commented 5 years ago

Hi All "New to this forum"


Trying to instal Akaunting in a FreeBSD 11 Jail using Nginx. Getting FatalErrotException FileSessionHandler.php..


Your kind assistance is greatly appreciated.














1/1) FatalErrorException


Interface 'SessionHandlerInterface' not found


in FileSessionHandler.php line 10

Erez Zabusky   ( User )

Commented 5 years ago

FYI copy of nginx.conf


 


user  www;


worker_processes  16; #No. of processors


error_log /var/log/nginx/error.log info;


 


events {


    worker_connections  1024;


}


 


http {


    include       mime.types;


    default_type  application/octet-stream;


 


    access_log /var/log/nginx/access.log;


 


    sendfile        on;


    keepalive_timeout  65;


 


    server {


        listen       80;


        server_name 10.135.89.11;


        root /usr/local/www/akaunting;


        index index.php index.html index.htm;


 


        location / {


            try_files $uri $uri/ =404;


        }


 


        error_page      500 502 503 504  /50x.html;


        location = /50x.html {


            root /usr/local/www/nginx-dist;


        }


 


        location ~ \.php$ {


                try_files $uri =404;


                fastcgi_split_path_info ^(.+\.php)(/.+)$;


                fastcgi_pass unix:/var/run/php-fpm.sock;


                fastcgi_index index.php;


                fastcgi_param SCRIPT_FILENAME $request_filename;


                include fastcgi_params;


        }


    }


}


 

Erez Zabusky   ( User )

Commented 5 years ago

SOLVED


Require following packages php70-session php70-json php70-filter 

Denis Dulici   ( Admin )

Commented 5 years ago

Thanks for sharing the solution Erez, truly appreciated.

Erez Zabusky   ( User )

Commented 5 years ago

After setup screen if can not connect to database then ,missing below package. Installing it solves the issue:


 pkg install php70-pdo_mysql

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions