- Plesk 12.0 for Windows
- Plesk 12.5 for Windows
- Plesk Onyx for Windows
Warning: the official statement from http://pear.php.net/ dated 24th of January 2019:
If you have downloaded this go-pear.phar in the past six months, you should get a new copy of the same release version from GitHub (pear/pearweb_phars) and compare file hashes. If different, you may have the infected file.
If you have used the resolution from this article in the past 6 months, check the downloaded file.
How to configure PEAR in PHP on Plesk for Windows?
To configure PEAR with PHP on a Plesk Server, it is required to download it from pear.php.net, place it to the PHP directory and perform the installation:
Log into the server via RDP.
- Open the pear.php.net via the browser, download the page and save it to the directory with PHP, for example for PHP 5.6 it will be
Note: the end file should have
.pharextension, in case it was saved as
.txt, rename it to be
- Open the Command Line and change the current directory to the directory where go-pear.phar was saved:
C:\> cd "%plesk_dir%\additional\PleskPHP56"
- Start pear installation with the following command:
C:\> php go-pear.phar
Note: It is possible to leave all settings as default during the process of installation and just agree with installer on every request.
- Reboot the server to apply the changes.
These actions will install the "pear" command, including basic PEAR packages. Use the "pear" command from the Windows command prompt to manage PEAR packages:
C:\> pear version
PEAR Version: 1.10.5
PHP Version: 5.6.34
Zend Engine Version: 2.4.0
Running on: Windows NT WIN-KVET51JS51V 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586
Visit https://pear.php.net/ for more detailed information on configuring and using PEAR packages.
Additional InformationAlso see https://pear.php.net/manual/en/installation.getting.php .