[geeks] More netbsd sillines
Greg A. Woods
woods at weird.com
Wed Feb 20 22:50:22 CST 2002
[ On Wednesday, February 20, 2002 at 22:52:16 (-0500), Joshua D Boyd wrote: ]
> Subject: [geeks] More netbsd sillines
>
> Sorry to keep bugging you all, but I really am not that well schooled in
> system administration, especially on non-linux OSs.
>
> So, I installed a default NetBSD installation on an SS2. Then I installed
> perl, python, rp-pppoe, and apache. Now, I'm trying to make apache actually
> work.
>
> Now, I do the apachectl start command, and then I can see httpd in the output
that should probably be "/etc/rc.d/apache start".... just to be pedantic....
> from ps aux, but when I try to connect to the web server, I can't connect.
I'll bet it's not listening on port#80. IIRC the default is something
stupid like 8080.
Login as root.
Find the process that's still running as root. (ps -auxc | grep 'root.*httpd')
Run "fstat -p PID" to find out what ports it's listening on.
# ps -auxc | grep 'root.*http'
root 267 0.0 0.7 1000 584 ?? Ss 20Oct01 8:04.53 httpd
# fstat -p 267
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W
root httpd 267 wd / 2 drwxr-xr-x 512 r
root httpd 267 0 / 19862 crw-rw-rw- null r
root httpd 267 1 / 19862 crw-rw-rw- null w
root httpd 267 2 /var 31747 -rw-r--r-- 1382775 w
root httpd 267 15 /var 31747 -rw-r--r-- 1382775 w
root httpd 267 16* internet stream tcp c08b1220 *:443
root httpd 267 17* internet stream tcp c08b12d4 *:80
root httpd 267 18 /var 31748 -rw-r--r-- 23716 w
root httpd 267 19 /var 49638 -rw------- 0 w
root httpd 267 20 /var 31749 -rw-r--r-- 1898509 w
root httpd 267 21 /var 31749 -rw-r--r-- 1898509 w
root httpd 267 22 /var 31750 -rw-r--r-- 2647 w
root httpd 267 23 /var 49640 -rw------- 0 w
In the above FD#16 and FD#17 are the sockets connections are being
accepted on. As you can see they're on port #'s 443 and 80. That's
HTTPS and HTTP of course. You'll only see "*:80" unless you're starting
an SSL enabled & configured server.
> See the log after the .sig to see what I mean.
What about the httpd log(s)? /var/log/httpd/* maybe....
--
Greg A. Woods
+1 416 218-0098; <gwoods at acm.org>; <g.a.woods at ieee.org>; <woods at robohack.ca>
Planix, Inc. <woods at planix.com>; VE3TCP; Secrets of the Weird <woods at weird.com>
More information about the geeks
mailing list