Click to See Complete Forum and Search --> : Test Driving php5: The Install (questions)


jbottero
11-19-2005, 01:36 AM
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!

thorpe
11-20-2005, 02:06 AM
1/ i take it your talkijng about installation tutorials? most of these options wouldn't be aplained in such a tutorial, its up to you to read the manual and figure out what options you want to compile php with.

2/ i dont understand the question. both lines you posted are the same.

3/ this is because redhat has a different file layout to most other linux's. but really, this needs to point to wherever your mysql is.

4/ another question i dont understand. what is a kitchen sink install? do meen you want to install every available extension? there is no harm in doing so, i personnaly use a pretty big php at home. its fun to play around with all the extensions. the only problem is php has allot of dependencies. all these will need to be installed first and unless you really know what your doing with linux, i would let them go to there default locations.

5/ yes. but you might want to find yourself a tutorial on running php4 and php5 together.