View Single Post

  #3 (permalink)  
Old 12-13-2006, 07:59 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,103
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