Miscellaneous configure options

Below is a partial list of configure options used by the PHP configure scripts when compiling in Unix-like environments. Most configure options are listed in their appropriate locations and not here. For a complete up-to-date list of configure options, run ./configure --help in your PHP source directory after running autoconf (see also the Installation chapter). You may also be interested in reading the GNU configure documentation for information on additional configure options such as --prefix=PREFIX.

Nota: These are only used at compile time. If you want to alter PHP's runtime configuration, please see the chapter on Runtime Configuration.

Configure Options in PHP 4

Nota: These options are only used in PHP 4 as of PHP 4.1.0. Some are available in older versions of PHP 4, some even in PHP 3, some only in PHP 4.1.0. If you want to compile an older version, some options will probably not be available.

Opzioni grafiche

--with-imagick

L'estensione imagick è stata spostata da PECL a PEAR e può essere reperita qui. Le istruzioni per l'installazione possono essere reperite nel sito di PEAR.

Soltanto l'opzione --with-imagick è supportata da PHP 3 a meno di non seguire le istruzioni presenti nel sito di PEAR.

Opzioni varie

--enable-debug

Compila con il simbolico per il debug.

--with-layout=TYPE

Imposta come dovranno essere disposti i file installati. Utilizzare PHP (default) o GNU.

--with-pear=DIR

Installa PEAR in DIR (default PREFIX/lib/php).

--without-pear

Non installa PEAR.

--enable-sigchild

Abilita la gestione del segnale SIGCHLD da parte di un modulo proprio del PHP.

--disable-rpath

Disabilità il passaggio di directory addizionali per la ricerche delle librerie.

--enable-libgcc

Abilita esplicitamente il link nei confronti di libgcc.

--enable-php-streams

Include il modulo sperimentale degli streams. Non utilizzarlo a meno di non volere eseguire dei test.

--with-zlib-dir=<DIR>

Specificare la directory di installzaione di zlib.

--enable-trans-sid

Abilita la propagazione trasparente dell'id di sessione. Questa opzione è valida per il PHP 4.1.2 o precedenti. Dalla versione 4.2.0 l'opzione trans-sid è sempre compilata.

--with-tsrm-pthreads

Utilizza i threads POSIX (default).

--enable-shared[=PKGS]

Compila con librerie condivise [default=yes].

--enable-static[=PKGS]

Compila con librerie statiche [default=yes].

--enable-fast-install[=PKGS]

Ottimizza per un'installazione rapida [default=yes].

--with-gnu-ld

Assume che il compilatore C utilizzi GNU ld [default=no].

--disable-libtool-lock

Impedisce il locking (può interrompere compile parallele).

--with-pic

Tenta di utilizzare soltanto oggetti PIC/non-PIC [default=use both].

--enable-memory-limit

Compila con il supporto al limite di memoria.

--disable-url-fopen-wrapper

Disabilita il supporto agli URL per fopen che permette l'accesso ai file via HTTP o FTP.

--enable-versioning

Esporta soltanto i simboli richiesti. Vedere INSTALL per maggiori dettagli.

--with-imsp[=DIR]

Include il supporto a IMSp (DIR indica la directory con gli include di IMSP's e con libimsp.a. Soltanto PHP 3!

--with-mck[=DIR]

Include il supporto a Cybercash MCK. DIR è la directory di compila di cybercash mck, per default /usr/src/mck-3.2.0.3-linux, per informazioni vedere extra/cyberlib. Soltanto PHP 3!

--with-mod-dav=DIR

Include il supporto DAV attraverso il mod_dav di Apache, DIR indica la directory di installazione di mod_dav (soltanto nella versione di PHP compilata come modulo di Apache!). Soltanto PHP 3!

--enable-debugger

Compila con le funzioni di debug remoto. Soltanto PHP 3!

--enable-versioning

Utilizza il sistema di versioning e scoping fornito da Solaris 2.x e Linux. Soltanto PHP 3!

Opzioni di PHP

--enable-maintainer-mode

Abilita la creazione di regole e dipendenze non utili (e qualche volta confuse) al normale utente.

--with-config-file-path=PATH

Imposta il percorso nel quale cercare il php.ini, default PREFIX/lib.

--enable-safe-mode

Abilità la modalità sicura per default.

--with-exec-dir[=DIR]

Abilita l'esecuzione in DIR quando la modalità sicura ha come default /usr/local/php/bin.

--enable-magic-quotes

Abilita magic quotes per default.

--disable-short-tags

Disabilita i tag abbreviati <? per default.

SAPI options

The following list contains the available SAPI&s (Server Application Programming Interface) for PHP.

--with-aolserver=DIR

Specify path to the installed AOLserver.

--with-apxs[=FILE]

Build shared Apache module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs. Make sure you specify the version of apxs that is actually installed on your system and NOT the one that is in the apache source tarball.

--with-apache[=DIR]

Build a static Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache.

--with-mod_charset

Enable transfer tables for mod_charset (Russian Apache).

--with-apxs2[=FILE]

Build shared Apache 2.0 module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.

--with-caudium=DIR

Build PHP as a Pike module for use with Caudium. DIR is the Caudium server dir, with the default value /usr/local/caudium/server.

--disable-cli

Available with PHP 4.3.0. Disable building the CLI version of PHP (this forces --without-pear). More information is available in the section about Using PHP from the command line.

--enable-embed[=TYPE]

Enable building of the embedded SAPI library. TYPE is either shared or static, which defaults to shared. Available with PHP 4.3.0.

--with-fhttpd[=DIR]

Build fhttpd module. DIR is the fhttpd sources directory, defaults to /usr/local/src/fhttpd. No longer available as of PHP 4.3.0.

--with-isapi=DIR

Build PHP as an ISAPI module for use with Zeus.

--with-nsapi=DIR

Specify path to the installed Netscape/iPlanet/SunONE Webserver.

--with-phttpd=DIR

No information yet.

--with-pi3web=DIR

Build PHP as a module for use with Pi3Web.

--with-roxen=DIR

Build PHP as a Pike module. DIR is the base Roxen directory, normally /usr/local/roxen/server.

--enable-roxen-zts

Build the Roxen module using Zend Thread Safety.

--with-servlet[=DIR]

Include servlet support. DIR is the base install directory for the JSDK. This SAPI requires the java extension must be built as a shared dl.

--with-thttpd=SRCDIR

Build PHP as thttpd module.

--with-tux=MODULEDIR

Build PHP as a TUX module (Linux only).

--with-webjames=SRCDIR

Build PHP as a WebJames module (RISC OS only)

--disable-cgi

Disable building CGI version of PHP. Available with PHP 4.3.0.

--enable-force-cgi-redirect

Enable the security check for internal server redirects. You should use this if you are running the CGI version with Apache.

--enable-discard-path

If this is enabled, the PHP CGI binary can safely be placed outside of the web tree and people will not be able to circumvent .htaccess security.

--with-fastcgi

Build PHP as FastCGI application. No longer available as of PHP 4.3.0, instead you should use --enable-fastcgi.

--enable-fastcgi

If this is enabled, the CGI module will be built with support for FastCGI also. Available since PHP 4.3.0

--disable-path-info-check

If this is disabled, paths such as /info.php/test?a=b will fail to work. Available since PHP 4.3.0. For more information see the Apache Manual.