View previous topic :: View next topic |
Author |
Message |
scrllock Tux's lil' helper
Joined: 14 Oct 2002 Posts: 102
|
Posted: Sun Jan 19, 2003 11:23 pm Post subject: apache (port in use) |
|
|
k, i just emerge apache, php, mod_php and mod_ssl. When I start apache it says that the modules have already been loaded and that the port (443) is already in use. |
|
Back to top |
|
|
Exci Apprentice
Joined: 12 Jul 2002 Posts: 265 Location: The Netherlands, Zoetermeer
|
Posted: Mon Jan 20, 2003 1:25 am Post subject: |
|
|
try a 'netstat -vnl' and see what service is listening on that port.
and look into 'ps -auxf' maybe apache is already running ? |
|
Back to top |
|
|
scrllock Tux's lil' helper
Joined: 14 Oct 2002 Posts: 102
|
Posted: Mon Jan 20, 2003 9:46 am Post subject: |
|
|
netstat -vnl
Code: |
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
netstat: no support for `AF IPX' on this system.
netstat: no support for `AF AX25' on this system.
netstat: no support for `AF X25' on this system.
netstat: no support for `AF NETROM' on this system.
|
ps -auxf
Code: |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 1352 252 ? S Jan19 0:04 init
root 2 0.0 0.0 0 0 ? SW Jan19 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SWN Jan19 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? SW Jan19 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? SW Jan19 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? SW Jan19 0:00 [kupdated]
root 9 0.0 0.0 0 0 ? SW Jan19 0:00 [khubd]
root 28 0.0 0.8 1732 532 ? S Jan19 0:00 /sbin/devfsd /dev
root 673 0.0 0.5 1412 336 ? S Jan19 0:00 metalog [MASTER]
root 676 0.0 0.3 1376 196 ? S Jan19 0:00 \_ metalog [KERNEL]
root 843 0.0 0.9 2728 580 ? S Jan19 0:00 /usr/sbin/sshd
root 4863 0.0 2.6 6032 1616 ? S 05:44 0:00 \_ /usr/sbin/sshd
root 4866 0.0 2.1 2280 1344 pty/s0 S 05:44 0:00 \_ -bash
root 4934 0.0 1.1 2648 712 pty/s0 R 05:47 0:00 \_ ps -auxf
root 875 0.0 0.4 1484 304 ? S Jan19 0:00 /usr/sbin/cron
root 887 0.0 0.3 1336 192 vc/2 S Jan19 0:00 /sbin/agetty 38400 tty2 linux
root 888 0.0 0.3 1336 192 vc/3 S Jan19 0:00 /sbin/agetty 38400 tty3 linux
root 889 0.0 0.3 1336 192 vc/4 S Jan19 0:00 /sbin/agetty 38400 tty4 linux
root 890 0.0 0.3 1336 192 vc/5 S Jan19 0:00 /sbin/agetty 38400 tty5 linux
root 891 0.0 0.3 1336 192 vc/6 S Jan19 0:00 /sbin/agetty 38400 tty6 linux
root 4237 0.0 0.3 1336 192 vc/1 S Jan19 0:00 /sbin/agetty 38400 tty1 linux
|
and just for fun, what happens when i start apache.
Code: |
* Starting apache...
[Mon Jan 20 05:46:19 2003] [warn] module php4_module is already loaded, skipping
[Mon Jan 20 05:46:19 2003] [warn] module ssl_module is already loaded, skipping
[Mon Jan 20 05:46:19 2003] [warn] module mod_php4.c is already added, skipping
[Mon Jan 20 05:46:19 2003] [warn] module mod_ssl.c is already added, skipping
[Mon Jan 20 05:46:19 2003] [warn] _default_ VirtualHost overlap on port 443, the first has precedence [ ok ]
|
|
|
Back to top |
|
|
Praxxus Apprentice
Joined: 26 Nov 2002 Posts: 193 Location: Indiana, US
|
Posted: Tue Jan 21, 2003 5:50 pm Post subject: |
|
|
You've got some problems in your apache configuration file, it looks like. Have yo looked in there? _________________ My glaucoma just got worse! |
|
Back to top |
|
|
forumboy n00b
Joined: 21 Feb 2003 Posts: 8
|
Posted: Thu Mar 27, 2003 3:32 am Post subject: |
|
|
Hi,
I have the same problem exactly like u, then i found out its because i run the ebuild /var/db/pkg/.............ebuild config more than 1 time. Thus, it add multiples "load module/include config" lines into /etc/apache/conf/apache.conf. Go into the apache.conf, remove/comment out those duplicate line, then do /etc/init.d/apache restart and now you should able to start apache and lynx localhost should work. |
|
Back to top |
|
|
caffiend n00b
Joined: 26 Mar 2003 Posts: 48 Location: Oakland, CA
|
Posted: Thu Mar 27, 2003 2:06 pm Post subject: |
|
|
Quote: | [Mon Jan 20 05:46:19 2003] [warn] _default_ VirtualHost overlap on port 443, the first has precedence |
what this means is that you have multiple vhosts defined to listen on port 443. If Apache gets a connection request on 443 for a server that isn't configured in your httpd.conf (say someone just does https://your.ip.here/ ) it will serve up the first one that it finds in httpd.conf.
These are all just warning messages, does the server not actually run? |
|
Back to top |
|
|
|