• 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

    (@yanj2004)

    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`

    tools > site health > info > check server tab

    What’s the current version of PHP?

    Thread Starter yanj2004

    (@yanj2004)

    Apache
    PHP: 7.3.29
    PHP SAPI: cgi-fcgi

    • This reply was modified 4 years, 6 months ago by yanj2004.
Viewing 3 replies - 1 through 3 (of 3 total)

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