Restart service via PHP
Posted: Tue Aug 25, 2009 5:47 am
Hello everyone,
Been bashing my head for the past two days on this... I'm nowhere near experienced to figure out how to do this from scratch so I've been searching for the past two days for this..
How can I restart a service (specially the squid service) via a PHP webpage? I know there are a lot of complications with permissions and commands - I'm not too fussed on the permission/security front, as this is a private project and won't be entering the real world
I've tried exec(service squid restart) but the error goes down to permissions there..
Any ideas?
Thanks!
lieb39
Been bashing my head for the past two days on this... I'm nowhere near experienced to figure out how to do this from scratch so I've been searching for the past two days for this..
How can I restart a service (specially the squid service) via a PHP webpage? I know there are a lot of complications with permissions and commands - I'm not too fussed on the permission/security front, as this is a private project and won't be entering the real world
I've tried exec(service squid restart) but the error goes down to permissions there..
Any ideas?
Thanks!
lieb39