FreeBSD Apache HTTP Accept Filter Error FreeBSD上的Apache的HTTP接受过滤器的错误
When Apache web server is starting up in FreeBSD system, Apache loads succcessfully and web server functioning properly, but the following warning error occurs:当Apache网络服务器是开始了在FreeBSD的系统,阿帕奇负荷succcessfully和Web伺服器运作正常,但下面的警告发生错误:
[warn] (2)No such file or directory: [警告] ( 2 )没有这样的文件或目录:
Failed to enable the ‘httpready’ Accept Filter失败,使' httpready '接受过滤器
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:该决议对上述问题是一个accf_http模块,功能是缓冲传入的连接,直到某一个完整的HTTP请求到达,进入FreeBSD的内核使用内核链接:
kldload accf_http kldload accf_http
To permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http), add the following line into /boot/loader.conf:永久负荷启用HTTP接受过滤器FreeBSD的内核模块( accf_http ) ,添加下面一行到/开机/ loader.conf :
accf_http_load=”YES” accf_http_load = “是”
Note: The default settings is located in /boot/defaults/loader.cnf.注意:默认设置,是设在/开机/预设/ loader.cnf 。 To see the related settings about accf, use:看到相关的设置约accf ,请使用:
grep accf /boot/defaults/loader.conf grep accf /开机/预设/ loader.conf
which will returns:这将返回:
accf_data_load=”NO” # Wait for data accept filter accf_data_load = “没有” #等待数据接受过滤器
accf_http_load=”NO” # Wait for full HTTP request accept filter accf_http_load = “没有” #等待充分HTTP请求接受过滤器
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。
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安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第4部分
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第5部分
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept :异步acceptex失败错误在Apache日志
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第3部分
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache的地位(的WHM服务器的地位)在网页主机的cPanel经理回报的空白页
- cPanel WHM Failed to Receive Status Information From Apache Error的cPanel的WHM没有收到状态信息从Apache的错误
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files开始的Apache的httpd失败,由于无法打开,或没有这样的mod_bwlimited , mod_log_bytes或mod_bandwidth档案
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start阿帕奇警告namevirtualhost * : 80没有virtualhosts时发生错误开始
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time自动关机和重新启动的Apache的httpd服务的守护进程在预设时间
- Subversion (SVN) Issues and Problems on mod_dav_svn in FreeBSD颠覆( svn )问题和困难就mod_dav_svn在FreeBSD上
















