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.
Related Articles
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page
- cPanel WHM Failed to Receive Status Information From Apache Error
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time
- Subversion (SVN) Issues and Problems on mod_dav_svn in FreeBSD

































May 14th, 2006 20:52
Thanks for posting this article, it saved me alot of time tracking down that error message.
–Chris
May 19th, 2006 10:02
ditto. Good job. Its quite difficult getting information on this one. thanks again.
Bruce
June 10th, 2006 01:17
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?
September 6th, 2006 11:23
thanks!
October 25th, 2006 00:58
TY very much for the info, resolved my issue
November 18th, 2006 02:56
[...] Faça uma visita rápida ao My Digital Life… [...]
January 23rd, 2007 16:44
thankz a lot
April 1st, 2007 22:23
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.
April 29th, 2007 07:18
[...] 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” [...]
May 16th, 2007 12:57
[...] Courtesy § [...]
May 27th, 2007 21:38
thanks alot, it’s save my work !
May 31st, 2007 19:22
big tx
July 9th, 2007 18:00
[...] is loaded on subsequent reboots (by adding it to the “loader.conf” file). Thanks to My Digital Life too. Posted in Apache, [...]
November 7th, 2007 23:07
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.
December 4th, 2007 09:57
and if you have your apache running
in a jail, and wish not to touch the
host, what would you recommend?
December 29th, 2007 13:57
awesome, thank you for fixing this problem !!
May 11th, 2008 11:50
thank you thank you ! So happy that you posted this fix !
July 11th, 2008 15:26
You’re a genious!! Solved in 5 minutes instead of 5 hours.
July 12th, 2008 02:32
[...] “[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter” error when starting apache with FreeBSD. Fix is here. [...]
July 16th, 2008 17:59
rc.d script for apache now manage this kernel module
Just add
apache22_http_accept_enable=”YES”
to your rc.conf
August 7th, 2008 20:13
[...] http://www.mydigitallife.info/2006/04/23/freebsd-apache-http-accept-filter-error/ [...]
August 8th, 2008 13:27
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,