Results 1 to 3 of 3

Thread: Linux server, enable PEAR --with-pear

  1. #1

    Thread Starter
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Linux server, enable PEAR --with-pear

    Hi all,

    I want to change a configuration for php, it is currently this: --without-pear, I want to change it to --with-pear.

    phpinfo is showing this:

    Code:
    './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
    How can I change this?

    I'm using a Linux dedicated server, I have SSH root access.

    I've read I need to do a ./configure command, but it's saying command not found, which directory should I be in?

    I don't even know where PHP is installed, search is showing 2 php.ini here:
    /usr/local/psa/admin/conf/php.ini
    /etc/php.ini

    The first one looks like part of Plesk control panel which I'm using.

    Cheers!
    Chris

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Linux server, enable PEAR --with-pear

    You need to rebuild PHP. Download the source into a directory then run ./configure --enable-so --with-pear plus whatever other options you need (use configure --help to show available options). Then run make and make install.

    This process is documented on the PHP website.


    Plesk and cPanel both control PHP installations themselves, thus splattering configuration files everywhere so that they can be managed via the panel interface.

    In fact, Plesk may have a graphical interface for rebuilding PHP, although I am unsure.

  3. #3

    Thread Starter
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Linux server, enable PEAR --with-pear

    Ok cheers mate. I fixed it by installing the 'go-pear.php' script, it hasn't changed the --without-pear, but it's fixed my problem.

    Nevertheless the info is useful as I've ran into this configure probem before.
    Chris

Posting Permissions

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



Click Here to Expand Forum to Full Width