May 14th, 2006 20:52 2006年5月14日20时52分
Thanks for posting this article, it saved me alot of time tracking down that error message.感谢发布此文章,它救了我很多的时间追踪错误讯息。
–Chris -克里斯
May 19th, 2006 10:02 2006年5月19日10时02分
ditto.同上。 Good job.做好。 Its quite difficult getting information on this one.其相当困难得到这方面的资料1 。 thanks again.再次感谢。
Bruce布鲁斯
June 10th, 2006 01:17 2006年6月10日1时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).不过,我不想运行的httpd ,以root的身份,出于安全原因, (它不是一个Web服务器只是一个svn服务器) 。 If I switch to a non privlaged user this error comes back.如果我切换到一个非privlaged用户这个错误回来。 Do I have to turn request buffering off?我要反过来要求缓冲小康?
September 6th, 2006 11:23 2006年9月6日11时23分
thanks!谢谢!
October 25th, 2006 00:58 2006年10月25日0时58分
TY very much for the info, resolved my issue性十分信息,解决我的问题
November 18th, 2006 02:56 2006年11月18日2时56分
[...] Faça uma visita rápida ao My Digital Life… [...] [ … … ] faça授予游览快速登入敖我的数码生活… [ … … ]
January 23rd, 2007 16:44 2007年1月23日16时44分
thankz a lot thankz了很多
April 1st, 2007 22:23 2007年4月1日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.这是唯一的文章指出, Google的匹配为httpready接受过滤器的问题。
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.对于那些谁,你要运行的Apache作为非root ,请确保您设置pidfile和lockfile属性,在您的httpd.conf文件到某个目录,你非root帐户也可以撰写的。
April 29th, 2007 07:18 2007年4月29日7时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” [...] [ … … ] FreeBSD上的Apache的HTTP接受过滤器的错误»我的数字生活或目录:失败,使' httpready '接受滤波器/开机/ loader.conf : accf_http_load = “是” [ … … ]
May 16th, 2007 12:57 2007年5月16日12时57分
[...] Courtesy § [...] [ … … ]礼貌§ [ … … ]
May 27th, 2007 21:38 2007年5月27日21时38分
thanks alot, it’s save my work !感谢了很多,它的储存我的工作!
May 31st, 2007 19:22 2007年5月31日19时22分
big tx德克萨斯州大
July 9th, 2007 18:00 2007年7月9日18时
[...] is loaded on subsequent reboots (by adding it to the “loader.conf” file). [ … … ]是装上以后重新启动(添加到“ loader.conf ”档案) 。 Thanks to My Digital Life too.感谢我的数字生活过。 Posted in Apache, [...]张贴在Apache , [ … … ]
November 7th, 2007 23:07 2007年11月7日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: -加入/开机/ loader.conf将使永久的改变,但是,如果你喜欢测试这种变化在没有重新启动系统,您可以运行此: -
# kldload accf_http# kldload accf_httpYou can see that it’s been loaded by doing: -您可以看到它的被装做: -
# kldstat# kldstatId Refs Address Size Name编号参地址大小名称1 5 0xc0400000 6f6544 kernel1月5日0xc0400000 6f6544内核2 1 0xc41f6000 2000 accf_http.ko <-- you just loaded this module!2月1日0xc41f6000 2000年accf_http.ko < -你刚才加载此模块!You can now restart Apache and see that your previous error is no longer.现在,您可以重新启动Apache和看到您以前的错误不再。
December 4th, 2007 09:57 2007年12月4日9时57分
and if you have your apache running如果你有你的Apache运行
in a jail, and wish not to touch the在一个监狱,并希望不要触摸
host, what would you recommend?东道国,你会怎样建议呢?
December 29th, 2007 13:57 2007年12月29日13时57分
awesome, thank you for fixing this problem !!可怕,谢谢你修正此问题!
May 11th, 2008 11:50 2008年5月11日11时50分
thank you thank you !谢谢,谢谢! So happy that you posted this fix !因此,高兴的是,你发布的此修复程序!
July 11th, 2008 15:26 2008年7月11日15时26分
You’re a genious!!你是一个天才! Solved in 5 minutes instead of 5 hours.解决了在5分钟而不是5个小时。
July 12th, 2008 02:32 2008年7月12日02:32
[...] “[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter” error when starting apache with FreeBSD. [ … … ] “ [警告] ( 2 )没有这样的文件或目录:失败,使' httpready '接受过滤器”时发生错误开始的Apache与FreeBSD的。 Fix is here.修补程序是在这里。 [...] [ … … ]
July 16th, 2008 17:59 2008年7月16日17时59分
rc.d script for apache now manage this kernel module rc.d脚本的Apache现在管理这个内核模块
Just add刚才添加
apache22_http_accept_enable=”YES” apache22_http_accept_enable = “是”
to your rc.conf您的rc.conf
August 7th, 2008 20:13 2008年8月7日20时13分
[...] [ … … ] http://www.mydigitallife.info/2006/04/23/freebsd-apache-http-accept-filter-error/ [...] [ … … ]
August 8th, 2008 13:27 2008年8月8日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”我刚买了一台新的监狱在FreeBSD 7.0 ,并安装了Apache ,我得到了错误的时候开始的Apache ,所以我试图按照意见,在这里,但是当我试图加入这一行accf_http_load = “是”
to /boot/loader.conf /开机/ 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我尝试运行挂载命令,使文件的读取/ writalbe ,但我得到
fstab: /etc/fstab:0: No such file or directory fstab :了/ etc / fstab : 0 :没有这样的文件或目录
Am I missing fstab file?我失踪的fstab文件? How do I edit the file?我要如何编辑文件?
Thanks,谢谢,