• We updated our wordpress to the latest update for 5.8.3 and after updating it told us the php version was out of date, this is the error we received, “Minimum Php version 7.3 required for Amr Ical Events. Your version is 7.1.30-1+ubuntu16.04.1+deb.sury.org+1”
    So we updated the ubuntu version from 16.04 to 18.04 to support the version php 7.3. Once we couldn’t get the php7.3 installed, we decided to try php7.4 but this did not work for us either to get the message one the website to go away. When running the command sudo php -v it returns “PHP 7.4.27 (cli) (built: Dec 20 2021 21:27:56) ( NTS )”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello. ??

    Ubuntu can have multiple versions of PHP installed at once. You’ll have to make sure your web server configuration file is requiring the version of PHP you want to use for your website.

    Hope this helps!

    Thread Starter bhazlett

    (@bhazlett)

    I inherited this configuration, could you point me in the right direction. I’ve checked the /etc/php/7.4/fpm/pool.d/www.conf file and didn’t see anything in there but I could’ve missed something. Also checked the /var/www/html/php.ini and didn’t see anything either.

    • This reply was modified 2 years, 10 months ago by bhazlett. Reason: grammar

    In the docroot of your site, make a file called pi.php. Inside it, put this code:
    <?php phpinfo(); ?>

    Then load it in your web browser. Search for SERVER_SOFTWARE on that page. On the right it’ll probably either say you’re using nginx or apache.

    – If you’re using nginx, you want to look inside /etc/nginx/nginx.conf
    – If apache, then /etc/apache2/apache2.conf

    You can google how to configure those files to use the php version you want to use.

    Once you make the change you’ll want to restart both the web server and php. There’s a doc here on how to do that: https://vitux.com/how-to-start-stop-or-restart-services-in-ubuntu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘updated wordpress php version and wordpress still shows the old php version’ is closed to new replies.