title: Symfony project deployement on OVH
body: <p>I'm trying to deploy a Rest API on OVH. I devlopped it with symfony2.</p>
  
  <p>everything was working on my local server but on OVH server, i have dificulties to use "composer update".</p>
  
  <p>Fisrt i modified ".bashrc" to add "alias php5='php.ORIG.5_4 -c /usr/local/lib/php.ini-2'"</p>
  
  <p>but when i use "php5 composer.phar update" it returns:</p>
  
  <pre><code>Loading composer repositories with package information
  Updating dependencies (including require-dev)
  - Removing jms/serializer-bundle (1.0.0)
  - Installing jms/serializer-bundle (1.1.0)
  Downloading: 100%         
  
  Writing lock file
  Generating autoload files
  &gt; Incenteev\ParameterHandler\ScriptHandler::buildParameters
  Updating the "app/config/parameters.yml" file
  &gt; Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
  X-Powered-By: PHP/4.4.9
  Content-type: text/html
  
  &lt;br /&gt;
  &lt;b&gt;Parse error&lt;/b&gt;:  syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in &lt;b&gt;/home/findexpocq/Rest/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php&lt;/b&gt; on line &lt;b&gt;13&lt;/b&gt;&lt;br /&gt;
  Script
  Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-update-cmd event terminated with an exception
  
  
  
  [RuntimeException]                                     
  An error occurred when generating the bootstrap file.  
  
  
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--] [&lt;packages&gt;]...
  
  
  X-Powered-By: PHP/5.4.38
  Content-type: text/html
  
  Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
  </code></pre>
  
  <p>i don't know why buildBootstrap runs PHP 4 </p>
  
  <p>Thanks for your help</p>