In PHP website development, PEAR has to mention that it is a PHP extension and application library that covers many useful class libraries, and the installation of PEAR is also very convenient, today, we will share with you how to install PEAR in WINDOWS. Before installing PEAR, You need to configure and install the PHP environment. My PHP environment is DedeAMPZ of dededecms, And the PHP version is 5.2.4.
In PHP website development, PEAR has to mention that it is a PHP extension and application library that covers many useful class libraries, and the installation of PEAR is also very convenient, today, we will share with you how to install PEAR in WINDOWS. Before installing PEAR, You need to configure and install the PHP environment. My PHP environment is DedeAMPZ of dededecms, And the PHP version is 5.2.4.
In PHP website development, PEAR has to mention that it is a PHP extension and application library that covers many useful class libraries, and the installation of PEAR is also very convenient, today, we will share with you how to install PEAR in WINDOWS.
Installation environment
You need to configure and install the PHP environment before installing PEAR. My PHP environment is DedeAMPZ of dededecms, And the PHP version is 5.2.4. By default, no PEAR is provided. For example, manually configure the PHP environment, it should contain PEAR. How to configure the PHP environment?
PEAR installation preparation
The directory where the producer is located.
Note: The Web says direct access to the http://go-pear.org and save its home page as a go-pear.php, I tested not to pass.
PEAR Installation Steps
1. Enter: php go-pear.php in command line mode to start Automatic Installation
PEAR installation, input php go-pear.php
Through this PEAR installation, we can see that the installation directory structure of PEAR needs to be confirmed first, and the system can automatically identify it.
2. Confirm the installation directory structure of PEAR in Windows, press enter, start to download and install the default extension package of PEAR, you can also choose whether to install Pear_Frontend_Web-beta, Pear_Frontend_Gtk2, MDB2 extension package at the same time.
Start to download and install PEAR
3. After the default PEAR extension package is installed, the system prompts whether to configure php. the include_path option in the INI file points to the installation directory of pear. Of course, you need to configure it. Otherwise, you cannot use it. Press Y and press Enter. The installation package automatically modifies the include_path option.
After PEAR is installed, configure the include_path option in PHP. INI.
PEAR installation is complete. Double-click PEAR_ENV.reg to import relevant information to the Registry and restart Apache.
Other PEAR installation methods
If the PHP runtime environment comes with PEAR, you can find the PEAR. DAT file in the PHP Directory and double-click the file to install PEAR. The installation method is similar to the preceding method. Also, modify the include_path option in PHP. INI.
PEAR command
In the command line mode, you can use PEAR-related commands to install the PEAR installation package you need.
Pear help lists all pear commands, similar to the pear command help command.
Pear helpList the details of a pear command
Pear help shortcuts short for listing all pear commands
Pear list-all lists all the packages that can be installed. You can access the pear extension package list to find the required packages, and then run the pear install command to install the packages.
The above describes how to install PEAR on Windows. Next time you will have the opportunity to introduce the PEAR command.