FreeBSD Apache HTTP Accept Filter Error

When Apache web server is starting up in FreeBSD system, Apache loads succcessfully and web server functioning properly, but the following warning error occurs:

[warn] (2)No such file or directory:
Failed to enable the ‘httpready’ Accept Filter

The resolution to the above problem is to a accf_http module, which function is to buffer incoming connections until a certain complete HTTP requests arrive, into FreeBSD kernel by using kernel linker:

kldload accf_http

To permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http), add the following line into /boot/loader.conf:

accf_http_load=”YES”

Note: The default settings is located in /boot/defaults/loader.cnf. To see the related settings about accf, use:

grep accf /boot/defaults/loader.conf

which will returns:

accf_data_load=”NO” # Wait for data accept filter
accf_http_load=”NO” # Wait for full HTTP request accept filter

Share and contribute or get technical support and help at My Digital Life Forums.



22 Responses to “FreeBSD Apache HTTP Accept Filter Error”

  1. Chris
    May 14th, 2006 20:52
    1

    Thanks for posting this article, it saved me alot of time tracking down that error message.
    –Chris

  2. Bruce
    May 19th, 2006 10:02
    2

    ditto. Good job. Its quite difficult getting information on this one. thanks again.

    Bruce

  3. Mark Mieczkowski
    June 10th, 2006 01:17
    3

    Thanks for the tip. However, I don’t want to run httpd as root, for security reasons (it’s not a web server just a svn server). If I switch to a non privlaged user this error comes back. Do I have to turn request buffering off?

  4. me
    September 6th, 2006 11:23
    4

    thanks!

  5. Trey Hunsucker
    October 25th, 2006 00:58
    5

    TY very much for the info, resolved my issue ;)

  6. Erro do Apache HTTP Filter
    November 18th, 2006 02:56
    6

    [...] Faça uma visita rápida ao My Digital Life… [...]

  7. kiki
    January 23rd, 2007 16:44
    7

    thankz a lot :)

  8. Kean Lau
    April 1st, 2007 22:23
    8

    Thanks! That saved me probably a few hours of trouble shooting. This is the ONLY article that Google matched for the httpready accept filter problem.

    For those of you who want to run Apache as non-root, make sure that you set the PidFile and LockFile attributes in your httpd.conf to a directory that you non-root account can write to.

  9. links for 2007-04-28 « PaxoBlog
    April 29th, 2007 07:18
    9

    [...] FreeBSD Apache HTTP Accept Filter Error » My Digital Life or directory: Failed to enable the ‘httpready’ Accept Filter /boot/loader.conf: accf_http_load=”YES” [...]

  10. rakhesh, deblogged » Blog Archive » FreeBSD: “httpready” errors
    May 16th, 2007 12:57
    10

    [...] Courtesy § [...]

  11. haizum
    May 27th, 2007 21:38
    11

    thanks alot, it’s save my work ! :)

  12. mig
    May 31st, 2007 19:22
    12

    big tx :)

  13. Just a bunch of notes … » FreeBSD “httpready” errors
    July 9th, 2007 18:00
    13

    [...] is loaded on subsequent reboots (by adding it to the “loader.conf” file). Thanks to My Digital Life too. Posted in Apache, [...]

  14. ChrisP
    November 7th, 2007 23:07
    14

    Adding to /boot/loader.conf will make the change permanent, but if you fancy testing this change out without rebooting your system, you can run this: -


    # kldload accf_http

    You can see that it’s been loaded by doing: -


    # kldstat
    Id Refs Address Size Name
    1 5 0xc0400000 6f6544 kernel
    2 1 0xc41f6000 2000 accf_http.ko <-- you just loaded this module!

    You can now restart Apache and see that your previous error is no longer.

  15. joe
    December 4th, 2007 09:57
    15

    and if you have your apache running
    in a jail, and wish not to touch the
    host, what would you recommend?

  16. theorem
    December 29th, 2007 13:57
    16

    awesome, thank you for fixing this problem !!

  17. theorem
    May 11th, 2008 11:50
    17

    thank you thank you ! So happy that you posted this fix !

  18. johan
    July 11th, 2008 15:26
    18

    You’re a genious!! Solved in 5 minutes instead of 5 hours.

  19. Aaron Martinez » Blog Archive » Failed to enable the ‘httpready’ Accept Filter
    July 12th, 2008 02:32
    19

    [...] “[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter” error when starting apache with FreeBSD. Fix is here. [...]

  20. Lenine
    July 16th, 2008 17:59
    20

    rc.d script for apache now manage this kernel module
    Just add
    apache22_http_accept_enable=”YES”
    to your rc.conf

  21. Apache, PHP, Mysql i Zend Framework | Putešestvije moje
    August 7th, 2008 20:13
    21

    [...] http://www.mydigitallife.info/2006/04/23/freebsd-apache-http-accept-filter-error/ [...]

  22. BD
    August 8th, 2008 13:27
    22

    I just got a new jail on FreeBSD 7.0, and installed apache, I got the error when starting apache, so I tried to follow the advice here, but when I tried to add this line accf_http_load=”YES”

    to /boot/loader.conf

    I got this error: Read-only file system.

    I tried to run the mount command to make the file read/writalbe, but I got
    fstab: /etc/fstab:0: No such file or directory

    Am I missing fstab file? How do I edit the file?

    Thanks,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

failed to enable the 'httpready' accept filter - No such file or directory: Failed to enable the 'httpready' Accept Filter - [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - Failed to enable the \'httpready\' Accept Filter - Failed to enable the 'httpready' Accept Filter - No such file or directory: Failed to enable the \'httpready\' Accept Filter - httpready Accept Filter - (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - No such file or directory: Failed to enable the 'httpready' Accept Filter - )No such file or directory: Failed to enable the 'httpready' Accept Filter - Failed to enable the 'httpready' Accept Filter - 'httpready' Accept Filter - "Failed to enable the 'httpready' Accept Filter" - failed to enable the httpready accept filter - accf_http_load - [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - [warn] (2)No such file or directory: Failed to enable the \'httpready\' Accept Filter - "No such file or directory: Failed to enable the 'httpready' Accept Filter" - freebsd httpready - [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - kldload accf_http - failed to enable httpready accept filter - apache httpready - (2)No such file or directory: Failed to enable the \'httpready\' Accept Filter - httpready freebsd - Failed to enable the 'httpready' Accept Filter - Freebsd Failed to enable the 'httpready' Accept Filter - )No such file or directory: Failed to enable the 'httpready' Accept Filter - )No such file or directory: Failed to enable the \'httpready\' Accept Filter - (2)No such file or directory: Failed to enable the 'httpready' Accept Filter - apache No such file or directory: Failed to enable the 'httpready' Accept Filter - Failed to enable the \'httpready\' Accept Filter - httpready filter - the 'httpready' Accept Filter - httpready' Accept Filter - apache httpready accept filter - freebsd accf_http - no such file or directory failed to enable the httpready Accept Filter - "Failed to enable the \'httpready\' Accept Filter" - 2)No such file or directory: Failed to enable the 'httpready' Accept Filter - accf_http_load="YES" - o such file or directory: Failed to enable the 'httpready' Accept Filter - freebsd apache httpready - Accept Filter - no such file or directory: failed to enable the httpready accept filter - No such file or directory: Failed to enable the 'httpready' - kldload accf_http - failed to enable httpready - apache Failed to enable the 'httpready' Accept Filter -