+ Reply to Thread
Results 1 to 6 of 6

Thread: "Enabling" PEAR

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default "Enabling" PEAR

    I installed PEAR and HTML_QuickForm through SSH, but noticed 'without-pear' when running 'phpinfo();'. Obviously, I can't utilize PEAR with this setting. Apart from recompiling PHP, how can I "enable" PEAR?

    Thanks!

  2. #2
    I love LAMP.
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, United States
    Posts
    201

    Default

    What kind of account is this? If a VPS or dedicated server, do you have a control panel?
    Kevin Stange
    Chief Technology Officer
    Steadfast Networks
    http://steadfast.net
    kevin@steadfast.net

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default

    Yes - sorry for the lack of information.

    I'm running: VPS, CentOS 5, Plesk 9

  4. #4
    I love LAMP.
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, United States
    Posts
    201

    Default

    From the command line, try running:

    Code:
    yum -y install php-pear
    service httpd restart
    That may do the trick.
    Kevin Stange
    Chief Technology Officer
    Steadfast Networks
    http://steadfast.net
    kevin@steadfast.net

  5. #5
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default

    Quote Originally Posted by Kevin View Post
    Code:
    yum -y install php-pear
    service httpd restart
    After your recommendation I'm still showing '--without-pear' in my php.ini

  6. #6
    Administrator
    Join Date
    Aug 2007
    Location
    Bridgeport, Chicago
    Posts
    9

    Default

    You're seeing that in your php.ini or your phpinfo? Plesk relies on the system's php installation, which will utilize an rpm-based installation on centos. The so-called './configure' directives listed in phpinfo are not actually the compiled-in options but were at one time options that a rpm package builder had used. If you ctrl+f and search for "include_path", you should see the path to pear in the local & master value columns.

    Pear isn't actually a 'normal' php module. in fact, it's not a php module at all. Pear is simply a framework for php. A framework which provides a set of php scripts that provide functions which provide an easier method for performing various tasks with the language.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts