Originally Posted by Tinkster
Add the apache user to sudoers, and grant him the right to execute exactly that
I did exactly that:
www-data ALL: NOPASSWD /etc/init.d/dhcp3-server restart
The error I get is that it can't kill the process id since is running by root. I even changed the ownership to www-data to /var/run/dhcp.pid file and that still can't kill the process and run the new configuration.
Any other idea?