• Resolved swoolrich

    (@swoolrich)


    I’m trying to use Duplicator to transfer a number of WordPress websites from one of my PCs to another.

    The target is a brand new Raspberry Pi running Stretch, which has PHP7 and MariaDB.

    A phpinfo() page shows: MySQLi, Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel

    So I presume it’s there & available.

    However the installer has PHP Mysqli marked as Fail. I’ve tried with a different browser in case it was a caching issue.

    From the Installer page, My PHP version is: 7.0.30-0+deb9u1.

    As an aside – I’ve manually extracted the zip file. Should I chown the results, or does the installer do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @swoolrich,

    The code that validates for mysqli simply calls a PHP function named function_exists. So even if that version does have mysqli, it looks like it does not have access to call the libs to use the PHP mysqli libs.

    You should only chown if your running into permission issues which are usually shown in the install log, but there are cases where they aren’t so if you do run into issues you definitely want to make sure the web server process has the correct permissions to operate.

    Hope that helps~

    Thread Starter swoolrich

    (@swoolrich)

    I’m not sure how this got marked as resolved as it wasn’t resolved until I turned to the Raspberry Pi forums. The correct resolution is that a default Stretch installation (which is php7.0) needs the php-mysql package installing:

    sudo apt-get update
    sudo apt-get -y install php-mysql
    • This reply was modified 6 years, 8 months ago by swoolrich.

    Thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Raspberry Pi, Stretch, PHP7, mysqli fail’ is closed to new replies.