I’m planning to do a test install of php5 along side my current php4. Php4 was installed when I installed my OS, RHEL3. I’ve noticed a HUGE number of ./configure options when I look at phpinfo():
'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--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-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs'
Question 1: Yet, in all of the tutorials I’ve looked at, very few of these are used. Why is this?
Question 2: Also, one in particular that I see in these tutorials is --with-apxs=/usr/local/apache/bin/apxs, but this is not what my current install has, the closest being --with-apxs=/usr/local/apache/bin/apxs. Why is this?
Question 3: Since I also want php5 to work with both MySQL and Postgres, I’m looking at these configurations as well. Many examples show --with-mysql=/usr/local/mysql/, yet my php4 install shows --with-mysql=shared,/usr (note the comma), which are nothing simular. Any ideas?
Question 4: Because I’m just playing with php5 for now, I’d like a “kitchen sink” installation, but I’m really lost with these ./configure options. Maybe this mess is a Red Hat thing? I hear they like to put things in odd places, but I guess at this point, with this server, I should keep things where they are, and maybe get a little more “hands-on” next time?
Question 5: Can I install php5 in a different location from php4, make appropriate changes in the Apache httpd.conf file, and if things don't work out, re-edit httpd.conf to move back to php4? Php4 will still be there?
THANKS!