• Resolved Joe Siegler

    (@joe-siegler)


    I’ve gotten to the point where I need to do something with PHP on my server. Things are advancing past where I am.

    My server is currently running PHP 5.4.16. I did get v7 installed, specifically 7.1.15. I found where in my control panel to switch PHP versions, I have a dropdown option to switch domain by domain.

    So I tried switching to 7.1.15, and got this error…

    “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”

    So, OK. Now what? I’ve read a bunch of things that either say to hack that back into PHP 7 (probably not a good idea), or use mysqli. But I’m stuck. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You need to install the PHP V7 mysql extension. It’s probably called something like php-mysqlnd. It depends on the distribution you use and the repo(s) from which you get your packages.

    Thread Starter Joe Siegler

    (@joe-siegler)

    I’m using CentOS 7.

    Will try and look into it. Most of this is new to me, I’ve never had to do anything like this before.

    Also, as I understood it, doesn’t it use mysqli by default now?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    PHP7 uses mysqli

    I use CentOS 7 with the IUS repo for PHP7. I use 7.1 because I also have a Drupal site on my server that barfs with 7.2. My PHP packages: (The ones with “u” come from IUS)

    https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-centos-7

    $ rpm -qa |grep php
    php71u-common-7.1.15-1.ius.centos7.x86_64
    php71u-gd-7.1.15-1.ius.centos7.x86_64
    php-tcpdf-dejavu-sans-fonts-6.2.13-1.el7.noarch
    php71u-cli-7.1.15-1.ius.centos7.x86_64
    php71u-bcmath-7.1.15-1.ius.centos7.x86_64
    php71u-soap-7.1.15-1.ius.centos7.x86_64
    mod_php71u-7.1.15-1.ius.centos7.x86_64
    php-php-gettext-1.0.12-1.el7.noarch
    php71u-pecl-imagick-3.4.3-2.ius.centos7.x86_64
    php71u-pdo-7.1.15-1.ius.centos7.x86_64
    php71u-opcache-7.1.15-1.ius.centos7.x86_64
    php71u-json-7.1.15-1.ius.centos7.x86_64
    php71u-mbstring-7.1.15-1.ius.centos7.x86_64
    php-pear-Net-Curl-1.2.5-10.el7.noarch
    php-fedora-autoloader-1.0.0-1.el7.noarch
    php71u-mysqlnd-7.1.15-1.ius.centos7.x86_64
    php71u-process-7.1.15-1.ius.centos7.x86_64
    php71u-xml-7.1.15-1.ius.centos7.x86_64
    php71u-fpm-7.1.15-1.ius.centos7.x86_64
    phpMyAdmin-4.4.15.10-2.el7.noarch
    php-tcpdf-6.2.13-1.el7.noarch
    php71u-devel-7.1.15-1.ius.centos7.x86_64
    php71u-tidy-7.1.15-1.ius.centos7.x86_64
    

    This is beyond the scope of WP support now ??

    Thread Starter Joe Siegler

    (@joe-siegler)

    I got it running. Turns out this was the key:

    1) yum install php71-php-mysqlnd.x86_64
    2) restart apache

    Thanks Steve for the pointing as to where to go. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7, WordPress, & Errors’ is closed to new replies.