Fabien
Fabien

Reputation: 21

Install 'Brotli' PHP extension on Windows

I'm looking to install Brotli php extension on my Windows Server 2022 server as it offer ~15% better compression performance than Gzip. But I really can't find a proper way to install it. Any suggestion ?

I did install Brotli on my IIS server already.

Now, I need to install the PHP extension to make my Wordpress cache plugin work properly as it asks for it.

I tried to find a DLL which I did at SourceForge but my PHP doesn't recognize it:

`PHP Warning:  PHP Startup: Unable to load dynamic library 'brotli' (tried: C:\php\ext\brotli (The specified module could not be found), C:\php\ext\php_brotli.dll (The specified module could not be found)) in Unknown on line 0`[PHP Modules]".  

The file is there and the folder has all the permissions. I changed the php.ini extension directory to the full path but it changes nothing.

I also tried to install it through PECL but I have the following error :

downloading brotli-0.15.0.tgz ...
Starting to download brotli-0.15.0.tgz (468,436 bytes)
..............................................................................................done: 468,436 bytes
95 source files, building
ERROR: The DSP brotli.dsp does not exist.

Upvotes: 0

Views: 431

Answers (0)

Related Questions