title: Trying to create a new application in Yii: env: php: No such file or directory
body: <p>I'm trying to create a new yii app from the terminal. My YiiRoot folder is in my htdoc folder. I'm first going into my webroot:</p>
  
  <pre><code>$ cd /Applications/MAMP/htdocs
  </code></pre>
  
  <p>I'm then going into yiic and trying to create a new application:</p>
  
  <pre><code>/Applications/MAMP/htdocs/YiiRoot/framework/yiic webapp demo
  </code></pre>
  
  <p>I'm then getting this message:</p>
  
  <pre><code>env: php: No such file or directory
  </code></pre>
  
  <p>I've also tried:</p>
  
  <pre><code>cd /Applications/MAMP/htdocs/YiiRoot/framework
  yiic webapp /Applications/MAMP/htdocs
  -bash: yiic: command not found
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>cd /Applications/MAMP/htdocs/YiiRoot/framework 
  ./yiic webapp /Applications/MAMP/htdocs
   No such file or directory
  </code></pre>
  
  <p>And:</p>
  
  <pre><code> cd /Applications/MAMP/htdocs/YiiRoot/framework 
   php yiic webapp /Applications/MAMP/htdocs
   -bash: php: command not found
  </code></pre>
  
  <p>And: </p>
  
  <pre><code> cd /Applications/MAMP/htdocs/YiiRoot/framework 
   php yiic.php webapp /Applications/MAMP/htdocs
   -bash: php: command not found
  </code></pre>
  
  <p>I'm completely out of ideas. Any advice please?</p>