title: ant rebuilddb command fails - exec returned: 127
body: <p>When I'm executing the <code>ant rebuilddb</code> command on a project it seems that ant can't find the php executable. </p>
  
  <p>I get the following error:</p>
  
  <pre><code>Buildfile: /var/www/html/aac_test/build.xml
  
  rebuilddb:
   [exec] /usr/bin/env: php
   [exec] : File or Directory not found (translation by me from German to English)
  
  BUILD FAILED
  /var/www/html/aac_test/build.xml:83: exec returned: 127
  </code></pre>
  
  <p>In my build.xml there is the following in line 83</p>
  
  <pre><code>&lt;target name="rebuilddb" description="removes and recreates the database with default development data"&gt;
      &lt;exec dir="${server}" executable="bin/console" failonerror="true"&gt;
          &lt;arg value="cache:clear" /&gt;
      &lt;/exec&gt;
  ...
  </code></pre>
  
  <p>It should execute some symfony console commands.</p>
  
  <p>Where <code>which php</code> gives me <code>/usr/bin/php</code></p>
  
  <p>So my question is - Why ant can't find the php executable?</p>
  
  <p><strong>Notes:</strong></p>
  
  <p>My Dev OS in Vbox is Debian Jessi, php5-cli is installed and I need to type <code>php app/console somecommand</code> to run symfony console commands. It seems there is something broken with cli. All php5 components where removed, purged and reinstalled.</p>