title: Fixing requirements in Symfony2
body: <p>I've made a Symfony2 installation on my machine.</p>
  
  <p>When I check the requirements in my local url:</p>
  
  <pre><code>localhost/Symfony2/web/config.php
  </code></pre>
  
  <p>It says:</p>
  
  <blockquote>
    <p>MAJOR PROBLEMS</p>
    
    <p>Set the "date.timezone" setting in php.ini* (like Europe/Paris).</p>
    
    <p>RECOMMENDATIONS</p>
    
    <p>Set short_open_tag to off in php.ini*. </p>
    
    <p>Set magic_quotes_gpc to off in
    php.ini*.</p>
    
    <ul>
    <li>Changes to the php.ini file must be done in "/etc/php5/apache2/php.ini".</li>
    </ul>
  </blockquote>
  
  <p>I've made the required changes both in <code>/etc/php5/apache2/php.ini</code> and in <code>/etc/php5/cli/php.ini</code>:</p>
  
  <blockquote>
    <p>date.timezone = "Europe/Madrid"</p>
    
    <p>short_open_tag = Off</p>
    
    <p>magic_quotes_gpc = Off</p>
  </blockquote>
  
  <p>Both <code>short_open_tag</code> and <code>magic_quotes_gpc</code> where already set to Off when I checked the php.ini files.</p>
  
  <p>After that I've restarted apache2:</p>
  
  <pre><code>sudo service apache2 restart
  </code></pre>
  
  <p>However I still get the same error messages.</p>
  
  <p>I use Symfony 2.1.2, Ubuntu 12.04 and PHP 5.3.6</p>
  
  <p><strong>UPDATE</strong>: </p>
  
  <p>If I run phpinfo() from the browser, it says the Loaded Configuration File it's located in:</p>
  
  <pre><code>/etc/php5/apache2/php.ini
  </code></pre>
  
  <p>If I run <code>php -i | grep php.ini</code> it says the Loaded Configuration File it's located in:</p>
  
  <pre><code>/etc/php5/cli/php.ini
  </code></pre>
  
  <p>These are the two files where I've already made the changes.</p>
  
  <p>I've made sure that the changes have been saved in the file. I also have used phpinfo() in a php file and executed it in the browser. It says that the values for date.timezone are not set, and magic_quotes_gc and short_open_tag are set to On.</p>
  
  <p>If I execute <code>php app/check.php</code>, the requirements are resolved, so I suppose that <code>/etc/php5/cli/php.ini</code> it's working correctly and there is only a problem with <code>/etc/php5/apache2/php.ini</code>, which is the one that works with the browser.</p>