Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install a PHP PEAR Package in Webuzo

This guide shows you how to add a PEAR package to PHP using Webuzo.

Webuzo2 min read13 steps6 screenshots

What is PEAR?

PHP is a language that builds web pages. PEAR is a library of ready-made PHP code. A PEAR package is one piece of that library. It does a job for you, like sending mail or handling dates, so you do not write the code yourself. Think of it as borrowing a tool instead of building one.

Webuzo has a page where you can pick PEAR packages and install them in a few clicks.

Before you start

  • Know the package name. The PEAR website lists names such as Mail or Net_SMTP.
  • Check what your app needs. The app's guide tells you.
  • Installing for the whole server needs root access. VPS and dedicated customers have it. On shared hosting, ask Hostvento support whether you can do this.
Warning: Installing or changing packages affects every site that uses that PHP. Take a backup first.

Steps in Webuzo

  1. Log in to the Webuzo panel. The address and login are in your welcome email.
  2. Type PEAR in the search box.
  3. Open PHP PEAR Packages. The label may differ, so use the search results.
    Screenshot: Open PHP PEAR Packages . The label may differ, so use the search results.
    Screenshot: Open PHP PEAR Packages . The label may differ, so use the search results.
  4. If PEAR itself is not installed, find it in the software list and install it first.
    Screenshot: If PEAR itself is not installed, find it in the software list and install it first.
  5. In the package box, type the name of the package you need.
  6. Click Install.
  7. Wait. Webuzo downloads and installs the package. A message tells you when it is done.
  8. Your package now shows in the installed list.

Remove a package

  1. Open the same page.
  2. Find the package in the installed list.
  3. Click Uninstall or the bin icon.

Using SSH instead

If you have root access over SSH, you can use the command line. SSH is a safe way to type commands on your server.

pear install Mail

This downloads and installs the Mail package.

Screenshot: This downloads and installs the Mail package.
pear list

This shows every package that is installed.

Test it

  1. Check your app. It should no longer complain about a missing package.
  2. If the error stays, restart the web server or ask Hostvento support. You can open a support ticket.
Tip: PEAR is old. Many modern apps use Composer instead. Use PEAR only when your app asks for it.

Quick recap

  • PEAR holds reusable PHP code in packages.
  • Use the PEAR page in Webuzo and click Install.
    Screenshot: Use the PEAR page in Webuzo and click Install.
  • You can also run pear install over SSH.
    Screenshot: You can also run pear install over SSH.
  • Back up first, because packages affect all sites on that PHP.