title: Symfony 3.0 migration PHP 5.5 to PHP 7.1 : "A PHP accelerator should be installed > Install and/or enable a PHP accelerator (highly recommended)"?
body: <p>I want to upgrade PHP5.5 to 7.1 in a SYMFONY 3.0 Project.</p>
  
  <p>I have been checking the "php.ini" file to get the right result.</p>
  
  <p>One last thing is unresolved:
  Under PHP5.5, I used the extension accelerator <strong>php_apcu.dll</strong>. This is not maintained in PHP7.</p>
  
  <p>I was looking for alternative and I read <a href="https://talk.plesk.com/threads/apcu-in-php-7-0.336446/" rel="noreferrer">here</a> that the accelerator is no longer needed in PHP7 because already embedded in it.</p>
  
  <p>When I do a CLI: "php bin/symfony_requirements", the following message appears:</p>
  
  <blockquote>
    <p>A PHP accelerator should be installed > Install and/or enable a PHP > accelerator (highly recommended)</p>
  </blockquote>
  
  <p>As I understand it, I don't need to add a new extension but I can <strong>enable</strong> somewhow the accelerator in PHP7.</p>
  
  <p><strong>Does someone know if an "accelerator" parameter needs to be set to "true" in PHP7, or does it run by default (and Symfony error message should be ignored), or a new extension (<a href="https://en.wikipedia.org/wiki/List_of_PHP_accelerators" rel="noreferrer">different from the deprecated APC as the wiki page explains</a>)  should be installed?</strong> </p>
  
  <p><strong>UPDATES:</strong>
  Following comments received on the question I added to my "php.ini" the following setting:</p>
  
  <pre><code>opcache.enable=1 
  opcache.enable_cli=1 
  opcache.memory_consumption=128 
  opcache.interned_strings_buffer=8 
  opcache.max_accelerated_files=2000 
  opcache.revalidate_freq=60 
  opcache.fast_shutdown=1 
  </code></pre>
  
  <p><strong>I restarted the Apache service</strong> and When I do a CLI: "php bin/symfony_requirements", I still receive the following message:</p>
  
  <blockquote>
    <p>A PHP accelerator should be installed > Install and/or enable a PHP > accelerator (highly recommended)</p>
  </blockquote>
  
  <p><strong>Updates regarding @LBA required info:</strong> 
  I did a CLI "composer update" in the folder of my Symfony project.</p>
  
  <p>Then when I do a CLI: "php bin/symfony_requirements", I get:</p>
  
  <blockquote>
    <p>PHP Notice:  A non well formed numeric value encountered in
    D:\Application\Apache24\htdocs\symf\my_symf_project\var\SymfonyRequirements.php
    on line 759</p>
    
    <p>Notice: A non well formed numeric value encountered in
    D:\Application\Apache24\htdocs\symf\my_symf_project\var\SymfonyRequirements.php
    on line 759</p>
    
    <p>Symfony2 Requirements Checker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
    
    <blockquote>
      <p>PHP is using the following php.ini file:   D:\Application\php7\php.ini</p>
      
      <p>Checking Symfony requirements:   ................W...............W.......</p>
    </blockquote>
    
    <p>[OK]  Your system is ready to run Symfony2 projects</p>
    
    <p>Optional recommendations to improve your setup
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
    
    <ul>
    <li><p>Requirements file should be up-to-date</p>
    
    <blockquote>
      <p>Your requirements file is outdated. Run composer install and
      re-check your configuration.</p>
    </blockquote></li>
    <li><p>a PHP accelerator should be installed</p>
    
    <blockquote>
      <p>Install and/or enable a PHP accelerator (highly recommended).</p>
    </blockquote></li>
    </ul>
    
    <p>Note  The command console could use a different php.ini file ~~~~ 
    than the one used with your web server. To be on the
          safe side, please check the requirements from your web
          server using the web/config.php script.</p>
  </blockquote>
  
  <p><strong>About the setting of the environment (on Windows10):</strong></p>
  
  <ol>
  <li>Previously to anything, I had changed my "path" environment variable with "[folder location of
  php7]\php7\" and when I launch a "php -v" I get: </li>
  </ol>
  
  <blockquote>
    <p>PHP 7.1.1 (cli) (built: Jan 18 2017 18:38:49) ( ZTS MSVC14 (Visual C++
    2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0,
    Copyright (c) 1998-2017 Zend Technologies</p>
  </blockquote>
  
  <p>The composer file in the symfony project looks like that:</p>
  
  <pre><code>    "require": {
          "php": "&gt;=5.5.9",
  ...}
  </code></pre>
  
  <p>And if I try to change the value to "php":">=7.1.0" and launch "composer update" it gives:</p>
  
  <blockquote>
    <p>Loading composer repositories with package information Updating
    dependencies (including require-dev) Your requirements could not be
    resolved to an installable set of packages.</p>
    
    <p>Problem 1
        - This package requires php >=7.1.0 but your PHP version (5.5.9) does not satisfy that requirement.</p>
  </blockquote>
  
  <p>So there is something wrong with my environement variable with Symfony.</p>
  
  <p>If I do <code>phpinfo()</code>, not in Symfony but with a regular PHP server page, it states on top: <strong>PHP Version 7.1.1</strong></p>