Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
I made a simple mod_perl change to the config and when restarting Apache I got this error:killall httpd
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:2250
no listening sockets available, shutting down
/usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault $HTTPD $ARGV
I then backed out the change and retried, got the same error.
then try it again :)
httpd was not running and I have been running Apache 2x with mod_perl 1.99x for over two months now. It started with a problem I traced to env. var $ENV{HTTP_ACCEPT}. I figured out that I needed PerlOptions +SetupENV. So I added this, stopped and tried to start Apache. That's when I got this shock.
The 'top' output is : 3:38am up 8 days, 22:58, 1 user, load average: 0.00, 0.00, 0.00In other words there's an Apache still running when you're trying to start a second one which wants to listen on the same socket that the first Apache is already listening on. That isn't permitted.
But you shouldn't be getting segmentation faults in that case so
something else is probably wrong too. Did you build from source? Did you follow the instructions in the Guide? Linux? 1.3.27/1.27?
DSO? Maybe you can post the information requested in the docs?
73, Ged.
22 processes: 21 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.0% user, 0.3% system, 0.0% nice, 99.6% idle
Mem: 970768K av, 212504K used, 758264K free, 7852K shrd, 98668K buff
Swap: 530104K av, 3216K used, 526888K free 88104K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 16688 kairanga 10 0 996 996 800 R 0.3 0.1 0:00 top 1 root 0 0 76 64 48 S 0.0 0.0 0:10 init 2 root 0 0 0 0 0 SW 0.0 0.0 0:00 kflushd 3 root 8 0 0 0 0 SW 0.0 0.0 34:03 kupdate 4 root 0 0 0 0 0 SW 0.0 0.0 9:07 kswapd 5 root 0 0 0 0 0 SW 0.0 0.0 0:00 keventd 57 root 0 0 232 232 0 S 0.0 0.0 0:00 rc.M 77 root 2 0 272 272 160 S 0.0 0.0 2:20 syslogd 80 root 0 0 640 640 128 S 0.0 0.0 0:00 klogd 82 root 0 0 368 324 220 S 0.0 0.0 0:04 sshd 86 root 6 0 336 336 240 S 0.0 0.0 0:00 crond 93 root 2 0 692 488 292 S 0.0 0.0 0:03 sendmail 100 root 0 0 2352 1708 936 S 0.0 0.1 0:07 poprelayd 102 root 0 0 2668 1248 292 S 0.0 0.1 0:00 miniserv.pl 104 root 0 0 220 168 148 S 0.0 0.0 0:00 inetd 105 root 0 0 184 184 0 S 0.0 0.0 0:00 safe_mysqld 127 mysql 0 0 2384 2384 1364 S 0.0 0.2 0:00 mysqld 129 mysql 0 0 2384 2384 1364 S 0.0 0.2 0:00 mysqld 130 mysql 0 0 2384 2384 1364 S 0.0 0.2 0:00 mysqld 16316 root 0 0 1284 1268 1124 S 0.0 0.1 0:00 sshd 16318 kairanga 0 0 1364 1352 1208 S 0.0 0.1 0:00 sshd 16319 kairanga 3 0 1240 1240 964 S 0.0 0.1 0:00 bash
There has been no change to Apache httpd.conf other than the addition of PerlOptions +SetupEnv which I commented out anyway.
How can I get a list of ports being used so I can kill the processes? As far as I can tell httpd is not running. The IP is 208.179.25.28
I dont see any apparent signs of hacking either.