nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Linux command to restart apache

This is a discussion on Linux command to restart apache within the Linux software forums, part of the Linux Getting Started category; hai how do i restart apache under fedora core? I just forgot command...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-13-2006, 07:39 PM
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default Linux command to restart apache

hai

how do i restart apache under fedora core? I just forgot command
__________________
There's no place like 127.0.0.1
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-13-2006, 07:44 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Restart httpd/apache fc/rhel
Code:
service httpd restart
Start httpd/apache fc/rhel
Code:
service httpd stop
Stop httpd/apache fc/rhel
Code:
service httpd start
u can also run /etc/init.d/httpd restart script
Code:
/etc/init.d/httpd restart
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote
  #3 (permalink)  
Old 12-13-2006, 07:59 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Since you have not specified your Linux distro; here are other ways

Apache 2 under Debian Linux
Code:
/etc/init.d/apache2 restart
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
Apache 2 under Ubuntu Linux
Code:
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
Good old UNIX way... send HUP single to Apache2 (works under OpenBSD, Any linux disto, Solaris and other unix oses )
Code:
kill -HUP `cat /var/run/httpd.pid`
OR
Code:
kill -HUP $(cat /var/run/httpd.pid)
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


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 On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux create self signed ssl certificate for Apache httpd server raj Getting started tutorials 0 05-05-2007 02:23 AM
Howto Restart inetd Ubuntu Linux raj Getting started tutorials 0 03-20-2007 09:36 PM
solaris restart sshd Solaris/OpenSolaris 2 01-20-2007 09:18 AM
ubuntu linux start, stop, restart networking toor Linux software 3 07-17-2006 12:32 PM
restart the ssh service goku1 Linux software 1 12-23-2005 12:19 AM


All times are GMT +5.5. The time now is 10:37 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36