: This article mainly introduces errors frequently encountered by FreeBSD when running apache. For more information about PHP tutorials, see. Errors frequently encountered by FreeBSD when running apache
Wolf @ http://blog.csdn.net/xiaolangyangyang
1. error:
No such file or directory: Failed to enable the 'httpready' Accept Filter
Solution:/etc/rc. conf
accf_data_load="YES"accf_http_load="YES"apache22_enable="YES"apache22_http_accept_enable="YES"
Restart the computer.
2. error:
Address already in use: make_sock: cocould not bind to address [:]: 80
Address already in use: make_sock: cocould not bind to address 0.0.0.0: 80
No listening sockets available, shutting down
Unable to open logs
Solution 1:
FreeBSD_fuwuqi2 # ps-aux | grep "httpd"
Root 1345 0.0 0.7 15992 6912 ?? Ss PM. 19/usr/local/sbin/httpd
Www 1388 0.0 0.7 15992 6932 ?? I PM. 01/usr/local/sbin/httpd
Www 1389 0.0 0.7 15992 6932 ?? I PM. 00/usr/local/sbin/httpd
Www 1390 0.0 0.7 15992 6932 ?? I PM. 00/usr/local/sbin/httpd
Www 1391 0.0 0.7 15992 6932 ?? I PM. 01/usr/local/sbin/httpd
Www 1392 0.0 0.7 15992 6932 ?? I PM. 01/usr/local/sbin/httpd
Root 1613 0.0 0.1 9748 1216 0 R + PM. 00 grep httpd
FreeBSD_fuwuqi2 # kill 1392
FreeBSD_fuwuqi2 # kill 1391
FreeBSD_fuwuqi2 # kill 1390
FreeBSD_fuwuqi2 # kill 1389
FreeBSD_fuwuqi2 # kill 1388
FreeBSD_fuwuqi2 # kill 1345
FreeBSD_fuwuqi2 #/usr/local/apache/bin/apachectl-k start
Solution 2:
FreeBSD_fuwuqi2 # sockstat-41
FreeBSD_fuwuqi2 # kill ......
FreeBSD_fuwuqi2 #/usr/local/apache/bin/apachectl-k start
The above describes the errors frequently encountered by FreeBSD when running apache, including related content, and hope to help those who are interested in PHP tutorials.