Ivan Tomica

Category: Blog

Total 93 Posts

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.

Portscan with netcat

Recently I had to discover custom SSH port on the server so I needed to come up with a somewhat quick way to check for open ports on the server. To do that simplest and prettiest solution I’ve found was using netcat utility. As you can see by looking at

Continue Reading