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
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
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3
- 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 2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1
- cPanel WHM Failed to Receive Status Information From Apache Error
- Request URL /server-status or 404 Page Not Found Apache Error
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager










































June 1st, 2009 02:48
Thanks mate, this helped
January 8th, 2009 20:09
Note for users in a FreeBSD jail:
since the jail doesn’t have it’s own kernel, and doesn’t have access to modify the host kernel, you will not be able to run the kldload accf_http command (or edit loader.conf).
(You should probably only get this error in teh first place if Apache2 isn’t running on the host machine.)
To solve, run the command (and edit loader.conf) on the host machine.
November 14th, 2008 17:12
[...] все – теперь загрузка apache происходит без ошибок. А вот – оригинальная статья по которой я это [...]
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,
August 7th, 2008 20:13
[...] http://www.mydigitallife.info/2006/04/23/freebsd-apache-http-accept-filter-error/ [...]
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
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 11th, 2008 15:26
You’re a genious!! Solved in 5 minutes instead of 5 hours.
May 11th, 2008 11:50
thank you thank you ! So happy that you posted this fix !
December 29th, 2007 13:57
awesome, thank you for fixing this problem !!
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?
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.
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, [...]
May 31st, 2007 19:22
big tx
May 27th, 2007 21:38
thanks alot, it’s save my work !
May 16th, 2007 12:57
[...] Courtesy § [...]
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” [...]
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.
January 23rd, 2007 16:44
thankz a lot
November 18th, 2006 02:56
[...] Faça uma visita rápida ao My Digital Life… [...]
October 25th, 2006 00:58
TY very much for the info, resolved my issue
September 6th, 2006 11:23
thanks!
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?
May 19th, 2006 10:02
ditto. Good job. Its quite difficult getting information on this one. thanks again.
Bruce
May 14th, 2006 20:52
Thanks for posting this article, it saved me alot of time tracking down that error message.
–Chris