Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > port 80

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-20-2005   #1 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 8
port 80

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?

thanks.

David.
fastandfurryous is offline  



Reply With Quote
Old 01-20-2005   #2 (permalink)
Linux Enthusiast
 
puntmuts's Avatar
 
Join Date: Dec 2004
Location: Republic Banana
Posts: 562
To stop httpd:
Code:
/etc/rc.d/rc.httpd stop
To disable it at startup:
Code:
chmod -x /etc/rc.d/rc.httpd
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
__________________
I\'m so tired .....
#200472
puntmuts is offline   Reply With Quote
Old 01-20-2005   #3 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 8
/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!"

David.
fastandfurryous is offline   Reply With Quote
Old 01-20-2005   #4 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
try and stop httpd deamon with
Code:
httpd -k stop
or sometimes
Code:
httpd2 -k stop
dylunio
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 01-20-2005   #5 (permalink)
Linux Enthusiast
 
puntmuts's Avatar
 
Join Date: Dec 2004
Location: Republic Banana
Posts: 562
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
Code:
killall -9 httpd
Repeat the command if necessary. That should do it I guess
__________________
I\'m so tired .....
#200472
puntmuts is offline   Reply With Quote
Old 01-20-2005   #6 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 8
-k is aparently an invalid option. (and isn't listed when I do httpd -h) what difference should this option have made?

David.
fastandfurryous is offline   Reply With Quote
Old 01-20-2005   #7 (permalink)
Just Joined!
 
Join Date: Jan 2005
Posts: 8
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!

thanks.

David.
fastandfurryous is offline   Reply With Quote
Old 01-21-2005   #8 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
Dave I think that if you do
as root
cd /etc/rc.d
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.

Mike
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:56 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1