Restart BIND from a php script

From: Date: Mon, 16 Sep 2002 00:52:37 +0000
Subject: Restart BIND from a php script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116481@lists.php.net to get a copy of this message
Not sure how to go about this. I'd like a way to restart bind from a php script I have. The biggest problems I have are permission related. Calling exec(), system() or using popen() all fail due to the permissions. I tried making a suid bash script that did the same thing and this failed too. Seems like it failed to set itself suid root while being called from the php script. Finally I tried make a suid C prog to restart bind and then calling that from a php script but that fails too. Any ideas? Thanks Gareth Ps. My partition is not mounted nosuid either.

« previous php.general (#116481) next »