Код: Выделить всё
SKTV# ./apache21.sh start
Starting apache21.
[Tue Oct 16 18:21:20 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
![Twisted Evil :twisted:](./../images/smilies/spiteful.gif)
![Confused :?](./../images/smilies/icon_confused.gif)
Код: Выделить всё
SKTV# ./apache21.sh start
Starting apache21.
[Tue Oct 16 18:21:20 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
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
забей.XliN писал(а):Что за ошибка?Код: Выделить всё
SKTV# ./apache21.sh start Starting apache21. [Tue Oct 16 18:21:20 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
![]()
Код: Выделить всё
[Tue Oct 16 18:21:20 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 16 18:21:20 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "SKTV"
Configuration Failed
Код: Выделить всё
[Tue Oct 16 18:21:20 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Код: Выделить всё
SKTV# cat 1
Listen 80
LoadModule authn_file_module libexec/apache21/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache21/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache21/mod_authn_anon.so
LoadModule authn_default_module libexec/apache21/mod_authn_default.so
LoadModule authz_host_module libexec/apache21/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache21/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache21/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache21/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache21/mod_authz_owner.so
LoadModule authz_default_module libexec/apache21/mod_authz_default.so
LoadModule auth_basic_module libexec/apache21/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache21/mod_auth_digest.so
LoadModule file_cache_module libexec/apache21/mod_file_cache.so
LoadModule cache_module libexec/apache21/mod_cache.so
LoadModule disk_cache_module libexec/apache21/mod_disk_cache.so
LoadModule include_module libexec/apache21/mod_include.so
LoadModule filter_module libexec/apache21/mod_filter.so
LoadModule charset_lite_module libexec/apache21/mod_charset_lite.so
LoadModule deflate_module libexec/apache21/mod_deflate.so
LoadModule log_config_module libexec/apache21/mod_log_config.so
LoadModule logio_module libexec/apache21/mod_logio.so
LoadModule env_module libexec/apache21/mod_env.so
LoadModule mime_magic_module libexec/apache21/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache21/mod_cern_meta.so
LoadModule expires_module libexec/apache21/mod_expires.so
LoadModule headers_module libexec/apache21/mod_headers.so
LoadModule usertrack_module libexec/apache21/mod_usertrack.so
LoadModule unique_id_module libexec/apache21/mod_unique_id.so
LoadModule setenvif_module libexec/apache21/mod_setenvif.so
LoadModule ssl_module libexec/apache21/mod_ssl.so
LoadModule mime_module libexec/apache21/mod_mime.so
LoadModule dav_module libexec/apache21/mod_dav.so
LoadModule status_module libexec/apache21/mod_status.so
LoadModule autoindex_module libexec/apache21/mod_autoindex.so
LoadModule asis_module libexec/apache21/mod_asis.so
LoadModule info_module libexec/apache21/mod_info.so
LoadModule cgi_module libexec/apache21/mod_cgi.so
LoadModule dav_fs_module libexec/apache21/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache21/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache21/mod_negotiation.so
LoadModule dir_module libexec/apache21/mod_dir.so
LoadModule imagemap_module libexec/apache21/mod_imagemap.so
LoadModule actions_module libexec/apache21/mod_actions.so
LoadModule speling_module libexec/apache21/mod_speling.so
LoadModule userdir_module libexec/apache21/mod_userdir.so
LoadModule alias_module libexec/apache21/mod_alias.so
LoadModule rewrite_module libexec/apache21/mod_rewrite.so
LoadModule fastcgi_module libexec/apache21/mod_fastcgi.so
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
ServerName 192.168.1.222
DocumentRoot "/usr/local/www/html/"
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
UserDir www
</IfModule>
UserDir www
<Directory "/home/*/www">
AllowOverride None
Options Indexes
Order deny,allow
Allow from All
</Directory>
<Directory "/usr/local/www/cgi-bin/">
AllowOverride None
Options ExecCGI
Order Allow,Deny
Allow from All
</Directory>
<Directory "/usr/local/www/html/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Код: Выделить всё
SKTV# ps -ax | grep apache21
78085 p2 S+ 0:00.00 grep apache21
Код: Выделить всё
# LoadModule ssl_module libexec/apache21/mod_ssl.so
Код: Выделить всё
# LoadModule unique_id_module libexec/apache21/mod_unique_id.so
Код: Выделить всё
/etc/hosts
Код: Выделить всё
ifconfig
Код: Выделить всё
/etc/resolf.conf
Код: Выделить всё
/var/log/messages
Код: Выделить всё
/var/log/httpd-error.log
Код: Выделить всё
./var/log/httpd-ssl_request.log
Код: Выделить всё
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
Код: Выделить всё
</IfModule>
Код: Выделить всё
cat >> /boot/loader.conf
#для апача,шоб при рестарте не ругался
accf_http_load="YES"
Ctrl+<D>
Код: Выделить всё
kldload accf_http.ko