Home  >  Article  >  Backend Development  >  Common errors encountered when FreeBSD runs apache

Common errors encountered when FreeBSD runs apache

WBOY
WBOYOriginal
2016-08-08 09:29:551302browse

FreeBSD errors often encountered 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 computer.

2. Error:

Address already in use: make_sock: could not bind to address [::]:80

Address already in use: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

The first solution:

freeBSD_fuwuqi2# ps -aux | grep "httpd"

root 1345 0.0 0.7 15992 6912 ?? Ss 9:07PM 0:00.19 /usr/local/sbin/httpd

www 1388 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/httpd

www 1389 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.00 /usr/local/sbin/httpd

www 1390 0.0 0.7 15992 6932 ??

www 1391 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/httpd

www 1392 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/ httpd

root 1613 0.0 0.1 9748 1216 0 R+ 9:10PM 0:00.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

Second solution:

freeBSD_fuwuqi2# sockstat - 41

freeBSD_fuwuqi2# kill ……

freeBSD_fuwuqi2# /usr/local/apache/bin/apachectl -k start

The above introduces the errors often encountered when running apache on FreeBSD, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn