LinuxQuestions.org
Review your favorite Linux distribution.
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 04-20-2001, 12:51 PM   #1
bughunter
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Rep: Reputation: 0
Question


I'm doing some virtual hosting on my site. As I make changes to the httpd.conf file, I want to stop and start httpd instead of rebooting the server.

The Linux books I have say to use kill -TERM 'cat /var/www...httpd.pid'

When I do that, I get a ">" cursor, so I'm not sure if the command worked or what to do next.

I've read about parent and child processes, but from what I can tell, kill -TERM is what I need to do.

Question:
1) What's the syntax to stop httpd and start it again?
2) How do I verify it stopped (and started)?
3) What's the ">" prompt asking for?
 
Old 04-25-2001, 08:20 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
You should be able to do an 'apachectl restart' to restart the webserver. You could also use the init script if the distro you are using is Sys V.
 
Old 05-01-2001, 09:42 AM   #3
bughunter
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Original Poster
Rep: Reputation: 0
"apachectl restart" didn't work. All I get is another > prompt. What does this mean?
 
Old 10-20-2001, 10:02 AM   #4
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
try this

http://www.linuxquestions.org/questi...?threadid=7317
 
  


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
Stopping X server from starting up Graham_UK Fedora 4 04-19-2005 02:39 PM
stopping httpd bato Slackware 2 02-18-2005 04:47 PM
stopping and starting net Tinku Linux - Networking 1 08-04-2004 08:58 AM
Stopping X from starting KennyK Linux - Software 4 06-03-2003 08:12 PM

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

All times are GMT -5. The time now is 04:34 PM.

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