# phpinfo shows wrong PHP version

**URL:** <https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201>\
**Category:** General Discussion\
**Created:** [July 17, 2017, 1:43pm UTC](https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201 "2017-07-17T13:43:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdeinhardt](https://forums.interworx.com/user_avatar/forums.interworx.com/mdeinhardt/32/34_2.png) [@mdeinhardt](https://forums.interworx.com/u/mdeinhardt)\
**Post date:** [July 17, 2017, 1:43pm UTC](https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201/1 "2017-07-17T13:43:34Z")

</div>

Hi all,

I have 3 accounts, where I phpinfo(); only shows PHP Version 5.6.31, no matter what I do. In siteworx it shows PHP Version: PHP-FPM 7.1.7, on the User shell entering php -v I get PHP 7.1.7 - so phpinfo is wrong.  
But all other accounts on the same server always show the correct versions, only these 3 fail. I checked the vhost files, htacess, redirects, permisssione etc. And I tried all php versions, back and forth ☹

Does anyone have an idea?

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [July 17, 2017, 2:52pm UTC](https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201/2 "2017-07-17T14:52:00Z")

</div>

Hi Michael

Sorry, I’ve been bogged down dealing with a client, who we carry out IT on insolvencies

The only thing which comes to mind, is phpinfo running as the correct owner (but you said you’d checked perms)

I’m thinking it’s running differently or perhaps the user.ini is directing it to other php version.

Just guessing here sorry, as php -v after ssh as siteworx user is showing corrrct php version

Are any of your other servers showing same (have you tried duplicating siteworx account onto different server and does it show same)

I hope that helps but it’s so busy next few days

Many thanks

John

---

<div class="post-metadata">

**Author:** ![mdeinhardt](https://forums.interworx.com/user_avatar/forums.interworx.com/mdeinhardt/32/34_2.png) [@mdeinhardt](https://forums.interworx.com/u/mdeinhardt)\
**Post date:** [July 19, 2017, 5:59am UTC](https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201/3 "2017-07-19T05:59:32Z")

</div>

Thanks John. I have not yet found the time to duplicate the account, I’ll kepp you and all others updated, if and when I get to the bottom of this.

---

<div class="post-metadata">

**Author:** ![Josep4h](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/a6a055/32.png) [@Josep4h](https://forums.interworx.com/u/Josep4h)\
**Post date:** [February 18, 2020, 2:35am UTC](https://forums.interworx.com/t/phpinfo-shows-wrong-php-version/14201/4 "2020-02-18T02:35:30Z")

</div>

Your server apparently has multiple versions of PHP installed, and when you login and run php on the command line, you are getting the older version which is installed to usr, bin, php [UPSers](https://www.upsers.review/).
