This one is quite simple to be honest. Assuming you have Redis already installed and set up correctly you can just change your php-fpm pool definition to include: php_value[session.save_handler] = redis php_value[session.save_path] = “tcp://127.0.0.1:6379” If you’re using password for logging into redis you would specify it like: php_value[session.save_path] = “tcp://127.0.0.1:6379?auth=PASSWORD”
Instead of adding all IP addresses statically to your server via host’s /etc/rc.conf file you may instead leave them out and specify them on per-jail basis. That way when Jail is started IP address gets assigned to specific network interface, and when it is shut down it disappears from that
On FreeBSD top(1) utility, although having much less command line switches and options is in fact much more powerful than one that comes with your favorite Linux distribution. Maybe one day I decide to publish an in depth write up about it but until that day comes here’s one hint.
On FreeBSD 11 sendmail is not enabled by default. Also by default, php configuration (php.ini) has sendmail binary configured for sending email so using mail() within your PHP application may not work. To resolve that you need to enable sendmail which you can do with: # sysrc sendmail_enable=”YES” sendmail_enable: NO
So, app was connecting from jail’s public IP to the MySQL and that didn’t worked since I had user created like: USER@localhost Instead of: USER@% or USER@JAILIP And that got me confused badly. I would like to thank Mark for clarification.