You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Louis Northmore <Lo...@sonic-systems.co.uk> on 2002/04/26 12:00:52 UTC

simple question

A simple one!

I have a standard build of Redhat 7 (server)  How can i restart ther apache
server after I have made changes to httpd.conf?

All the help i have managed to find doesn't seem to be of any use!

Thanks in advance,

Louis Northmore

"..learning fast!"


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: simple question

Posted by Owen Boyle <ob...@bourse.ch>.
Matt Phelps wrote:
> 
> I've always used
> 
> /etc/rc.d/init.d/httpd restart
> 
> Be sure to be root when you do this.

To expand a little on this sound advice - RH7 has its own bundled apache
installation which is located in a way particular to RH7 (this is common
with most linux distros).

/etc/rc.d/init.d/httpd is a start-script - it is a shell script which is
executed when the server gets to a particular run-level during boot
(usually run level 3). If you look inside it, you will see that it is
similar to apachectl which is the apache control script which comes with
the standard apache distro.

In any case, what it does is to execute the apache binary. In RH7, I
think that is /etc/httpd or /usr/sbin/httpd. To check, do "ps -ef | grep
httpd" and see what is running. On linux, the useful command "locate
httpd" will show you where httpd is installed.

Personally, I always feel that the bundled apaches are quickly out of
date. I run SuSe7.2 and have stripped out the bundled apache (removing
the binary, config and start-script) then installed from source in the
canonical location (/usr/local/apache). Then I make a symbolic link
/etc/rc.d/rc3.d/S50apache -> /usr/local/apache/bin/apachectl which sets
up my start script and then my binary is /usr/local/apache/bin/httpd and
the config is /usr/local/apache/conf/httpd.conf and the logs go in
/usr/local/apache/logs and all's right under the sun.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: simple question

Posted by Peter Bayley <pe...@homer.com.au>.
Or even simpler:

    service httpd restart

Peter

----- Original Message -----
From: "Herb Stein" <he...@herbstein.com>
To: <us...@httpd.apache.org>
Sent: Friday, April 26, 2002 11:52 PM
Subject: Re: simple question


> ----- Original Message -----
> From: "Matt Phelps" <on...@netscape.net>
> To: <us...@httpd.apache.org>
> Sent: Friday, April 26, 2002 5:02 AM
> Subject: Re: simple question
>
>
> > I've always used
> >
> > /etc/rc.d/init.d/httpd restart
> >
> > Be sure to be root when you do this.
> >
> > --Matt Phelps
>
>
> Or /usr/local/apache/bin/apachectl restart
> (Use the path to wherever Apache was installed.)
>
> > Louis@sonic-systems.co.uk wrote:
> >
> > >A simple one!
> > >
> > >I have a standard build of Redhat 7 (server)  How can i restart ther
> apache
> > >server after I have made changes to httpd.conf?
> > >
> > >All the help i have managed to find doesn't seem to be of any use!
> > >
> > >Thanks in advance,
> > >
> > >Louis Northmore
> > >
> > >"..learning fast!"
> > >
> > >
> > >---------------------------------------------------------------------
> > >The official User-To-User support forum of the Apache HTTP Server
> Project.
> > >See <URL:http://httpd.apache.org/userslist.html> for more info.
> > >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >For additional commands, e-mail: users-help@httpd.apache.org
> >
> --
> Herb Stein
> The Herb Stein Group
> www.herbstein.com
> herb@herbstein.com
> 314 952-4601
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: simple question

Posted by Herb Stein <he...@herbstein.com>.
----- Original Message -----
From: "Matt Phelps" <on...@netscape.net>
To: <us...@httpd.apache.org>
Sent: Friday, April 26, 2002 5:02 AM
Subject: Re: simple question


> I've always used
>
> /etc/rc.d/init.d/httpd restart
>
> Be sure to be root when you do this.
>
> --Matt Phelps


Or /usr/local/apache/bin/apachectl restart
(Use the path to wherever Apache was installed.)

> Louis@sonic-systems.co.uk wrote:
>
> >A simple one!
> >
> >I have a standard build of Redhat 7 (server)  How can i restart ther
apache
> >server after I have made changes to httpd.conf?
> >
> >All the help i have managed to find doesn't seem to be of any use!
> >
> >Thanks in advance,
> >
> >Louis Northmore
> >
> >"..learning fast!"
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server
Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
>
--
Herb Stein
The Herb Stein Group
www.herbstein.com
herb@herbstein.com
314 952-4601




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: simple question

Posted by Louis Northmore <Lo...@sonic-systems.co.uk>.
Cheers Matt - Thanks a lot - Just getting into Linux and loving it!

L

-----Original Message-----
From: Matt Phelps [mailto:onelinuxguy@netscape.net]
Sent: 26 April 2002 11:03 AM
To: users@httpd.apache.org
Subject: Re: simple question


I've always used

/etc/rc.d/init.d/httpd restart

Be sure to be root when you do this.

--Matt Phelps

Louis@sonic-systems.co.uk wrote:

>A simple one!
>
>I have a standard build of Redhat 7 (server)  How can i restart ther apache
>server after I have made changes to httpd.conf?
>
>All the help i have managed to find doesn't seem to be of any use!
>
>Thanks in advance,
>
>Louis Northmore
>
>"..learning fast!"
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: simple question

Posted by Matt Phelps <on...@netscape.net>.
I've always used

/etc/rc.d/init.d/httpd restart

Be sure to be root when you do this.

--Matt Phelps

Louis@sonic-systems.co.uk wrote:

>A simple one!
>
>I have a standard build of Redhat 7 (server)  How can i restart ther apache
>server after I have made changes to httpd.conf?
>
>All the help i have managed to find doesn't seem to be of any use!
>
>Thanks in advance,
>
>Louis Northmore
>
>"..learning fast!"
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org