Hi all. I am still somewhat of a newbie at this, so my apologies if this question doesn't make too much sense.
Having run Nmap, I noticed that my port 80 is open. I understand that this is probably apache / httpd. Having googled a bit on this, The general advice appears to be to stop the http daemon. Trying "httpd stop" doesn't appear to do anything, as port 80 is still open afterwards. Trying "service httpd stop" tells me that "service" command is not found.
I am quite clearly doing something wrong. Any ideas?
To stop httpd:
To disable it at startup:
The service command is used with SysV style boot. Slackware uses BSD Style init, which is a little different. All your startup scripts are in /etc/rc.d/ . They are well commented, so reading through them will give you some understanding how they work :D
chmod -x /etc/rc.d/rc.httpd
/etc/rc.d/rc.httpd stop generates this error:
-bash: /etc/rc.d/rc.httpd: permission denied
which is a bit odd, as I am logged in as root.
also, if I go to /etc/rc.d and then try "rc.httpd stop" I get a command not found error, rather than the same permission denied error. Is there a difference between /etc/rc.d/rc.httpd stop, and actually going to /etc/rc.d and then trying rc.httpd stop?
"it's a steep learning curve!"
try and stop httpd deamon with
When specifying a program/scripts/whatever executable which is not in your path you'll need to specify the full path or when you're in the directory where this program/whatever is to specify ./programname (a ./ before it) .
Don't know what causes http to refuse to stop, you could try to kill it with brute force :D
Repeat the command if necessary. That should do it I guess :)
-k is aparently an invalid option. (and isn't listed when I do httpd -h) what difference should this option have made?
killall -9 httpd That killed it!
Thanks for the information about the language of linux. I am still battling my way through an online tutorial for the basics of GNU/Linux OS... aparently I haven't got that far yet!
Dave I think that if you do
chmod -x rc.httpd
I think it will not start after a reboot.
I think if you do a killall -9 httpd it just kills it for now but it might restart after a reboot.
Watch out for that if you are worried but it.