Execute command with sudo via PHP
<p>I have scripts in <code>/etc/init.d/</code> that I use to control game servers and I would like to build a simple web interface to call those scripts. My sudoers file contains something like</p>

<pre><code>www-data ALL=(ALL) NOPASSWD: /etc/init.d/starbound start stop
</code></pre>

<p>When I execute <code>sudo /etc/init.d/starbound start</code> within PHP, nothing happens. Am I missing something? Trying to access paths my PHP user is not allowed to usually gives me the appropriate warnings at least.</p>