Ivan Tomica

Tag: FreeBSD

Total 22 Posts

Nested Tmux

Ever wanted to have tmux session inside of tmux session? Don’t know how to control the one inside of current tmux session? Easily: Ctrl+b Ctrl+b COMMAND So basically, you need to send your prefix twice. You can also use: Ctrl+b+b COMMAND

My Tmux configuration

I’ve spent some time tweaking and playing around with my .tmux.conf. If you’re interested in how I did it or search for some inspiration you can find my configuration at the bottom of this post. I’ll briefly explain and showcase some of the options throughout the article. To reload config

Continue Reading

Installing PostgreSQL in FreeBSD jail

To install and run PostgreSQL in FreeBSD jail you’ll need to enable allow.sysvipc system tuneable on that specific jail: List jails: jls Note jail ID and use following command to enable it for that running jail: jail -m jid=JAILID allow.sysvipc=1 This can also be accomplished by changing ezjail jail configuration

Continue Reading

Redis as PHP session handler on FreeBSD

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://” If you’re using password for logging into redis you would specify it like: php_value[session.save_path] = “tcp://”

Continue Reading

Enable PHP mail() in FreeBSD

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

Continue Reading

FreeBSD jails – localhost IP

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.