Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2004
    Location
    Boston, MA
    Posts
    949

    Problem With Pear

    Alright I'm trying to install some software here which requires php-pear which is installed along with php and apache.*

    How ever anytime I go to install the software ./install_amp*

    I get this error.

    [FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/pear/
    Edrick Smith
    Film Production

  2. #2
    Join Date
    Feb 2004
    Location
    Atlanta, GA
    Posts
    5,627
    run

    "pear install db"

  3. #3
    Join Date
    Mar 2004
    Location
    Boston, MA
    Posts
    949
    Ah thanks that fixed that problem.

    Now I'm getting this

    [FATAL] mysql PHP libraries not installed
    Edrick Smith
    Film Production

  4. #4
    Then you need to install your php-mysql libraries (suprisingly enough). What distro do you use?

  5. #5
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    * Moved to Technical and Security Issues....

    Sirius
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  6. #6
    Join Date
    Mar 2004
    Location
    Boston, MA
    Posts
    949
    Fedora Core 5
    Edrick Smith
    Film Production

  7. #7
    Join Date
    Mar 2004
    Location
    Boston, MA
    Posts
    949
    Alright I fixed that problem, As always theres another problem after that.

    [[email protected] freepbx-2.1.1]# ./install_amp
    Checking for PEAR DB..OK
    Checking for PEAR Console::Getopt..OK
    Checking user..OK
    Checking for /etc/amportal.conf..OK
    Reading /etc/amportal.conf..OK
    Checking for /etc/asterisk/asterisk.conf..OK
    Reading /etc/asterisk/asterisk.conf..OK
    Checking for Asterisk 1.2..OK
    Checking for selinux..OK
    Connecting to database..FAILED
    Try running ./install_amp --username=user --password=pass* (using your own user and pass)
    [FATAL] Cannot connect to database

    I've tried using the password setup for mySQL when I set the root pass but that doesn't work.
    Edrick Smith
    Film Production

  8. #8
    Join Date
    Mar 2004
    Location
    Boston, MA
    Posts
    949
    [[email protected] freepbx-2.1.1]# mysql
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    [[email protected] freepbx-2.1.1]#*
    Edrick Smith
    Film Production

  9. #9
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,687
    What control panel are you using? Stupid question, but it does actually matter.
    For DirectAdmin, you need to use the DA u/p (admin/somethingelse)
    For CPanel, you can use root.

    For others, make the necessary adjustments (not sure what they would be off hand).

    Also, make SURE that the password is correct. Remember, your "root" password isn't going to (necessarily) be your master mysql password. Did you set one up? If not, do so.

    If all else fails, and you just for the life of you can't get the root password out, well, there's no need to panic, it CAN be reset. Follow these very simple instructions (inside the shell) and it will be done (as taken from the MySQL lists)

    service mysql stop

    wait until MySQL shuts down. Then run

    mysqld_safe --skip-grant-tables &

    then you will be able to login as root with no password.

    mysql -uroot mysql

    In MySQL command line prompt issue the following command:

    UPDATE user SET password=PASSWORD("abcd") WHERE user="root";
    FLUSH PRIVILEGES;

    At this time your root password is reset to "abcd" and MySQL will now
    know the privileges and you'll be able to login with your new password:

    mysql -uroot -pabcd mysql
    HTH
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

Posting Permissions

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