View Single Post
  #3   (View Single Post)  
Old 12th November 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

First do a syntax test with apachectl
Code:
apachectl configtest
Read the fine apachectl man page to find out what it will report if there are no syntax errors.

The standard configuration of /var/www/conf/httpd.conf already enables a Listen on port 80 and port 443
Code:
$ grep -in listen /var/www/conf/httpd.conf 
182:# Listen: Allows you to bind Apache to specific IP addresses and/or
186:#Listen 3000
187:#Listen 12.34.56.78:80
191:# is used to tell the server which IP address to listen to. It can either
193:# See also the <VirtualHost> and Listen directives.
302:# Port: The port to which the standalone server listens. For
310:##  When we also provide SSL we have to listen to the 
314:Listen 80
315:Listen 443
So I wonder why you needed to add such a directive
If you want to use a specific IP address then add the port specification as shown in line 187.

Next step is to check whether Apache is actually LISTENing
Code:
$ netstat -an -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp        0      0  *.80                   *.*                    LISTEN
tcp        0      0  *.6000                 *.*                    LISTEN
tcp        0      0  127.0.0.1.587          *.*                    LISTEN
tcp        0      0  127.0.0.1.25           *.*                    LISTEN
tcp        0      0  *.22                   *.*                    LISTEN
tcp        0      0  *.515                  *.*                    LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp        0      0  192.168.222.20.7184    83.96.227.85.123      
udp        0      0  192.168.222.20.11292   213.239.154.12.123    
udp        0      0  192.168.222.20.35727   94.75.205.140.123     
udp        0      0  192.168.222.20.4769    194.109.64.200.123    
udp        0      0  192.168.222.20.15905   213.10.47.241.123     
udp        0      0  *.514                  *.*
BTW I am assuming you are using the default Apache which is in the OpenBSD base systall, not an Apache 2 installed with a package

Did you follow the message given by the install of the PHP package? This tells you what to modify in httpd.conf.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote