# \#php-extensions

**URL:** https://community.localwp.com/tag/php-extensions/6.md

[Latest](https://community.localwp.com/latest.md) · [Categories](https://community.localwp.com/categories.md) · [Tags](https://community.localwp.com/tags.md)

---

## [How to install ssh2 PHP extension from Windows?](https://community.localwp.com/t/how-to-install-ssh2-php-extension-from-windows/45788)

<div class="topic-metadata">

**Author:** [@rajinsharwar](https://community.localwp.com/u/rajinsharwar)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 4:20pm UTC](https://community.localwp.com/t/how-to-install-ssh2-php-extension-from-windows/45788 "2024-12-02T16:20:42Z")

</div>

Though the question says about ssh2, does this apply to any additional PHP module? How should anyone install or compile additional PHP modules in Windows? Below is the topic where Clay describes how to install it on a Ma…

---

## [ImageMagick on PHP 8](https://community.localwp.com/t/imagemagick-on-php-8/29823)

<div class="topic-metadata">

**Author:** [@ddegner](https://community.localwp.com/u/ddegner)\
**Replies:** 19\
**Last updated:** [September 15, 2023, 6:42pm UTC](https://community.localwp.com/t/imagemagick-on-php-8/29823 "2023-09-15T18:42:33Z")

</div>

PHP 8 now supports ImageMagick. Is there a way for me to update my PHP 8 installation so that it includes it? Or will the ImageMagick compatible version of PHP 8 come baked into Local soon?

---

## [No PDO Drivers on Ubuntu Local 6.7.0+6347](https://community.localwp.com/t/no-pdo-drivers-on-ubuntu-local-6-7-0-6347/36471)

<div class="topic-metadata">

**Author:** [@GrowPlugins](https://community.localwp.com/u/GrowPlugins)\
**Replies:** 4\
**Last updated:** [April 20, 2023, 6:37pm UTC](https://community.localwp.com/t/no-pdo-drivers-on-ubuntu-local-6-7-0-6347/36471 "2023-04-20T18:37:44Z")

</div>

Bug Summary PDO should be available in Local, but it isn’t. See attached image. var\_dump(PDO::getAvailableDrivers()); results in an empty array. Steps to reproduce Run phpinfo() and check the PDO driver support. En…

---

## [DLLs not loading after PHP updates (Windows 10)](https://community.localwp.com/t/dlls-not-loading-after-php-updates-windows-10/35365)

<div class="topic-metadata">

**Author:** [@Oliver](https://community.localwp.com/u/Oliver)\
**Replies:** 2\
**Last updated:** [February 5, 2023, 12:32am UTC](https://community.localwp.com/t/dlls-not-loading-after-php-updates-windows-10/35365 "2023-02-05T00:32:09Z")

</div>

Bug Summary DLLs seem not to be loaded correctly anymore. Steps to reproduce Update the PHP version (7.x or 8.x) of an existing project as suggested by the Local environment and have a look into the log file for PHP fro…

---

## ["Failed loading" warnings explained and solutions](https://community.localwp.com/t/failed-loading-warnings-explained-and-solutions/35098)

<div class="topic-metadata">

**Author:** [@TonyGman](https://community.localwp.com/u/TonyGman)\
**Replies:** 1\
**Last updated:** [January 12, 2023, 6:20pm UTC](https://community.localwp.com/t/failed-loading-warnings-explained-and-solutions/35098 "2023-01-12T18:20:26Z")

</div>

Many people report variations of the warning/error messages below. I’m explaining here what causes this, how to fix it quickly, and what WP Engine can do to address it in Local. PHP Warning: Failed loading Zend extensio…

---

## [Missing PDO extension for PHP 8.1 under Linux](https://community.localwp.com/t/missing-pdo-extension-for-php-8-1-under-linux/33367)

<div class="topic-metadata">

**Author:** [@benjamin](https://community.localwp.com/u/benjamin)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 3:39pm UTC](https://community.localwp.com/t/missing-pdo-extension-for-php-8-1-under-linux/33367 "2022-10-26T15:39:14Z")

</div>

Looks like PHP 8.1 on Linux doesn’t include support for MySQL (missing the driver). Seems to be fine on Mac/Windows.

---

## [Compile WebP Support for GD](https://community.localwp.com/t/compile-webp-support-for-gd/20352)

<div class="topic-metadata">

**Author:** [@inetjared](https://community.localwp.com/u/inetjared)\
**Replies:** 5\
**Last updated:** [September 22, 2022, 4:25pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352 "2022-09-22T16:25:59Z")

</div>

We are using GD to generate WebP images in our projects. I just setup my first project using Local, and when logging into wp-admin I get the following error: CRITICAL ERROR: PHP GD Was not compiled with WebP Support! Y…

---

## [Is there still no solution to adding webp images to a localwp site?](https://community.localwp.com/t/is-there-still-no-solution-to-adding-webp-images-to-a-localwp-site/28995)

<div class="topic-metadata">

**Author:** [@blackstar.design](https://community.localwp.com/u/blackstar.design)\
**Replies:** 12\
**Last updated:** [September 22, 2022, 4:11pm UTC](https://community.localwp.com/t/is-there-still-no-solution-to-adding-webp-images-to-a-localwp-site/28995 "2022-09-22T16:11:53Z")

</div>

This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading. I can’t seem to find a straight answer to this…

---

## [How to install PHP CS Fixer](https://community.localwp.com/t/how-to-install-php-cs-fixer/30924)

<div class="topic-metadata">

**Author:** [@robertandrews](https://community.localwp.com/u/robertandrews)\
**Replies:** 0\
**Last updated:** [March 20, 2022, 4:06pm UTC](https://community.localwp.com/t/how-to-install-php-cs-fixer/30924 "2022-03-20T16:06:06Z")

</div>

Slim pickings on this forum, but here goes… How do I install PHP CS Fixer on a LocalWP install? I want to be able o add a VS Code extension for PHP formatting, which requires this. Given LocalWP’s PHP destination will…

---

## [Using Redis Cache](https://community.localwp.com/t/using-redis-cache/25261)

<div class="topic-metadata">

**Author:** [@Jack.D](https://community.localwp.com/u/Jack.D)\
**Replies:** 2\
**Last updated:** [February 9, 2022, 2:38pm UTC](https://community.localwp.com/t/using-redis-cache/25261 "2022-02-09T14:38:28Z")

</div>

Recently, I’ve been to a blog that featured with using PHP redis cache with custom sites on Cloudways (a managed cloud hosting platform). If using any php framework or CMS, are there certain plugins and extensions which …

---

## [Change PHP configure command](https://community.localwp.com/t/change-php-configure-command/29717)

<div class="topic-metadata">

**Author:** [@Vincent](https://community.localwp.com/u/Vincent)\
**Replies:** 0\
**Last updated:** [January 10, 2022, 4:00pm UTC](https://community.localwp.com/t/change-php-configure-command/29717 "2022-01-10T16:00:52Z")

</div>

Issue Summary I need to enable Sqlite3 but it is disabled by default via --without-sqlite3 flag in configure command. How can I enable it ? I tried what is outlined on How do I compile additional PHP extensions?, but i…

---

## [cURL Error 35](https://community.localwp.com/t/curl-error-35/29341)

<div class="topic-metadata">

**Author:** [@Dravenrip](https://community.localwp.com/u/Dravenrip)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 8:41pm UTC](https://community.localwp.com/t/curl-error-35/29341 "2021-12-15T20:41:36Z")

</div>

Hi guys, i met the same error message on my Local app. But i’m pretty sure that i’m using open SSL. That’s what "php -i | grep “SSL Version” say : SSL Version =\> (SecureTransport) OpenSSL/1.1.1l I’m on MacOSMonterey…

---

## [Call to undefined function imagewebp](https://community.localwp.com/t/call-to-undefined-function-imagewebp/28960)

<div class="topic-metadata">

**Author:** [@realoj](https://community.localwp.com/u/realoj)\
**Replies:** 1\
**Last updated:** [November 22, 2021, 6:38pm UTC](https://community.localwp.com/t/call-to-undefined-function-imagewebp/28960 "2021-11-22T18:38:01Z")

</div>

Hi! I would like to know if there is a way to enable webp support? Thanks

---

## [Cannot validate Purchase Key. Please try again later. If the problem persists your server might not have the curl PHP extension enabled](https://community.localwp.com/t/cannot-validate-purchase-key-please-try-again-later-if-the-problem-persists-your-server-might-not-have-the-curl-php-extension-enabled/28267)

<div class="topic-metadata">

**Author:** [@GuillaumeTin](https://community.localwp.com/u/GuillaumeTin)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 6:41pm UTC](https://community.localwp.com/t/cannot-validate-purchase-key-please-try-again-later-if-the-problem-persists-your-server-might-not-have-the-curl-php-extension-enabled/28267 "2021-11-10T18:41:40Z")

</div>

Bonjour, je travaille pour la première fois sur LOCAL. J’ai installé hier un nouveau site wordpress avec un template. Une fois le template activé, il me demande de rentrer le code d’achat. et voici le message que j’ai lo…

---

## [Add PHP fileinfo extension to each project](https://community.localwp.com/t/add-php-fileinfo-extension-to-each-project/28192)

<div class="topic-metadata">

**Author:** [@Tilt](https://community.localwp.com/u/Tilt)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 4:10pm UTC](https://community.localwp.com/t/add-php-fileinfo-extension-to-each-project/28192 "2021-10-12T16:10:47Z")

</div>

After creating your website, if you check the site health, it will appear that the “fileinfo” extension is missing. To add it to each project creation, open the file C:\\Users\<your name\>\\AppData\\Roaming\\Local\\lightning-se…

---

## [Imagick (ImageMagick) Stream does not support seeking](https://community.localwp.com/t/imagick-imagemagick-stream-does-not-support-seeking/25931)

<div class="topic-metadata">

**Author:** [@lflier](https://community.localwp.com/u/lflier)\
**Replies:** 1\
**Last updated:** [September 28, 2021, 3:30pm UTC](https://community.localwp.com/t/imagick-imagemagick-stream-does-not-support-seeking/25931 "2021-09-28T15:30:06Z")

</div>

When attempting to load an image file into Imagick (e.g. new Imagick(‘pathname.jpg’) I get the following error: “Warning: Imagick::\_\_construct(): stream does not support seeking…” I’m running: MacOS 10.15.7 Local 5.1…

---

## ["module, fileinfo, is not installed" etc .. (but has a solution)](https://community.localwp.com/t/module-fileinfo-is-not-installed-etc-but-has-a-solution/26846)

<div class="topic-metadata">

**Author:** [@Terry](https://community.localwp.com/u/Terry)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 7:10pm UTC](https://community.localwp.com/t/module-fileinfo-is-not-installed-etc-but-has-a-solution/26846 "2021-07-29T19:10:46Z")

</div>

I recently updated to Local 6, and the age old error that I saw on my WordPress dashboard today was:- “The optional module, fileinfo, is not installed, or has been disabled.” I’m running Windows 10 Local by Flywheel …

---

## [Custom PHP Installs](https://community.localwp.com/t/custom-php-installs/25605)

<div class="topic-metadata">

**Author:** [@CodingJack](https://community.localwp.com/u/CodingJack)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 7:04pm UTC](https://community.localwp.com/t/custom-php-installs/25605 "2021-07-16T19:04:15Z")

</div>

Issue Summary Is there a way to install additional versions of PHP to select from inside the LocalWP site options? Troubleshooting Questions It’s not a problem really. I just need the additional functionality. Are yo…

---

## [PHP Intl Support on MacOS](https://community.localwp.com/t/php-intl-support-on-macos/25511)

<div class="topic-metadata">

**Author:** [@lflier](https://community.localwp.com/u/lflier)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 5:25pm UTC](https://community.localwp.com/t/php-intl-support-on-macos/25511 "2021-05-11T17:25:36Z")

</div>

I know the team is working on this issue but I wanted to bump it along. It’s a little difficult for me to work in Local without the PHP Intl class. My application requires it, my production server supports it, but the cl…

---

## [Missing php Modules](https://community.localwp.com/t/missing-php-modules/25491)

<div class="topic-metadata">

**Author:** [@darrinstern](https://community.localwp.com/u/darrinstern)\
**Replies:** 0\
**Last updated:** [May 6, 2021, 12:28pm UTC](https://community.localwp.com/t/missing-php-modules/25491 "2021-05-06T12:28:10Z")

</div>

Maybe you all can help, I have looked in the forums and I can not find the solution. I am a new user of localwp.com and I can not find how to turn on the fileinfo or imagick. Can someone point me in the right direction…

---

## ["fileinfo module not installed or disabled" warning after updating php](https://community.localwp.com/t/fileinfo-module-not-installed-or-disabled-warning-after-updating-php/21752)

<div class="topic-metadata">

**Author:** [@alexandramaclennan](https://community.localwp.com/u/alexandramaclennan)\
**Replies:** 6\
**Last updated:** [December 3, 2020, 5:16pm UTC](https://community.localwp.com/t/fileinfo-module-not-installed-or-disabled-warning-after-updating-php/21752 "2020-12-03T17:16:00Z")

</div>

Hello, After updating php, I received this following warning as I ran a site health check: Warning The optional module, fileinfo, is not installed, or has been disabled. What should I do? Thanks.

---

## [GD not installed or something wrong](https://community.localwp.com/t/gd-not-installed-or-something-wrong/21941)

<div class="topic-metadata">

**Author:** [@vayu](https://community.localwp.com/u/vayu)\
**Replies:** 16\
**Last updated:** [November 23, 2020, 6:48pm UTC](https://community.localwp.com/t/gd-not-installed-or-something-wrong/21941 "2020-11-23T18:48:08Z")

</div>

I installed the YooTheme on a simple WP installation. No images will show on the site. I asked the YooTheme support and they replied with “This is a “server” config issue”. I hope someone can help. Thanks

---

## [Uncaught Error: Call to undefined function gzencode](https://community.localwp.com/t/uncaught-error-call-to-undefined-function-gzencode/22966)

<div class="topic-metadata">

**Author:** [@misamee](https://community.localwp.com/u/misamee)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 11:06am UTC](https://community.localwp.com/t/uncaught-error-call-to-undefined-function-gzencode/22966 "2020-11-17T11:06:27Z")

</div>

I get this error on a WP site running on PHP 7.4.1. It appears that the module is missing or not enabled. How to fix that? Possibly without creating a new site, which is always a pain. Thanks.

---

## [Sqlite3 PHP extension installation on macOS Catalina 10.15.7 - help!](https://community.localwp.com/t/sqlite3-php-extension-installation-on-macos-catalina-10-15-7-help/22333)

<div class="topic-metadata">

**Author:** [@rlippertz](https://community.localwp.com/u/rlippertz)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 8:44pm UTC](https://community.localwp.com/t/sqlite3-php-extension-installation-on-macos-catalina-10-15-7-help/22333 "2020-10-01T20:44:53Z")

</div>

Hi, I just did my first LOCAL try, and stuck on the problem that WP plugin activation (WooCommerce JTL-Connector) is not possible. Following error message appears: The connector needs the sqlite3 PHP extension PHP v7.…

---

## [Class 'ZipArchive' not found](https://community.localwp.com/t/class-ziparchive-not-found/21360)

<div class="topic-metadata">

**Author:** [@promijn](https://community.localwp.com/u/promijn)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 5:02pm UTC](https://community.localwp.com/t/class-ziparchive-not-found/21360 "2020-08-07T17:02:40Z")

</div>

I just moved a development site from MAMP to Local. But I get the error Fatal error: Uncaught Error: Class ‘ZipArchive’ not found I know this is a PHP extension, but how can I install this on Local?

---

## [ImageMagick in Local 5.x](https://community.localwp.com/t/imagemagick-in-local-5-x/16333)

<div class="topic-metadata">

**Author:** [@deryck](https://community.localwp.com/u/deryck)\
**Replies:** 24\
**Last updated:** [July 31, 2020, 6:38am UTC](https://community.localwp.com/t/imagemagick-in-local-5-x/16333 "2020-07-31T06:38:50Z")

</div>

Hello. How can I enable imagick php lib by default (or another way) in Local 5.x? Thanks!

---

## [Where can i find the Extension directory for PHP?](https://community.localwp.com/t/where-can-i-find-the-extension-directory-for-php/20813)

<div class="topic-metadata">

**Author:** [@davidperez](https://community.localwp.com/u/davidperez)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 11:07am UTC](https://community.localwp.com/t/where-can-i-find-the-extension-directory-for-php/20813 "2020-07-28T11:07:55Z")

</div>

Hello, I’m trying to instal Ioncube with my installation LocalFlywheel in MacOs Catalina. I’m using this instructions: IonCube Loader Installation locally on Flywheel But I can’t finde the extension directory for php in…

---

## ["Unable to load module" error related to ImageMagick](https://community.localwp.com/t/unable-to-load-module-error-related-to-imagemagick/21151)

<div class="topic-metadata">

**Author:** [@codefreq](https://community.localwp.com/u/codefreq)\
**Replies:** 0\
**Last updated:** [July 27, 2020, 10:03pm UTC](https://community.localwp.com/t/unable-to-load-module-error-related-to-imagemagick/21151 "2020-07-27T22:03:29Z")

</div>

When I migrated one of my client dev sites from Local by Flywheel to Local, I got an “undefined function” error due to a plugin calling gd\_info. Updating to PHP 7.4.1 solved that problem, so at least the site is function…

---

## [Add imap extension in php using Mac OSX Catalina](https://community.localwp.com/t/add-imap-extension-in-php-using-mac-osx-catalina/18451)

<div class="topic-metadata">

**Author:** [@kevwaddell](https://community.localwp.com/u/kevwaddell)\
**Replies:** 7\
**Last updated:** [June 3, 2020, 6:45pm UTC](https://community.localwp.com/t/add-imap-extension-in-php-using-mac-osx-catalina/18451 "2020-06-03T18:45:36Z")

</div>

Hi I’ve noticed the imap extension is not active on PHP v7.3.5. I’ve tried the steps from the following links. But because I’m working on a Mac the guides don’t work. Would it be possible to do a guide for Mac user…

---

## [How do I compile additional PHP extensions?](https://community.localwp.com/t/how-do-i-compile-additional-php-extensions/2272)

<div class="topic-metadata">

**Author:** [@clay](https://community.localwp.com/u/clay)\
**Replies:** 0\
**Last updated:** [July 18, 2017, 3:08pm UTC](https://community.localwp.com/t/how-do-i-compile-additional-php-extensions/2272 "2017-07-18T15:08:47Z")

</div>

You can use this guide to compile most PECL extensions in Local. We’ll use SSH2 as the example here. Download and extract the appropriate PECL extension Download the appropriate version here: https://pecl.php.net/pac…

[Next page](https://community.localwp.com/tag/php-extensions/6.md?match_all_tags=true&page=1&tags%5B%5D=php-extensions)
