title: Enable PHP7 apache module - apache 2.4 - Linux Ubuntu 14
body: <p>I have problem to use PHP 7.1 with apache.<br>
  I installed PHP 7.1:</p>
  
  <pre><code>apt-get install php7.1
  </code></pre>
  
  <p>I installed the PHP 7.1 apache module :</p>
  
  <pre><code>apt-get install libapache2-mod-php7.1
  </code></pre>
  
  <p>I disabled the PHP5 module :</p>
  
  <pre><code>sudo a2dismod php5
  </code></pre>
  
  <p>I enabled the PHP7 module :</p>
  
  <pre><code>sudo a2enmod php7.1
  </code></pre>
  
  <p>I restarted apache :</p>
  
  <pre><code>/etc/init.d/apache2 restart
  </code></pre>
  
  <p>When I check the apache loaded modules I see the PHP7 module :</p>
  
  <pre><code>apache2ctl -t -D DUMP_MODULES    &gt;     php7_module (shared)
  </code></pre>
  
  <p>But when I make phpinfo() it is always PHP5 module.<br>
  Any idea ?<br>
  Thanks.</p>