One of the above mentioned to enable libxml. Instead use disable-all and enable only the required extensions. Otherwise it will complain of libxml for extensions that depend on libxml.
Configure options
Zoznam konfiguračných volieb jadra
Nižšie je čiastočný zoznam configuračných volieb používaných PHP configure skriptami pri kompilácii v prostrediach podobných Unixu. Väčšina konfiguračných vlastností je vymenovaná vo svojich príslušných lokáciách na na referenčných stánkach rozšírenia a nie tu. Pre úplný aktuálny zoznam konfiguračných volieb, spustite ./configure --help vo vašom zdrojovom adresári PHP po spustení autoconf (tiež pozri Inštalačnú kapitolu). Tiež vás môže zaujímať čítanie dokumentácie » GNU configure pre informácie o dodatočných configure voľbách ako je --prefix=PREFIX.
Note: Tieto sa používajú iba počas kompilácie. Ak chcete PHP runtime konfiguráciu pozmeniť, prosím pozrite si kapitolu o Runtime Konfigurácii.
Konfiguračné Voľby v PHP 4
Note: Tieto voľby sa používajú iba v PHP 4 od PHP 4.1.0. Niektoré sú dostupné v starších verziách PHP 4, niektoré dokonca PHP 3, niektoré iba v PHP 4.1.0. Ak chcete kompilovať staršiu verziu, niektoré voľby pravdepodobne nebudú dostupné.
Misc options
- --enable-debug
-
Kompiluje s ladiacimi symbolmi.
- --with-layout=TYPE
-
Nastavuje ako sp inštalované súbory rozvrhnuté. Typ je jeden z PHP (default) alebo GNU.
- --with-pear=DIR
-
Inštaluje PEAR V DIR (default PREFIX/lib/php).
- --without-pear
-
Neinštaluje PEAR.
- --enable-sigchild
-
Povolí vlastný SIGCHLD handler PHP.
- --disable-rpath
-
Zakáže poskytovanie runtime vyhľadávanie ciest runtime knižnice.
- --enable-libgcc
-
Povolí explicitne linkovanie proti libgcc.
- --enable-php-streams
-
Zahŕňa experimentálne PHP prúdy. Nepoužívajte pokiaľ nepretestujete kód!
- --with-zlib-dir[=DIR]
-
Definuje umiestnenie inštalačného adresára zlib.
- --enable-trans-sid
-
Povolí propagáciu id transparentného sedenia. Platné iba pre PHP 4.1.2 alebo nižšieho. Od PHP 4.2.0, trans-sid vlastnosť je vždy kompilovaná.
- --with-tsrm-pthreads
-
Používa POSIX thready (default).
-
Urobiť zdielané knižnice [default=yes].
- --enable-static[=PKGS]
-
Urobiť statické knižnice [default=yes].
- --enable-fast-install[=PKGS]
-
Optimalizovať pre rýchlu inštaláciu [default=yes].
- --with-gnu-ld
-
Predpokladá, že C kompilátor používa GNU ld [default=no].
- --disable-libtool-lock
-
Vyhnúť sa uzamykaniu (môže porušiť paralelne buildy).
- --with-pic
-
Pokúsi sa použiť iba PIC/ne-PIC objekty [default=use both].
- --enable-memory-limit
-
Kompiluje s podporou limitu pamäte.
- --disable-url-fopen-wrapper
-
Zakázať URL fopen wrapper, ktorý umožňuje pristupovanie k súborom cez HTTP alebo FTP.
- --enable-versioning
-
Exportuje iba vyžadované symboly. Pozri INSTALL pre viac informácii.
- --with-imsp[=DIR]
-
Zahŕňa IMSp podporu (DIR je include adresár IMSPur a adresár libimsp.a). Iba PHP 3!
- --with-mck[=DIR]
-
Zaŕňa Cybercash MCK podporu. DIR je cybercash mck build adresár, východzí /usr/src/mck-3.2.0.3-linux pre pomoc pozri v extra/cyberlib. Iba PHP 3!
- --with-mod-dav=DIR
-
Zahŕňa DAV podporu cez mod_dav Apache-u, DIR je inštalčný adresár mod_dav (Iba Apache module verzia!) Iba PHP 3!
- --enable-debugger
-
Kompiluje s funkciami vzdialeného ladenia. Iba PHP 3!
- --enable-versioning
-
Využíva výhodu verziovania a rozhľadu, ktorý poskytoje Solaris 2.x a Linux. Iba PHP 3!
PHP options
- --enable-maintainer-mode
-
Povoliť tvorbu pravidiel u závislosťí nepotrebných (a niekedy metiacich) bežnému inštalátoru.
- --with-config-file-path=PATH
-
Nastavuje cestu, v ktorej sa má hľadať php.ini, default je PREFIX/lib.
- --enable-safe-mode
-
Povoliť safe mód ako default.
- --with-exec-dir[=DIR]
-
Povoliť iba spustiteľné súbory v DIR, keď safe mód default je /usr/local/php/bin.
- --enable-magic-quotes
-
Povoliť magic quotes ako default.
-
Zakázať krátky <? start tag ako default.
SAPI options
Následujúci zoznam obsahuje dostupný SAPI (Server Application Programming Interface) pre PHP.
- --with-aolserver=DIR
-
Určuje cestu k nainštalovanému AOLserveru.
- --with-apxs[=FILE]
-
Vybudovať zdielaný Apache modul. FILE je voliteľná cesta k Apache apxs nástroju; default je apxs. Uistite sa, že určíte verziu apxs, ktorá je momentálne nainštalovaná vo vašom systéme a NIE tú, ktorá je apache zdrojovom tarballe.
- --with-apache[=DIR]
-
Vybudovať statický Apache modul. DIR je top-level Apache build adresár, default je /usr/local/apache.
- --with-mod_charset
-
Povolí prenosové tabuľky pre mod_charset (Ruský Apache).
- --with-apxs2[=FILE]
-
Vybudovať zdielaný Apache 2.0 modul. FILE je voliteľná cesta k Apache apxs nástroju; default je apxs.
- --with-caudium=DIR
-
Vybudovať PHP ako Pike modul pre použitie si Caudium. DIR je adresár Caudium servera, s východzou hodnotou /usr/local/caudium/server.
- --disable-cli
-
Dostupné s PHP 4.3.0. Zakázať build CLI verzie PHP (to prinúti --without-pear). Ďalšie informácie sú dostupné v sekcii o Používaní PHP z príkazového riadku.
- --enable-embed[=TYPE]
-
Povoliť budovanie zabudovanej SAPI knižnice. TYPE je buď shared alebo static, default je shared. Dostupné s PHP 4.3.0.
- --with-fhttpd[=DIR]
-
Vybudovať fhttpd modul. DIR je adresár zdrojov fhttpd, default je /usr/local/src/fhttpd. Už nie je dostupná od PHP 4.3.0.
- --with-isapi=DIR
-
Vybudovať PHP ako ISAPI modul pre použitie s Zeus.
- --with-nsapi=DIR
-
Uričiť cestu k inštalovanému Netscape/iPlanet/SunONE Webserveru.
- --with-phttpd=DIR
-
Zatiaľ žiadne informácie.
- --with-pi3web=DIR
-
Vybudovať PHP ako modul pre použitie s Pi3Web.
- --with-roxen=DIR
-
Vybudovať PHP ako Pike modul. DIR je základný Roxen adresár, normálne /usr/local/roxen/server.
- --enable-roxen-zts
-
Vybudovať Roxen modul pomocou Zend Thread Safety.
- --with-servlet[=DIR]
-
Zahŕnúť servlet podporu. DIR je základný inštalačný adresár pre JSDK. Tento SAPI vyžaduje, aby java rozšírenie bolo vytvorené ako zdielané dl.
- --with-thttpd=SRCDIR
-
Vybudovať PHP ako thttpd modul.
- --with-tux=MODULEDIR
-
Vybudovať PHP ako TUX modul (iba Linux).
- --with-webjames=SRCDIR
-
Vybudvať PHP ako WebJames modul (iba RISC OS)
- --disable-cgi
-
Zakázať budovanie CGI verzie PHP. Dostupné s PHP 4.3.0.
- --enable-force-cgi-redirect
-
Povoliť bezpečnostnú kontrolu interných presmerovaní servera. Toto by ste mali použiť, ak bežíte na CGI verzii s Apache.
- --enable-discard-path
-
Ak je toto povolené, PHP CGI binary sa môže bezpečne umiestniť mimo web stromu a ľudia nebudú môcť obísť .htaccess bezpečnosť.
- --with-fastcgi
-
Vybudovať PHP ako FastCGI aplikáciu. Nie je viac podporované od PHP 4.3.0, miesto toho by ste mali použiť --enable-fastcgi.
- --enable-fastcgi
-
Ak je toto povolené, CGI modul bude vybudovaný tiež s podporou pre FastCGI Dostupné od PHP 4.3.0
- --disable-path-info-check
-
Ak je toto zakázané, cesty ako /info.php/test?a=b nebudú fungovať. Dostupné od PHP 4.3.0. Pre viac informácii pozri » Apache Manuál.
Configure options
21-Jul-2008 05:35
04-Mar-2008 08:07
If you have compiled php without specifying a --with-config-file-path=PATH
then reconfigure php using --with-config-file-path=PATH, you must do a "make clean" then "make" & "make install" before reinstalling. If you don't make clean first, phpinfo will report the new location set by --with-config-file-path=PATH, but actually be looking for php.ini in the old location.
I'm not sure if this is intended behavior or not but this is a gotcha that got me after compiling, then reconfiguring, then doing make install. It caused a little head scratching.
It's good practice to do make clean after any configuration change anyway. Bite the bullet and take the time to do it right to avoid unexpected module behavior.
-Neil
07-Feb-2008 12:52
It's not stated clearly anywhere in the documentation, but the CGI version won't build if you specify the --with-apxs= option to configure (the CLI version will, however). The only way I found to have *both* Apache module *and* CGI versions of PHP installed was to run configure/make twice - first with --with-apxs= option, to build the Apache module, then without it, to build the CGI binary.
I think if the doc says that the CGI version is built by default, it *should* be built by default, unless you specify --disable-cgi. If --with-apxs= automatically disables CGI, the --disable-cgi option doesn't seem to have any use.
30-Nov-2006 01:26
Note: PHP5 has a zillion dependencies on libxml, it is not practical to disable it, you must install it.
libxml can be found here: http://www.xmlsoft.org/
But this is actualy a good thing; "Almost everything regarding XML support was rewritten for PHP 5".
For more info see: http://www.zend.com/php5/articles/php5-xmlphp.php
08-Jul-2005 06:26
If you'e compiling a shared extension (e.g. pspell) whose libs & headers are not in the usual place, use the following:
--with-pspell=shared,/my/custom/path/to/pspell/
Took me forever to figure out, since Google had no answer for me.
14-Apr-2005 12:15
If some options do not become active after doing a configure; make; make install, try to do a make clean after configure. That worked for me when enabling memory limts (--enable-memory-limit).
>/usr/local/lib needs to be listed in /etc/ld.so.conf, but it should already
>be there on most systems. The above notes all apply to Linux only,
>but may be useful on other platforms as well
It is much simpler just to put /usr/local/pgsql/lib into /etc/ld.so.conf and then run ldconfig.
05-Oct-2003 05:32
If you're trying to build with --with-imap and your uw-imap stuff is built SSLTYPE=nopwd then you will fail the "Checking if IMAP works" check if you don't also build with --with-imap-ssl
Another hour and a half of my life lost to find that one.
Steve
14-Aug-2002 12:06
[Editor's note: The reason why some general options for the "configure" scripts are not documented is that said script is part of the GNU autoconf tools, and as such its general options are documented elsewhere, e.g.: http://www.gnu.org/manual/autoconf/index.html and http://www.airs.com/ian/configure/. Some are also documented in the INSTALL file that comes with the source distribution.]
The --prefix=PREFIX configure option isn't mentioned here. It apparently defaults to /usr/local, and sets the position of the php includes and libs. (in PREFIX/include/php and PREFIX/lib/php)
14-Apr-2002 10:42
RE: Servlet support, I found that you need to configure --with-servlet=/usr/local/tomcat/common.
I found checking the configure script (always a good idea) that it looks for {dir_prefix}/lib/servlet.jar file, and this is found in the tomcat/common directory.
Hope this helps a bit!
14-Aug-2001 12:05
--enable-sigchild is only relevent to users of Oracle who are having <defunc> processes.
03-Nov-2000 10:27
If you are building with --with-pgsql=/some/dir, make sure that you still have libpq loaded up by ldconfig. I compiled and installed postgres from the tarball and then had to manually create the symlinks in /usr/local/lib. In particular, after you have built and installed postgres, you need to do the following (presuming you installed to /usr/local/pgsql):
# cd /usr/local/lib
# ln -s ../pgsql/lib/libpq.so.2.1 libpq.so.2.1
# ln -s ../pgsql/lib/libpq.so.2.1 libpq.so.2
# ln -s ../pgsql/lib/libpq.so.2.1 libpq.so
# ldconfig
/usr/local/lib needs to be listed in /etc/ld.so.conf, but it should already be there on most systems. The above notes all apply to Linux only, but may be useful on other platforms as well.
--sam
