./confingure --prefix=/usr/local/apache22
make
make install
root@fb10:/var/tmp/httpd-2.2.31 # /usr/local/apache22/bin/apachectl -k start
httpd: Could not reliably (可靠的) determine(决定 ) the server's fully (充分)qualified(合格) domain name, using 218.205.57.154 for ServerName
[Wed Feb 10 22:36:37 2016] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[Wed Feb 10 22:36:37 2016] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[Wed Sep 17 22:01:58 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
How do I fix this error?
A.FreeBSD has special driver called accf_http. It will buffer incoming
connections until a certain complete HTTP requests arrive to speed up
and optimize performance.
The utility of accf_http is such that a
server will not have to context switch several times before performing
the initial parsing of the request. This effectively reduces the amountof required CPU utilization to handle incoming requests by keeping
active processes in preforking servers such as Apache low and reducing
the size of the file descriptor set that needs to be managed by
interfaces such as select(), poll() or kevent() based servers.
Just open shell prompt and type the following command to load accf_http under FreeBSD :
# kldload accf_http
Restart apache:
# /usr/local/etc/rc.d/apache22 restart Update /boot/loader.conf file
Type the following command so that driver get loaded at the time of booting system:
# echo 'accf_http_load="YES"' >> /boot/loader.conf
vi /usr/local/apache22/conf/httpd.conf
修改 ServerName 192.168.17.135:80
root@fb10:/usr/ports/lang/php5 # make install
===> Installing for php5-5.4.43
===> php5-5.4.43 depends on shared library: libpcre.so - found (/usr/local/lib/libpcre.so)
===> php5-5.4.43 depends on shared library: libxml2.so - found (/usr/local/lib/libxml2.so)
===> Checking if php5 already installed
===> Registering installation for php5-5.4.43
Installing php5-5.4.43...
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/bin/php
/usr/local/bin/php-cgi
/usr/local/sbin/php-fpm
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/php-fpm
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.php.net/
root@fb10:/usr/ports/lang/php5 #