Answers.Body: <p>It depends on your hosting server.  It is usually possible to specify different PHP versions for command line (eg. php -v) and php that is used by your web server.  If you have no need for PHP 5.6 then I suggest you remove it and that trigger everything to use PHP 7.0.  Otherwise you'll need to look at your webserver/php configuration to make sure PHP 7.0 is selected as default.
  Also, worth noting that PHP 7.0 is end of life soon, worth going to PHP 7.1 if available.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-24T17:36:39.327Z
Answers.LastActivityDate: 2018-11-24T17:36:39.327Z
Answers.UserDisplayName: Matthew Wire
Answers.Body: <p>OK, so  2 steps</p>
  
  <ol>
  <li><p>Disable php5 and enable php7 in apache
  sudo a2dismod php5
  sudo a2enmod php7
  (maybe php7.0
  sudo service apache2 restart</p></li>
  <li><p>civicrm needed me to install a few php extensions - </p></li>
  </ol>
  
  <p>sudo apt-get install php-xml php7.0-gd php7.0-imap php7.0-mbstring memcache php-curl </p>
  
  <p>sudo service apache2 restart</p>
  
  <p>pretty much did the trick.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-26T23:30:39.303Z
Answers.LastActivityDate: 2018-11-26T23:30:39.303Z
Answers.UserDisplayName: Matt Muchowski
Body: <p>I upgraded php from 5.6.30-0+deb8u1 to 7.0.32-1~dotdeb+8.1 and civicrm is still giving me a php out of date error.  </p>
  
  <p>When I run php -v it says 7.0, but civicrm still thinks I'm on 5.6.  </p>
  
  <p>Do I need to purge php 5.6 if php -v tells me I upgraded to 7.0?</p>
  
Tags: <error><php>
Title: Upgraded php from 5.6.30 to 7.0.32, civicrm still gives PHP out of date error
ThreadText: # Upgraded php from 5.6.30 to 7.0.32, civicrm still gives PHP out of date error
  
  (Asked by: username_0 on 2018-11-24)
  
  I upgraded php from 5.6.30-0+deb8u1 to 7.0.32-1~dotdeb+8.1 and civicrm is still giving me a php out of date error.
  
  When I run php -v it says 7.0, but civicrm still thinks I'm on 5.6.
  
  Do I need to purge php 5.6 if php -v tells me I upgraded to 7.0?
  
  **Tags:** error, php
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-11-24. Score: 4
  
  It depends on your hosting server. It is usually possible to specify different PHP versions for command line (eg. php -v) and php that is used by your web server. If you have no need for PHP 5.6 then I suggest you remove it and that trigger everything to use PHP 7.0. Otherwise you'll need to look at your webserver/php configuration to make sure PHP 7.0 is selected as default.
  Also, worth noting that PHP 7.0 is end of life soon, worth going to PHP 7.1 if available.
  
  
  ---
  
  ### Answer by username_0 on 2018-11-26. Score: 1
  
  OK, so 2 steps
  
  1. Disable php5 and enable php7 in apache
     sudo a2dismod php5
     sudo a2enmod php7
     (maybe php7.0
     sudo service apache2 restart
  2. civicrm needed me to install a few php extensions -
  
  sudo apt-get install php-xml php7.0-gd php7.0-imap php7.0-mbstring memcache php-curl
  
  sudo service apache2 restart
  
  pretty much did the trick.
  
  
  ---
  
  