• Resolved ngurbanov

    (@ngurbanov)


    Hi

    I set up cron job to trigger the optimizer. However I’m having an error message saying my php version is outdated. However I’m using php 7.3 Am I doing something wrong?

    Cron line is below. WordPress installation is inside httpdocs folder

    cd /var/www/vhosts/test/httpdocs; php -q wp-cron.php

    The message I got is Your server is running PHP version 5.4.16 but WordPress 5.3.2 requires at least 5.6.20.

    But in fact php version is 7.3

    • This topic was modified 6 years, 4 months ago by ngurbanov.
Viewing 1 replies (of 1 total)
  • Plugin Contributor reSmush.it

    (@resmushit)

    Hi @ngurbanov,

    This is mainly due to the fact that :
    – the PHP version provided by Apache (apache php module, or FPM configured) is set to PHP 7.2 (which is correct)
    – the CLI version of php (when you run command line) is still set to an older version of PHP (here PHP 5.4).

    You can check by entering in CLI (if you have an ssh access) “php -v”. You can also ask your hosting provider to set your PHP CLI version to at least PHP 7.

    Important note : this restriction is displayed by WordPress, not by reSmush.it Plugin 🙂

    Hope it helped,
    do not hesitate to rate our plugin if you liked it !
    Charles

Viewing 1 replies (of 1 total)

The topic ‘Cron error’ is closed to new replies.