- Plesk Onyx for Windows
How to install a PECL module in PHP provided by Plesk on Windows Server?
Warning: The configuration is not officially supported. All instructions below should be done at your own risk.
Connect to a Plesk server via RDP.
Determine architecture and thread safety of a PHP version. Below is an example for PHP 7.3:
C:\> "%plesk_dir%\Additional\PleskPHP73\php.exe" -i | findstr "Architecture"
Architecture => x64
C:\> "%plesk_dir%\Additional\PleskPHP73\php.exe" -i | findstr "Thread Safety"
Thread Safety => disabled
Download an archive for an appropriate version of the module from the PECL website: https://pecl.php.net/packages.php
Unpack the archive anв сopy the
php_<modname>.pdbfiles from it to
Open the file
%plesk_dir%\Additional\PleskPHP71\php.iniin a text editor.
Add the following line in the file under "Dynamic Extensions" section:
Note: Some modules may require additional files. Please refer to their documentation for details.
Restart IIS to apply the changes with the command: