Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2003, 10:19 PM   #1
LQ Newbie
Registered: Jan 2003
Distribution: redhat
Posts: 2

Rep: Reputation: 0
Angry disabling httpd

Please Help.

I am new to linux Os.

I have a linux box that is on a LAN and also allows dial-in.

I want to disable the httpd from running on my linux box and also prevent double logging( a user logging twice from different machine at the same time).

Old 01-30-2003, 11:02 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
Depending on what distro your using, find the rc script usually in /etc/rc.d and either remove or edit the file httpd starts with. To manually stop it running you can do a as root:

apachectl stop
Old 01-31-2003, 08:51 AM   #3
LQ Newbie
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Debian
Posts: 16

Rep: Reputation: 2
As trickykid said disabling a service is somewhat distribution dependent but the command
  rm /etc/rc?.d/S??httpd
  rm /etc/rc?.d/S??apache
ougth to do it. It will also suffice to rename the file(s) instead of removing them. In that case you want to change the capital S to something else; e.g. a low case s.

Disabling multiple log in is a bit trickier as this is not a normal thing to do; one trick could be to check if the user is already logged in with the help of the `who` command in the users .profile file and then force an exit. Why do you wnat to do it?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/ bijuhpd Linux - Newbie 1 10-30-2005 06:07 PM
Disabling DHCP gatamah Linux - Networking 7 11-04-2004 12:19 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM
disabling httpd adun Linux - Networking 1 01-30-2003 11:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration