Title: different php version between server and wordpress
Last modified: August 19, 2021

---

# different php version between server and wordpress

 *  [yanj2004](https://wordpress.org/support/users/yanj2004/)
 * (@yanj2004)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/different-php-version-between-server-and-wordpress/)
 * During trying to fix the cli command issue, I found the php versions were different
   when different commands.
 * **wp –info : PHP version 5.6.40
    php -v: PHP 7.3.29
 * Do I need to update wordpress php version? How? Many articles explained in fact
   how to select php version for server.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [yanj2004](https://wordpress.org/support/users/yanj2004/)
 * (@yanj2004)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/different-php-version-between-server-and-wordpress/#post-14785194)
 * wp –info
    PHP binary: /opt/alt/php56/usr/bin/php PHP version: 5.6.40 php.ini 
   used: /opt/alt/php56/etc/php.ini WP-CLI root dir: phar://wp-cli.phar/vendor/wp-
   cli/wp-cli WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: xxxx
   WP-CLI packages dir: WP-CLI global config: WP-CLI project config: WP-CLI version:
   2.0.1`
 *  [corusx](https://wordpress.org/support/users/corusx/)
 * (@corusx)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/different-php-version-between-server-and-wordpress/#post-14787425)
 * tools > site health > info > check server tab
 * What’s the current version of PHP?
 *  Thread Starter [yanj2004](https://wordpress.org/support/users/yanj2004/)
 * (@yanj2004)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/different-php-version-between-server-and-wordpress/#post-14788356)
 * Apache
    PHP: 7.3.29 PHP SAPI: cgi-fcgi
    -  This reply was modified 4 years, 12 months ago by [yanj2004](https://wordpress.org/support/users/yanj2004/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘different php version between server and wordpress’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [yanj2004](https://wordpress.org/support/users/yanj2004/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/different-php-version-between-server-and-wordpress/#post-14788356)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
