Your site is running an insecure version of PHP (7.1.33), which should be update

  • Unknown's avatar

    Hello!

    I got this issue on my wordpress site: Your site is running an insecure version of PHP (7.1.33), which should be updated.

    The problem is that wordpress still shows it has version PHP (7.1.33), even after I updated to php 8.0 or lower like 7.4.

    Using multiphp from Cpanel shows I have php 8, checking on /phpinfo page also is php 8, from Cpanel in WordPress Toolkit same… php 8.
    I spoke with my hosting and said it’s php 8 and they can’t do anything else for me.

    I don’t know if this info helps, but I have in File Manager 2 .htaccess files. One is in the home directory and is not changing when I use multiphp and another one in public_html which do the changes.

    I tried edititing manually both .htaccess files with no success.
    I add this code too:

    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php80” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php80___lsphp .php .php8 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    I can’t find a solution for this.

  • Unknown's avatar

    Hello there,

    Can you share with us the name of your site ?

  • Unknown's avatar

    That’s typically an error for sites running on third party hosting and using the open source wordpress.org.
    You must log in to the dashboard of your hosting account to update your PHP-version or contact your hosting support.

  • Unknown's avatar
  • Unknown's avatar

    Hi staartmees, I already did this and also contacted the hosting and they confirmed my php is updated.

    I’m trying to figure out if wordpress is reading corectly the path where php is installed.

  • Unknown's avatar

    I think I found the issue.

    When I look on the php.info page I see the extension_dir (where WordPress looks for PHP data) not matching with the Loaded Configuration File path.

    Loaded Configuration File /opt/cpanel/ea-php80/root/etc/php.ini
    extension_dir /opt/cpanel/ea-php80/root/usr/lib64/php/modules

    Any idea on how to make this paths match?

  • The topic ‘Your site is running an insecure version of PHP (7.1.33), which should be update’ is closed to new replies.