1

I have a WP website that run on ubuntu 14.4 with php 7.0.21. but when i check the WP PHP version i get Running PHP version: 5.5.9-1ubuntu4.22 on the server php -v comment return :

PHP 7.0.21-1~ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jul 6 2017 09:38:10) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.21-1~ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies Why do I have this conflict? Do I need to make any upgrade in WP?

2
  • Welcome to StackOverflow! Please provide a Minimal, Complete, and Verifiable example of what you've tried so far so we can reproduce your issue. Commented Nov 11, 2018 at 7:31
  • This is possibly due to an entry in your .htaccess file. See possible solutions here: [link]beyondmyfrontdoor.com/wp/… Commented Nov 11, 2018 at 14:41

1 Answer 1

1

It turns out that the version that was defined on Apache was different from that configured on the server. I Fixed that by change the defulte php version on the apache

sudo a2dismod php5
sudo a2enmod php7.0
sudo services apache2 restart 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.