Category Archives: FreeBSD

OCSinventory install on FreeBSD – Apache-DBI error

some ports depend on apache 1.3 and die with error :

Error from bsd.apache.mk. apache20 is installed (or APACHE_PORT is defined) and port requires 1.3.

solution :

make install WITH_MODPERL2=yes

FreeBSD – reload nginx configuration

test the config !!!

sudo nginx -t

output :

2009/04/23 09:11:46 [info] 46329#0: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
2009/04/23 09:11:46 [info] 46329#0: the configuration file /usr/local/etc/nginx/nginx.conf was tested successfully

then reload :

sudo kill -HUP `cat /var/run/nginx.pid`

Limit account number in qmailadmin

you can do this by creating ( or editing ) /var/vpopmail/domains/domainname/.qmailadmin-limits , the below code will limit all settings to 30 accounts per feature.

maxpopaccounts: 30
maxaliases: 30
maxforwards: 30
maxautoresponders: 30
maxmailinglists: 30

Fix mod_rewrite erros in apache

change :


RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]

To this:


RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 0

as described here

Centos5: nfs clients get premission denied

While working on ny NFS cluster project , I could not mount my nfs exports from clients ( FreBSD & Centos ).

on the FreeBSD client I got these responses :
[udp] server:/data/dir1: Permission denied
on the CentOS client I got these responses:
mount: server:/data/dir1 failed, reason given by server: Permission denied

On the Centos NFS server the logs showed :
mountd[12377]: authenticated mount request from client1:984 for /data/dir1 (/data/dir1)

Turns out there’s a bug in CentOS and modprobe does not mount the nfsd procs , you can fix the issue by adding :

none /proc/fs/nfsd nfsd auto 0 0

to /etc/fstab
or manually ( if you want to make sure that is the issue ) :

/bin/mount -t nfsd nfsd /proc/fs/nfsd