Disabling pfsync0 pseudo-interface on FreeBSD

Often on FreeBSD servers you can see the pfsync0 pseudo-interface up:

[root@bsd ~]# ifconfig
...(skipped)
pfsync0: flags=0<> mtu 2020 
 syncpeer: 224.0.0.240 maxupd: 128

Unless you are running a pf firewall with redundancy, you won't need this, moreover on CPanel/WHM enabled servers, Cpanel sometimes tries ...

more…

Freebsd php-fpm fastcgi server init script

#!/bin/sh

# PROVIDE: phpfpm
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable php-fpm:
#
#phpfpm_enable="YES"
#
#

. /etc/rc.subr

name=phpfpm
rcvar=`set_rcvar`

command="/usr/local/sbin/php-fpm"
command_args=""
pidfile=/usr/local/logs/php-fpm.pid
required_files=/usr/local/etc/php-fpm.conf

# set defaults

phpfpm_enable=${phpfpm_enable:-"NO"}

start_cmd ...
more…

How to check SpamAssassin version

Quick one-liner for checking spamassassin version:

[root@server ~]# perl -MMail::SpamAssassin -e 'print $Mail::SpamAssassin::VERSION;'
3.002004
more…

Parallels decided to drop qmail?

While installing latest Parallels Plesk version (9.0), noticed an unusual option :) :

Different mailservers
16. (*) Qmail mailserver
17. ( ) Postfix mailserver

Could this be true, that Parallels finally decided to drop Qmail?
Now don't get me wrong, but qmail wasn't updated for 10 years already, and any additional feature ...

more…

Installing SVN server on FreeBSD

Quick installation of SVN on FreeBSD, access by svn:// protocol

portinstall subversion
mkdir /home/svn-repo
pw user add -n svn -u 3690 -d /home/svn-repo
chown svn:svn /home/svn-repo/
chsh -s /bin/false svn

Add to /etc/rc.conf:

svnserve_enable="YES"
svnserve_data="/home/svn-repo"
svnserve_user="svn"
svnserve_group="svn"

Start ...

more…