On new FreeBSD server, it is found that all domains say unlimited web space available. So i tryed to fix it with /scripts/fixquotas but it says support for QUOTA need to be enable in the Kernel.
To enable this we have to rebuild kernel with
options QUOTA
Next you will need to enable disk quotas in /etc/rc.conf. This is done by adding the line:
enable_quotas=”YES”
To enable quotas on a file system, add the userquota and groupquota option to the options field in the /etc/fstab entry for the file system you want to enable quotas on. For example:
/dev/da1s2g /home ufs rw,userquota,groupquota 2 2
To verify quota is set, run the command
quota -v
Rebuilding Kernel
cd /usr/src/sys/i386/conf
cp GENERIC SERVER20
Now edit the file SERVER20 and added
options QUOTA
Now building Kernel
config SERVER20
cd ../compile/SERVER20
make depend
make
make install
reboot the server.
Now uname -a shows new kernel
$ uname -a
FreeBSD server20.hosthat.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun Sep 18 06:46:40 GMT 2005 [email protected]:/usr/src/sys/i386/compile/SERVER20 i386
$
$ quota -v
Disk quotas for user ltct-0107 (uid 1002):
Filesystem usage quota limit grace files quota limit grace
/home 28 0 0 14 0 0
/usr 0 0 0 0 0 0
$
To enable Quotas in Cpanel run
/scripts/initquotas
One Response to Compiling FreeBSD Kernel with QUOTA for Cpanel