Archive for July, 2007

Add spam filtering for all users in Plesk

These two commands will enable SpamAssassin for all users on a Plesk 8 server:
# mysql -u admin -p`cat /etc/psa/.psa.shadow` psa
mysql> update mail set spamfilter = ‘true’ where postbox = ‘true’;
# /usr/local/psa/admin/bin/mchk –with-spam
Thanks to Sean R. for this one!

Disable X support in FreeBSD

Add to /etc/make.conf:
WITHOUT_X11=yes
USE_NONDEFAULT_X11BASE=yes

Installing Lighttpd + PHP + FastCGI on FreeBSD

With portinstall:
# portinstall lighttpd fcgi php5
Without portinstall:
# make -C /usr/ports/www/lighttpd all install clean
# make -C /usr/ports/www/fcgi all install clean
# make -C /usr/ports/lang/php5 all install clean
Add lighttpd_enable=”YES” to /etc/rc.conf, and uncomment the usual items in /usr/local/etc/lighttpd.conf to enable fastcgi.

Upgrading FreeBSD remotely

It can be best to upgrade FreeBSD in an offline state, but if you do it online, you can do it like this:
# csup -g -L 2 -h cvsup5.us.freebsd.org /usr/share/examples/cvsup/standard-supfile
# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel
# make installworld
# shutdown -r now

Importing existing keys and certificates into java keystore files

Making Java keystores at the same time as you create a CSR and key is pretty easy, but if you have a pre-made private key that you want to throw into a keystore, it can be difficult. However, follow these steps and you’ll ber done quickly!
Save the new certificate to server.crt and the new [...]