LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-30-2003, 09:19 PM   #1
adun
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).

thanks.
Adun
 
Old 01-30-2003, 10:02 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 07:51 AM   #3
krakan
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
or
  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?
 
  


Reply



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/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
Disabling DHCP gatamah Linux - Networking 7 11-03-2004 11:19 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
disabling httpd adun Linux - Networking 1 01-30-2003 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

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