3

I work in ubuntu 14 server. The problem is that in the console i see the version of my php is 7.0.14, and in the magento2 setup it says my version is 5.5.9

I appreciate any help

4
  • have you checked by echoing php_info(); function ? it gives all the detalis of php of the server Dec 13, 2016 at 8:48
  • Where i put that function, i tried in /var/www/html/index.php and don't see nothing
    – Muribury
    Dec 13, 2016 at 8:55
  • Please go to CLI & navigate to Magento Root Directory & Run php -v
    – Jackson
    Dec 13, 2016 at 8:57
  • create one file test.php in /var/www/html/magento2/ directory and put phpinfo(); this in it and run that file in url. check Dec 13, 2016 at 8:57

1 Answer 1

3

You need to update the environment variable. Execute these commands :

sudo a2dismod php5
sudo a2enmod php7.0
sudo service apache2 restart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.