Apache Won't Work In FreeBSD

djdrastic

Senior member
Dec 4, 2002
441
0
0
Hu guys , I'm struggling to get Apache2 to work in FreeBSD 5.0 .I've installed it before , and got it to work easily but it doesn't want to seem to budge this time . I maked and maked installed th thing and installed flawlessly , but when I run apachectl I can't do any http requests to the server :eek::(

Can anyone maybe help me on the right track with this one ?
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
1.) after running "apachectl start" do a "ps -auxf" to see if the webserver processes are running

2.) if not, check the error log. Depending on how you installed it could be anywhere. Try a "locate error_log".
 

djdrastic

Senior member
Dec 4, 2002
441
0
0
Thanx for the Help , Buddha

The Process actually runs , and I experimented yesterday by adding another port to which apache serves the document (8080) and it worked , but the moment it goes over the normal port 80 it just refuses to work.

Any Tips you could give me ?
Thanks For All the Help You've given Me :0
 

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
Are you testing locally to be sure there isn't a firewall blocking you or your isp dropping inbound traffic on port 80?

Try this on the system to see if apache is listening: "netstat -an -p tcp |grep 80" and you should see something like:
tcp4 0 0 *.80 *.* LISTEN

If so apache is listening on port 80. Give us a little more detail, are you behind a router, are you trying to access this from the lan behind the router with it, are you accessing it via its address on the lan, or the address of the router, is there no router at all, when you say it refuses to work are you getting an error message or what exactly isn't working.
 

djdrastic

Senior member
Dec 4, 2002
441
0
0
Woa ! Check the out put of this

netstat -an -p tcp | grep 80
tcp6 0 0 *.80 *.* LISTEN

free-bsd001# netstat -an -p tcp | grep 8080
tcp4 0 0 10.1.2.3.8080 *.* LISTEN

Why is TCP V4 only listening ??


The Pc is on a LAN , port 80 should be open since we have some other devices that use port 80 as well on the lan.
 

Poontos

Platinum Member
Mar 9, 2000
2,799
0
0
IPv6 capability must not be fully configured, this is why TCP6 only shows up in the first output.