BSD

FreeBSD: 'httpready' AcceptFilter for Apache 2.2 error

To fix the error on FreeBSD, you need to load the accf_http kernel module

# kldload accf_http

# grep accf /boot/defaults/loader.conf
accf_data_load="NO" # Wait for data accept filter
accf_http_load="NO" # Wait for full HTTP request accept filter

add the second to /boot/loader.conf with 'YES' to enable permanently.

FreeBSD: apache suexec and portupgrade

Reference: http://lists.freebsd.org/pipermail/freebsd-questions/2004-June/048913.html

> Hi, I want to compile apache2 from ports with suexec.
> Yet there is no mention of it at all in the Make file.
>
> It is in Makefile.doc but i'm not sure if thats what i should beusing.
>
> Can someone fill me in please.

A brief look at www/apache2/Makefile.modules suggests that you just need to
specify "WITH_SUEXEC=yes" in the build environment. Makefile.modules gets
included from Makefile.

This should work:

# make WITH_SUEXEC=yes install

Or if you use portupgrade and friends,

# portinstall -M WITH_SUEXEC=yes www/apache2

FreeBSD: adduser.conf

Example:

# cat /etc/adduser.conf
homeprefix=/usr/home/www
defaultshell=/usr/local/bin/bash

Also, use "man adduser.conf" for more information.

FreeBSD without X11 for make or portupgrade

# export WITHOUT_X11=yes
# portupgrade -rR package_to_upgrade

Likely used for freetype2

FreeBSD bsdlabel (disklabel)

FreeBSD 6.x bsdlabel (disklabel)

To clear invalid or wacky disk labels and devices from /dev (devfs):

freebsd-dhcp# ls /dev/ad1*
/dev/ad1        /dev/ad1s1
freebsd-server# dd if=/dev/zero of=/dev/ad1 bs=512 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.000551 secs (929244 bytes/sec)
freebsd-server# ls /dev/ad1*
/dev/ad1
freebsd-server#

Then fdisk:

freebsd-server# fdisk -i /dev/ad1
******* Working on device /dev/ad1 *******
parameters extracted from in-core disklabel are:
cylinders=177536 heads=15 sectors/track=63 (945 blks/cyl)
    


Copyright © 1999-2008 Damond Choi. All rights reserved.
Syndicate content