SynHost
02-10-2003, 01:48 PM
Hi -
I need a method to have a PHP script (apache module, not external binary) restart Apache and Named - I've been able to make the script change some system files, but now it needs to restart Apache and Named - Note that this will not be on a hosting environment, the script owner has full and sole control over the server. I've tried reading up a bit about setuid and setgui wrappers but I'm not sure I really understand them - Plus most of them seem like they need PHP to be run as a binary. Could I just write a simple shell script that restarts both owner=root and use the sticky bit and then just use PHP's system?
Any input on this is appreciated.
Thanks,
Ben
I need a method to have a PHP script (apache module, not external binary) restart Apache and Named - I've been able to make the script change some system files, but now it needs to restart Apache and Named - Note that this will not be on a hosting environment, the script owner has full and sole control over the server. I've tried reading up a bit about setuid and setgui wrappers but I'm not sure I really understand them - Plus most of them seem like they need PHP to be run as a binary. Could I just write a simple shell script that restarts both owner=root and use the sticky bit and then just use PHP's system?
Any input on this is appreciated.
Thanks,
Ben
