Jump to content

multiple versions and reconfigure


Recommended Posts

Hi

 

I want to reconfigure php --with-mysql. I thought this would be as simple as take the configure command from the phpinfo() page and run it from the php installation dir changing the --without to --with for mysql. But, (isn't there always a but?) I'm running php-5.2.2 and I can only find install directories for php-4.3.7 and php-5.0.1. 

Does anyone know why I appear to be using a different version to the ones installed?

As I haven't got a /usr/software/apache/php-5.2.2/configure file how do I reconfigure for mysql?

 

Cheers

Ann

 

OS: FC7 and a new install of about a month ago so I've no idea why I have two (or is it three) php versions.

[root@localhost]# which php
/usr/bin/php

[root@localhost]# /usr/bin/php -v
PHP 5.2.2 (cli) (built: May  8 2007 08:15:05) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

[root@localhost]# locate php-5.2
[root@localhost]#

[root@localhost]# locate php | grep configure
/usr/software/apache/php-4.3.7/configure
/usr/software/apache/php-4.3.7/configure.in
/usr/software/apache/php-4.3.7/TSRM/configure.in
/usr/software/apache/php-4.3.7/Zend/configure.in
/usr/software/apache/php-4.3.7/ext/bcmath/libbcmath/configure
/usr/software/apache/php-4.3.7/ext/bcmath/libbcmath/configure.in
/usr/software/apache/php-4.3.7/ext/libpng/configure
/usr/software/apache/php-4.3.7/ext/mbstring/libmbfl/configure.in
/usr/software/apache/php-5.0.1/configure
/usr/software/apache/php-5.0.1/configure.in
/usr/software/apache/php-5.0.1/TSRM/configure.in
/usr/software/apache/php-5.0.1/Zend/configure.in
/usr/software/apache/php-5.0.1/ext/bcmath/libbcmath/configure
/usr/software/apache/php-5.0.1/ext/bcmath/libbcmath/configure.in
/usr/software/apache/php-5.0.1/ext/mbstring/libmbfl/configure.in
/usr/software/apache/php-5.0.1/win32/build/configure.tail
[root@localhost]# 

 

The start of my phpinfo()...

 

PHP Version 5.2.2

System 	Linux localhost.localdomain 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT 2007 i686
Build Date 	May 8 2007 08:15:45
Configure Command 	'./configure' '--build=i386-koji-linux-gnu' '--host=i386-koji-linux-gnu' '--target=i386-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/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' 
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' 
'--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' '--without-mime-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' '--disable-json'

Server API 	Apache 2.0 Handler
Virtual Directory Support 	disabled
Configuration File (php.ini) Path 	/etc
Loaded Configuration File 	/etc/php.ini
Scan this dir for additional .ini files 	/etc/php.d
additional .ini files parsed 	/etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/zip.ini
PHP API 	20041225
PHP Extension 	20060613
Zend Extension 	220060519
Debug Build 	no
Thread Safety 	disabled
Zend Memory Manager 	enabled
IPv6 Support 	enabled
Registered PHP Streams 	php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps, zip
Registered Stream Socket Transports 	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters 	string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

Link to comment
https://forums.phpfreaks.com/topic/70900-multiple-versions-and-reconfigure/
Share on other sites

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.