Re: using exec to run a shell script
| From: | David Nicholson | Date: | Mon, 04 Aug 2003 22:19:05 +0000 |
| Subject: | Re: using exec to run a shell script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158200@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Mon, 4 Aug 2003 at
23:14, lines prefixed by '>' were originally written by you.
> Hello. I'm attempting to run the exec function to run a shell
script
> that
> will restart a service on my Red Hat server. The script says it
has
> failed
> shutting down and restarting the service everytime I run it from a
> browser.
> Any suggestions on why it might be failing? I can send more
details if
> needed.
I expect it is because the shell script is running with the
permissions as of webserver and your webserver does not have
permission to restart the service.
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Free PHP error handling script: www.phpmachine.com/error-handler
Professional Web Development by David Nicholson -
www.djnicholson.com
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/