Error squirrelmail witch mysql

Discussion in 'Installation/Configuration' started by mccharlet, Mar 17, 2007.

  1. mccharlet

    mccharlet Member HowtoForge Supporter

    I wand use mysql for storage address

    I'm create a database and configures squirrelmail

    But i have this error with configtest (https://domain.tld:81/webmail/src/configtest.php)

    Checking database functions...

    ERROR: Required PHP PEAR DB support is not available. Is PEAR installed and is the include path set correctly to find DB.php? The include path is now:.:.


    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The ISPConfig PHP installation for the webserver on port 81 does not contain pear. You can try to install pear manually with the pear installer and then set the include patch for the ISPConfig PHP to use this pear installation.
     
  3. mccharlet

    mccharlet Member HowtoForge Supporter

    How to install pear for the ispconfig?
     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. mccharlet

    mccharlet Member HowtoForge Supporter

  6. kidalabama

    kidalabama New Member

    i have got same problem

    how can i active ispconfig's apache server PEAR support?

    squirrel mail addressbook not running without PEAR.
    the error is:
    ERROR: Required PHP PEAR DB support is not available. Is PEAR installed and is the include path set correctly to find DB.php? The include path is now:.:.
     
  7. mccharlet

    mccharlet Member HowtoForge Supporter

  8. kidalabama

    kidalabama New Member

    pear install ispconfig problem

    lynx -source http://pear.php.net/go-pear |sudo ./php -q

    i used this command but i get this error message


    Welcome to go-pear!

    Go-pear will install the 'pear' command and all the files needed by
    it. This command is your tool for PEAR installation and maintenance.

    Go-pear also lets you download and install the following optional PEAR
    packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.


    If you wish to abort, press Control-C now, or press Enter to continue:

    HTTP proxy (http://user:[email protected]:port), or Enter for none::

    Below is a suggested file layout for your new PEAR installation. To
    change individual locations, type the number in front of the
    directory. Type 'all' to change all of them or simply press Enter to
    accept these locations.

    1. Installation prefix ($prefix) : /root/ispconfig/php
    2. Temporary files directory : $prefix/temp
    3. Binaries directory : $prefix/bin
    4. PHP code directory ($php_dir) : $prefix/PEAR
    5. Documentation base directory : $php_dir/docs
    6. Data base directory : $php_dir/data
    7. Tests base directory : $php_dir/tests

    1-7, 'all' or Enter to continue:

    The following PEAR packages are bundled with PHP: PEAR_Frontend_Web-beta,
    PEAR_Frontend_Gtk2, MDB2.
    Would you like to install these as well? [Y/n] :

    Loading zlib: failed
    Downloading uncompressed packages

    Bootstrapping Installer...................
    Bootstrapping PEAR.php............(remote) ok
    Bootstrapping Archive/Tar.php............(remote) ok
    Bootstrapping Console/Getopt.php............(remote) ok

    Extracting installer..................
    Downloading package: PEAR.............ok
    Downloading package: Structures_Graph....ok

    Preparing installer..................

    XML Extension not found
     
    Last edited: Dec 28, 2008
  9. falko

    falko Super Moderator Howtoforge Staff

    I think it's enough if you use the same include_path in /root/ispconfig/php/php.ini as in your normal php.ini. You can then use the "normal" PEAR to install packages.
     
  10. kidalabama

    kidalabama New Member

    php.ini file.

    in /etc/php5/ folder php.ini file include_path comment out.

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: "/path1:/path2"
    ;include_path = ".:/usr/share/php"

    i cant understand, what did you say.

    in the /root7ispconfig/php/ folder, this value is

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
     
    Last edited: Dec 29, 2008
  11. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    updatedb
    locate DB.php
    ?
     
  12. kidalabama

    kidalabama New Member

    answer

    updatedb
    locate DB.php
    /usr/share/php/DB.php
    /usr/share/php/PEAR/DependencyDB.php
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont think that a global include will work. The suphp wrapper script is made to prevent this. You will have to install pear locally in the website.

    The error message you got menas that the xml extension is missing. have you installed all php modules as described in the perfect setup guide?
     

Share This Page