PDA

View Full Version : Compiling PHP


beetle
12-04-2002, 04:16 PM
Ok, I need to compile PHP, but have a couple questions for you folks. First of all, here is the configure command used by my current PHP installation. As can see from my comments, I pretty much don't have a clue as to what most of this stuff does../configure // duh
--prefix=/usr // Understand
--libdir=/usr/lib/php4 // Understand
--datadir=/usr/share/php // Understand
--enable-pic // Don't know
--enable-ftp=shared // Don't know
--enable-exif=shared // Don't know
--enable-sysvsem=shared // Don't know
--enable-sysvshm=shared // Don't know
--enable-shmop=shared // Don't know
--enable-calendar=shared // Don't know
--enable-posix=shared // Don't know
--enable-apc=shared // Don't know
--enable-wddx // Understand
--enable-sockets=shared // Understand
--enable-ucd-snmp-hack // Don't know
--enable-track-vars // Don't know
--enable-memory-limit // Don't know
--enable-bcmath // Don't know
--enable-inline-optimization // Don't know
--enable-sigchild // Don't know
--disable-rpath // Don't know
--disable-magic-quotes // Know
--with-layout=GNU // Don't know
--with-apxs // Know
--with-config-file-path=/etc // Understand
--with-iconv // Don't know
--with-pcre-regex=/usr // Understand
--with-xml // Understand
--with-expat-dir=/usr // Sorta Understand
--with-openssl // Understand
--with-unixODBC=shared // Don't know
--with-mysql=shared,/us // Understand
--with-ldap=shared // Don't know
--with-pgsql=shared // Understand
--with-gettext=shared // Don't know
--with-snmp=shared // Understand
--with-sybase-ct=shared,/usr // Don't know
--with-oci8=shared,/usr/local/oracle/product/8i // Sorta Understand
--with-swf=shared,/home/troels/rpm/BUILD/php-4.2.1/swflib // Sorta Understand
--with-gmp=shared // Don't know
--with-dom=shared // Don't know
--with-qtdom=shared,/usr/lib/qt-2.3.1 // Don't know
--with-curl=shared // Don't know
--with-ming=shared // Don't know
--with-imlib=shared // Don't know
--with-recode=shared // Don't know
--with-mcal=shared,/usr // Don't know
--with-zlib // Don't know
--with-mm // Don't knowNow, I need to add these// Stuff I need for eZ publish
--enable-trans-sid
--with-imap

// stuff I'd like for messing with XSLT
--enable-xslt
--with-xslt-sablotNow, since I obviously have no clue as to most of what is going on, I'm naturally cautious about proceeding. Some questions in my head are Does anything here create a conflict?
Do I need all this crap?
Is there something I'm missing that I'll regret?
Is there something I'm including that I'll regret?
If I remove the newlines and comments fromt the list above, will I have the exact configure command I need?I tried looking around on PHP.net and didn't find anything to help me decode all this, so either I'm blind or it's not there. Any help/links/advice/hatemail would be appreciated. Ok, maybe not the hatemail.

firepages
12-04-2002, 05:48 PM
How critical is the install ? a production server or a development one... i.e. have you time to play ;)

you certainly don't need all that stuff , check out the manual for each extension, and you can probably lose most of it !

the essentials are (IMO)

--with-apxs=/path/to/apxs
--with-mysql
--with-xml
--with-zlib-dir=/usr
--enable-sockets
--enable-ftp
--enable-track-vars
--enable-memory-limit
--disable-magic-quotes

(--disable-magic-quotes is debatable!)

you dont need to use --enable-trans-sid for PHP>= 4.2 as its automatically compiled anyway

for the sablatron check out the install notes in the manual entry for xslt as that aint so straightforward.

I would suggest GD is a good one to have & normally calendar & math functions are useful, but all depends, you are probably unlikely to want Oracle,shmop/unixODBC etc etc, if it helps this was my last compile... was supposed to have ssl as well but thats another story

./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-xml
--enable-bcmath
--enable-calendar
--enable-ftp
--with-gd=../gd-2.0.4
--with-jpeg-dir=/usr/local
--with-png-dir=/usr
--with-mcrypt
--enable-magic-quotes
--with-mysql
--with-pear
--with-pgsql=/usr/local/pgsql
--enable-sockets
--enable-track-vars
--enable-versioning
--with-zlib-dir=/usr

beetle
12-04-2002, 06:59 PM
Ok, I've narrowed it down to this

./configure
--enable-bcmath
--enable-calendar=shared
--enable-ftp=shared
--enable-sockets=shared
--enable-track-vars
--enable-versioning
--enable-xslt
--enable-wddx
--disable-magic-quotes
--with-apxs=/usr/local/apache/bin/apxs
--with-xml
--with-xslt-sablot
--with-dom=shared
--with-qtdom=shared,/usr/lib/qt-2.3.1
--with-expat-dir=/usr
--with-gd=../gd-2.0.4
--with-jpeg-dir=/usr/local
--with-png-dir=/usr
--with-imap
--with-openssl
--with-mcrypt
--with-pear
--with-mysql=shared,/usr
--with-pgsql=shared
--with-zlib

I decided to keep as many XML related options in there, because I think I'll need them later. Thanks for the heads up on the GD, because I will need that later as well. So, with that said, I just type all this as one line (with spaces between options) and that's my configure command? Am I missing anything? (directories or otherwise?)

firepages
12-05-2002, 02:03 AM
only 1 way to find out for sure :)

beetle
12-05-2002, 02:07 AM
Originally posted by firepages
only 1 way to find out for sure :) Hehe, troo troo. Fortunately, I have, as you stated, 'time to play'. :D