Install PHP PEAR

1. Download go-pear.phar

2. Go to the directory you want to install pear (It should NOT be inside www directory, I will install in \path\to\php\pear)

3. Copy and run go-pear.phar at the pear path:
> php go-pear.phar

4. Press Enter (to select system)

5. Update: 11. Name of configuration file (Where to create the pear.ini)

6. Update: 12. Path to CLI php.exe (Tell the pear where is php.exe)

7. Press Enter to start installation

8. Edit php.ini, add/edit the include_path:
include_path=".;\to\pear\path"
9. Restart PHP service

10. Done.

Bonus:
To install a package:
- Go to pear path, run:
> pear install package_name

No comments:

Post a Comment