|
-
Apr 18th, 2008, 05:35 AM
#1
Thread Starter
Frenzied Member
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!
-
Apr 19th, 2008, 06:23 AM
#2
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.
-
Apr 21st, 2008, 06:19 AM
#3
Thread Starter
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|