LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-14-2007, 01:34 AM   #1
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Question Restarting Apache Server


Hi,

I'm on CentOS 4.5 box and installed/configure two Apache server running on different ports ie (80 and 8080). They are working fine but when using the command "service httpd restart" or "/etc/init.d/httpd restart" will restart Apache running on port 80 but killed Apache running on port 8080. I do not want to touch Port 8080 Apache while need frequent reload/restart of Port 80 Apache.

Now I'm using following command to restart Apache running on Port 80.

/usr/sbin/apachectl stop
/usr/sbin/apachectl start

I'm using the above commands in perl script. Its working fine but not every time. Sometimes Apache didnt restarted.

Can anyone please give me any hint or a better way to restart the Apache service running on different port?

Thanks
 
Old 12-14-2007, 02:46 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,159

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Send it "HUP" - thought I'd seen it documented on the Apache site.
 
Old 12-14-2007, 03:54 AM   #3
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Original Poster
Rep: Reputation: 15
Hi syg00,

Thanks for your reply, can you plz explain a little bit further as how can I send the right HUP signal to Apache for a restart?
 
  


Reply

Tags
apache, different, port



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
problem restarting apache merrsh1 Debian 3 06-04-2007 06:44 AM
Restarting apache fof3 Linux - Newbie 2 07-22-2006 10:01 PM
Apache keeps restarting with DaemonTools humbletech99 Linux - Networking 4 11-14-2005 10:51 AM
Starting and Restarting the Apache service. johann519 Fedora 6 02-05-2004 11:00 PM
restarting Apache Xiled Linux - Networking 7 10-09-2001 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:27 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