RE: [PHP] webserver restart,
| From: | Bjorn Sodergren | Date: | Wed, 05 Jul 2000 23:24:19 +0000 |
| Subject: | RE: [PHP] webserver restart, | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5101@lists.php.net to get a copy of this message | ||
i want to do the same thing, for a webhost server interface. but it would be
crazy to have apache restarting every 5 minutes. so i thought a cronjob
check for errors and if none, restart every 3 hours would be more
practical...
if you want to restart apache, you can use a setuid C program, just write a
wrapper that has suexec like checking..
check out the suexec.c and suexec.h files in your apache/src/support
directory.
> -----Original Message-----
> From: Jason [mailto:jasonc@webpipe.net]
> Sent: Wednesday, July 05, 2000 2:18 PM
> To: Ken N; php-general@lists.php.net
> Subject: RE: [PHP] webserver restart,
>
>
> You could use the C solution but then the executable could be run
> by anyone
> on the server and that wouldn't be a good thing. Why exactly
> would you want
> to restart the webserver from the web?
>
> jason
>
> > -----Original Message-----
> > From: Ken N [mailto:kenn@pcintelligent.com]
> > Sent: Wednesday, July 05, 2000 9:09 AM
> > To: Jason
> > Cc: php-general@lists.php.net
> > Subject: RE: [PHP] webserver restart,
> >
> >
> > No, I want to restart from the script. and the script runs as
> the user the
> > webserver runs as, see what I mean.
> >
> > Thanks
> > Ken N
> >
> > http://cleveland.lug.net/~rocket/
> >
> > The answer is simple if you grant that ironies are like submarines;
> > dangerous only when submerged.
> >
> >
> > On Wed, 5 Jul 2000, Jason wrote:
> >
> > > Are you restarting the webserver from the command line? Try
> > > /path/to/apache/bin/apachectl restart.
> > >
> > > Jason
> > >
> > > > -----Original Message-----
> > > > From: Ken N [mailto:kenn@pcintelligent.com]
> > > > Sent: Wednesday, July 05, 2000 8:47 AM
> > > > To: php-general@lists.php.net
> > > > Subject: [PHP] webserver restart,
> > > >
> > > >
> > > > Does anyone know how to restart a web server after I make
> > changes to the
> > > > httpd.conf file? I have heard that you can write a shell
> > script and then
> > > > make a little C program that calls it and have the C program
> > run setuid. I
> > > > I was wondering if there is a better way and if there isn't is this
> > > > insecure?
> > > >
> > > > Thanks
> > > > Ken
> > > >
> > > > http://cleveland.lug.net/~rocket/
> > > >
> > > > The answer is simple if you grant that ironies are like submarines;
> > > > dangerous only when submerged.
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > > For additional commands, e-mail: php-general-help@lists.php.net
> > > > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> > > >
> > > >
> > >
> > >
> > > _______________________________________________________
> > > Site Design, Hosting, and E-Commerce at www.webpipe.net
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> _______________________________________________________
> Site Design, Hosting, and E-Commerce at www.webpipe.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>