Applicable to:
- Plesk Onyx for Windows
- Plesk for Windows
Question
How to install a PECL module in PHP provided by Plesk on Windows Server?
Answer
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:
-
Architecture
C:\> "%plesk_dir%\Additional\PleskPHP73\php.exe" -i | findstr "Architecture"
Architecture => x64 -
Thread-safety
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>.dll
andphp_<modname>.pdb
files from it to%plesk_dir%Additional\PleskPHP71\ext
. -
Open the file
%plesk_dir%\Additional\PleskPHP71\php.ini
in a text editor. -
Add the following line in the file under "Dynamic Extensions" section:
CONFIG_TEXT: extension=php_<modname>.dll
Note: Some modules may require additional files. Please refer to their documentation for details.
-
Restart IIS to apply the changes with the command:
C:\> iisreset
Related Articles
Comments
0 comments
Please sign in to leave a comment.