Date: 09/13/00
- Next message: Stephen Long: "[PHP-DOC] Remove me from list please.... dont flame until you READ"
- Previous message: Jouni Ahto: "[PHP-DOC] cvs: phpdoc /de/functions pgsql.xml /en/functions pgsql.xml /ja/functions pgsql.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
rafael Wed Sep 13 06:44:04 2000 EDT
Modified files:
/phpdoc/es/chapters install.xml
Log:
Traduction
Index: phpdoc/es/chapters/install.xml
diff -u phpdoc/es/chapters/install.xml:1.2 phpdoc/es/chapters/install.xml:1.3
--- phpdoc/es/chapters/install.xml:1.2 Thu Aug 24 00:18:46 2000
+++ phpdoc/es/chapters/install.xml Wed Sep 13 06:44:03 2000
@@ -1,1431 +1,1393 @@
- <chapter id="installation">
- <title>Installation</title>
-
- <sect1 id="downloading">
- <title>Downloading the latest version</title>
- <simpara>
- The source code, and binary distributions for some platforms
- (including Windows), can be found at <literal><ulink
- url="&url.php;">&url.php;</ulink></literal>.
- </simpara>
- </sect1>
-
- <sect1 id="install-unix">
- <title>Installation on UNIX systems</title>
-
- <para>
- This section will guide you through the configuration and
- installation of PHP. Prerequisite knowledge and software:
-
- <itemizedlist>
- <listitem>
- <simpara>
- Basic UNIX skills (being able to operate "make" and a C
- compiler)
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- An ANSI C compiler
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- A web server
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
-
- <sect2>
- <title>
- Quick Installation Instructions (Apache Module Version)
- </title>
-
- <para>
- <informalexample>
- <programlisting>
-1. gunzip apache_1.3.x.tar.gz
-2. tar xvf apache_1.3.x.tar
-3. gunzip php-x.x.x.tar.gz
-4. tar xvf php-x.x.x.tar
-5. cd apache_1.3.x
-6. ./configure --prefix=/www
-7. cd ../php-x.x.x
-8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
-9. make
-10. make install
-11. cd ../apache_1.3.x
-12. for PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
- for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
-13. make
-14. make install
-
- Instead of this step you may prefer to simply copy the httpd binary
- overtop of your existing binary. Make sure you shut down your
- server first though.
-
-15. cd ../php-x.x.x
-16. for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini
- for PHP 4: cp php.ini-dist /usr/local/lib/php.ini
-
- You can edit your .ini file to set PHP options. If
- you prefer this file in another location, use
- --with-config-file-path=/path in step 8.
-
-17. Edit your httpd.conf or srm.conf file and add:
-
- For PHP 3: AddType application/x-httpd-php3 .php3
- For PHP 4: AddType application/x-httpd-php .php
-
- You can choose any extension you wish here. .php is simply the one
- we suggest.
-
-18. Use your normal procedure for starting the Apache server. (You must
- stop and restart the server, not just cause the server to reload by
- use a HUP or USR1 signal.)
- </programlisting>
- </informalexample>
- </para>
-
- </sect2>
-
- <sect2 id="with-apache">
- <title>Apache Module</title>
- <para>
- PHP can be compiled in a number of different ways. Here is a
- quick summary:
- <informalexample>
- <programlisting>
-./configure --with-apxs --with-pgsql
- </programlisting>
- </informalexample>
- </para>
- <para>
- This will create a <filename>libphp4.so</filename> shared library
- that is loaded into Apache using a LoadModule line in Apache's
- <filename>httpd.conf</filename> file. The PostgreSQL support is
- embedded into this <filename>libphp4.so</filename> library.
- </para>
- <para>
- <informalexample>
- <programlisting>
-./configure --with-apxs --with-pgsql=shared
- </programlisting>
- </informalexample>
- </para>
- <para>
- This will again create a <filename>libphp4.so</filename> shared
- library for Apache, but it will also create a
- <filename>pgsql.so</filename> shared library that is loaded into
- PHP either by using the extension directive in
- <filename>php.ini</filename> file or by loading it explicitly in
- a script using the <function>dl</function> function.
- </para>
- <para>
- <informalexample>
- <programlisting>
-./configure --with-apache=/path/to/apache_source --with-pgsql
- </programlisting>
- </informalexample>
- </para>
- <para>
- This will create a <filename>libmodphp4.a</filename> library, a
- <filename>mod_php4.c</filename> and some accompanying files and
- copy this into the <literal>src/modules/php4</literal> directory
- in the Apache source tree. Then you compile Apache using
- <literal>--activate-module=src/modules/php4/libphp4.a</literal>
- and the Apache build system will create
- <filename>libphp4.a</filename> and link it statically into the
- <filename>httpd</filename> binary. The PostgreSQL support is
- included directly into this <filename>httpd</filename> binary, so
- the final result here is a single <filename>httpd</filename>
- binary that includes all of Apache and all of PHP.
- </para>
- <para>
- <informalexample>
- <programlisting>
-./configure --with-apache=/path/to/apache_source --with-pgsql=shared
- </programlisting>
- </informalexample>
- </para>
- <para>
- Same as before, except instead of including PostgreSQL support
- directly into the final <filename>httpd</filename> you will get a
- <filename>pgsql.so</filename> shared library that you can load
- into PHP from eihter the <filename>php.ini</filename> file or
- directly using <function>dl</function>.
- </para>
- </sect2>
-
- <sect2 id="with-fhttpd">
- <title>fhttpd Module</title>
-
- <para>
- To build PHP as an fhttpd module, answer "yes" to "Build as an
- fhttpd module?" (the <option><link linkend="with-fhttpd">
- --with-fhttpd</link>=<replaceable>DIR</replaceable></option>
- option to configure) and specify the fhttpd source base
- directory. The default directory is <filename
- class="directory">/usr/local/src/fhttpd</filename>. If you are
- running fhttpd, building PHP as a module will give better
- performance, more control and remote execution
- capability.
- </para>
- </sect2>
-
- <sect2 id="install-cgi">
- <title>CGI version</title>
- <para>
- The default is to build PHP as a CGI program. If you are
- running a web server PHP has module support for, you should
- generally go for that solution for performance reasons. However,
- the CGI version enables Apache users to run different
- PHP-enabled pages under different user-ids. Please make sure
- you read through the <link linkend="security">Security
- chapter</link> if you are going to run PHP as a CGI.
- </para>
- </sect2>
-
- <sect2 id="database-support-options">
- <title>Database Support Options</title>
- <para>
- PHP has native support for a number of databases (as well as
- ODBC):
- </para>
-
- <sect3 id="with-adabas">
- <title>Adabas D</title>
- <synopsis>
- <option>--with-adabas<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Enables Adabas D support. The parameter is the Adabas D
- install directory and defaults to <filename
- class="directory">/usr/local/adabasd</filename>.
- </simpara>
- <simpara>
- <ulink url="&url.adabas;">Adabas home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-dbase">
- <title>dBase</title>
- <synopsis>
- <option>--with-dbase</option>
- </synopsis>
- <simpara>
- Enables the bundled DBase support. No external libraries are
- required.
- </simpara>
- </sect3>
-
- <sect3 id="with-filepro">
- <title>filePro</title>
- <synopsis>
- <option>--with-filepro</option>
- </synopsis>
- <simpara>
- Enables the bundled read-only filePro support. No external
- libraries are required.
- </simpara>
- </sect3>
-
- <sect3 id="with-ibm-db2">
- <title>IBM DB2</title>
- <synopsis>
- <option>--with-ibm-db2<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Enables IBM DB2 support. The parameter to this option is the
- DB2 base install directory and defaults to
- <filename class="directory">/home/db2inst1/sqllib</filename>.
- </simpara>
- <simpara>
- <ulink url="&url.ibmdb2;">IBM DB2 home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-msql">
- <title>mSQL</title>
- <synopsis>
- <option>--with-msql<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Enables mSQL support. The parameter to this option is the mSQL
- install directory and defaults to <filename
- class="directory">/usr/local/Hughes</filename>. This is the
- default directory of the mSQL 2.0 distribution.
- <command>configure</command> automatically detects which mSQL
- version you are running and PHP supports both 1.0 and 2.0, but
- if you compile PHP with mSQL 1.0, you can only access mSQL 1.0
- databases, and vice-versa.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.msql">mSQL Configuration</link>
- Directives in the <link linkend="configuration.file">configuration
- file</link>.
- </simpara>
- <simpara>
- <ulink url="&url.msql;">mSQL home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-mysql">
- <title>MySQL</title>
- <synopsis>
- <option>--with-mysql<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Enables MySQL support. The parameter to this option is the
- MySQL install directory and defaults to <filename
- class="directory">/usr/local</filename>. This is the default
- installation directory of the MySQL distribution.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.mysql">MySQL
- Configuration</link> Directives in the <link
- linkend="configuration.file">configuration file</link>.
- </simpara>
- <simpara>
- <ulink url="&url.mysql;">MySQL home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-iodbc">
- <title>iODBC</title>
- <synopsis>
- <option>--with-iodbc<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes iODBC support. This feature was first developed for
- iODBC Driver Manager, a freely redistributable ODBC driver
- manager which runs under many flavors of UNIX. The parameter to
- this option is the iODBC installation directory and defaults to
- <filename class="directory">/usr/local</filename>.</simpara>
- <simpara>
- <ulink url="&url.freeodbc;">FreeODBC home page</ulink>
- or <ulink url="&url.iodbc;">iODBC home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-openlink">
- <title>OpenLink ODBC</title>
- <synopsis>
- <option>--with-openlink<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes OpenLink ODBC support. The parameter to this option is
- the OpenLink ODBC installation directory and defaults to
- <filename class="directory">/usr/local/openlink</filename>.
- </simpara>
- <simpara>
- <ulink url="&url.openlink;">OpenLink Software's home
- page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-oracle">
- <title>Oracle</title>
- <synopsis>
- <option>--with-oracle<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes Oracle support. Has been tested and should be working
- at least with Oracle versions 7.0 through 7.3. The parameter is
- the <envar>ORACLE_HOME</envar> directory. You do not have to
- specify this parameter if your Oracle environment has been set
- up.</simpara>
- <simpara>
- <ulink url="&url.oracle;">Oracle home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-pgsql">
- <title>PostgreSQL</title>
- <synopsis>
- <option>--with-pgsql<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes PostgreSQL support. The parameter is the PostgreSQL
- base install directory and defaults to <filename
- class="directory">/usr/local/pgsql</filename>.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.pgsql">Postgres
- Configuration</link> Directives in the <link
- linkend="configuration.file">configuration file</link>.
- </simpara>
- <simpara>
- <ulink url="&url.pgsql;">PostgreSQL home
- page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-solid">
- <title>Solid</title>
- <synopsis>
- <option>--with-solid<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes Solid support. The parameter is the Solid install
- directory and defaults to <filename
- class="directory">/usr/local/solid</filename>.
- </simpara>
- <simpara>
- <ulink url="&url.solid;">Solid home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-sybase">
- <title>Sybase</title>
- <synopsis>
- <option>--with-sybase<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes Sybase support. The parameter is the Sybase install
- directory and defaults to <filename
- class="directory">/home/sybase</filename>.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.sybase">Sybase
- Configuration</link> Directives in the <link
- linkend="configuration.file">configuration file</link>.
- </simpara>
- <simpara>
- <ulink url="&url.sybase;">Sybase home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-sybase-ct">
- <title>Sybase-CT</title>
- <synopsis>
- <option>--with-sybase-ct<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes Sybase-CT support. The parameter is the Sybase-CT
- install directory and defaults to <filename
- class="directory">/home/sybase</filename>.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.sybct">Sybase-CT
- Configuration</link> Directives in the <link
- linkend="configuration.file">configuration
- file</link>.
- </simpara>
- </sect3>
-
- <sect3 id="with-velocis">
- <title>Velocis</title>
- <synopsis>
- <option>--with-velocis<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes Velocis support. The parameter is the Velocis install
- directory and defaults to <filename
- class="directory">/usr/local/velocis</filename>.
- </simpara>
- <simpara>
- <ulink url="&url.velocis;">Velocis home page</ulink>
- </simpara>
- </sect3>
-
- <sect3 id="with-custom-odbc">
- <title>A custom ODBC library</title>
- <synopsis>
- <option>--with-custom-odbc<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes support for an arbitrary custom ODBC library. The
- parameter is the base directory and defaults to <filename
- class="directory">/usr/local</filename>.
- </simpara>
- <simpara>
- This option implies that you have defined CUSTOM_ODBC_LIBS when
- you run the configure script. You also must have a valid odbc.h
- header somewhere in your include path. If you don't have one,
- create it and include your specific header from there. Your
- header may also require some extra definitions, particularly
- when it is multiplatform. Define them in CFLAGS.</simpara>
- <simpara>
- For example, you can use Sybase SQL Anywhere on QNX as
- following:
- <literal>
- CFLAGS=-DODBC_QNX LDFLAGS=-lunix CUSTOM_ODBC_LIBS="-ldblib
- -lodbc" ./configure --with-custom-odbc=/usr/lib/sqlany50
- </literal>
- </simpara>
- </sect3>
-
- <sect3 id="disable-unified-odbc">
- <title>Unified ODBC</title>
- <synopsis>
- <option>--disable-unified-odbc</option>
- </synopsis>
- <simpara>
- Disables the Unified ODBC module, which is a common interface to
- all the databases with ODBC-based interfaces, such as Solid,
- IBM DB2 and Adabas D. It also works for normal ODBC libraries.
- Has been tested with iODBC, Solid, Adabas D, IBM DB2 and Sybase SQL
- Anywhere. Requires that one (and only one) of these modules or
- the Velocis module is enabled, or a custom ODBC library
- specified. This option is only applicable if one of the
- following options is used: <link
- linkend="with-iodbc">--with-iodbc</link>, <link
- linkend="with-solid">--with-solid</link>, <link
- linkend="with-ibm-db2">--with-ibm-db2</link>, <link
- linkend="with-adabas">--with-adabas</link>, <link
- linkend="with-velocis">--with-velocis</link>, or <link
- linkend="with-custom-odbc">--with-custom-odbc</link>.
- </simpara>
- <simpara>
- See also <link linkend="ini.sect.uodbc">Unified ODBC
- Configuration</link> Directives in the <link
- linkend="configuration.file">configuration
- file</link>.
- </simpara>
- </sect3>
-
- <sect3 id="with-ldap">
- <title>LDAP</title>
- <synopsis>
- <option>--with-ldap<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Includes <acronym>LDAP</acronym> (Lightweight Directory Access
- Protocol) support. The parameter is the LDAP base install
- directory, defaults to <filename
- class="directory">/usr/local/ldap</filename>.
- </simpara>
- <simpara>
- More information about LDAP can be found in <ulink
- url="&url.rfc;rfc1777.html">RFC1777</ulink> and
- <ulink
- url="&url.rfc;rfc1778.html">RFC1778</ulink>.
- </simpara>
- </sect3>
-
- </sect2>
-
- <sect2>
- <title>Other configure options</title>
-
- <sect3 id="with-mcrypt">
- <title>--with-mcrypt<replaceable>=DIR</replaceable></title>
- <synopsis>
- <option>--with-mcrypt</option>
- </synopsis>
- <simpara>
- Include support for the mcrypt library. See the <link
- linkend="ref.mcrypt">mcrypt documentation</link> for more
- information. If you use the optional
- <replaceable>DIR</replaceable> argument, PHP will look for
- mcrypt.h in <replaceable>DIR</replaceable>/include.
- </simpara>
- </sect3>
-
- <sect3 id="enable-sysvsem">
- <title>--enable-sysvsem</title>
- <synopsis>
- <option>--enable-sysvsem</option>
- </synopsis>
- <simpara>
- Include support for Sys V semaphores (supported by most Unix
- derivates). See the <link linkend="ref.sem">Semaphore and Shared
- Memory documentation</link> for more information.
- </simpara>
- </sect3>
-
- <sect3 id="enable-sysvshm">
- <title>--enable-sysvshm</title>
- <synopsis>
- <option>--enable-sysvshm</option>
- </synopsis>
- <simpara>
- Include support for Sys V shared memory (supported by most Unix
- derivates). See the <link linkend="ref.sem">Semaphore and Shared
- Memory documentation</link> for more information.
- </simpara>
- </sect3>
-
- <sect3 id="with-xml">
- <title>--with-xml</title>
- <synopsis>
- <option>--with-xml</option>
- </synopsis>
- <simpara>
- Include support for a non-validating XML parser using James
- Clark's <ulink url="&url.expat;">expat library</ulink>. See the
- <link linkend="ref.xml">XML function reference</link> for
- details.
- </simpara>
- </sect3>
-
- <sect3 id="enable-maintainer-mode">
- <title>--enable-maintainer-mode</title>
- <synopsis>
- <option>--enable-maintainer-mode</option>
- </synopsis>
- <simpara>
- Turns on extra dependencies and compiler warnings used by some
- of the PHP developers.</simpara>
- </sect3>
-
- <sect3 id="with-system-regex">
- <title>--with-system-regex</title>
- <synopsis>
- <option>--with-system-regex</option>
- </synopsis>
- <simpara>
- Uses the system's regular expression library rather than the
- bundled one. If you are building PHP as a server module, you
- must use the same library when building PHP as when linking the
- server. Enable this if the system's library provides special
- features you need. It is recommended that you use the bundled
- library if possible.</simpara>
- </sect3>
-
- <sect3 id="with-config-file-path">
- <title>--with-config-file-path</title>
- <synopsis>
- <option>--with-config-file-path=DIR</option>
- </synopsis>
- <simpara>
- The path used to look for <link linkend="configuration.file">the
- configuration file</link> when PHP starts up.
- </simpara>
- </sect3>
-
- <sect3 id="with-exec-dir">
- <title>--with-exec-dir</title>
- <synopsis>
- <option>--with-exec-dir<replaceable>=DIR</replaceable></option>
- </synopsis>
- <simpara>
- Only allow running of executables in DIR when in safe mode.
- Defaults to <filename class="directory">/usr/local/bin</filename>.
- This option only sets the default, it may be changed with the
- <link linkend="ini.safe-mode-exec-dir">safe_mode_exec_dir</link>
- directive in the <link linkend="configuration.file">configuration
- file</link> later.</simpara>
- </sect3>
-
- <sect3 id="enable-debug">
- <title>--enable-debug</title>
- <synopsis>
- <option>--enable-debug</option>
- </synopsis>
- <simpara>
- Enables extra debug information. This makes it possible to
- gather more detailed information when there are problems with
- PHP. (Note that this doesn't have anything to do with debugging
- facilities or information available to PHP scripts.)
- </simpara>
- </sect3>
-
- <sect3 id="enable-safe-mode">
- <title>--enable-safe-mode</title>
- <synopsis>
- <option>--enable-safe-mode</option>
- </synopsis>
- <simpara>
- Enables "safe mode" by default. This imposes several
- restrictions on what PHP can do, such as opening only files
- within the document root. Read the <link
- linkend="security">Security chapter</link> for more more
- information. CGI users should always enable secure mode. This
- option only sets the default, it may be enabled or disabled with
- the <link linkend="ini.safe-mode">safe_mode</link> directive in
- the <link linkend="configuration.file">configuration file</link>
- later.
- </simpara>
- </sect3>
-
- <sect3 id="enable-track-vars">
- <title>--enable-track-vars</title>
- <synopsis>
- <option>--enable-track-vars</option>
- </synopsis>
- <simpara>
- Makes PHP keep track of where GET/POST/cookie variables come
- from in the arrays HTTP_GET_VARS, HTTP_POST_VARS and
- HTTP_COOKIE_VARS. This option only sets the default, it may be
- enabled or disabled with the <link
- linkend="ini.track-vars">track_vars</link> directive in the
- <link linkend="configuration.file">configuration file</link>
- later.
- </simpara>
- </sect3>
-
- <sect3 id="enable-magic-quotes">
- <title>--enable-magic-quotes</title>
- <synopsis>
- <option>--enable-magic-quotes</option>
- </synopsis>
- <simpara>
- Enable magic quotes by default. This option only sets the
- default, it may be enabled or disabled with the <link
- linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>
- directive in the <link
- linkend="configuration.file">configuration file</link>
- later. See also the <link linkend="ini.magic-quotes-gpc">
- magic_quotes_gpc</link> and the <link
- linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>
- directives.
- </simpara>
- </sect3>
-
- <sect3 id="enable-debugger">
- <title>--enable-debugger</title>
- <synopsis>
- <option>--enable-debugger</option>
- </synopsis>
- <simpara>
- Enables the internal PHP debugger support. This feature is
- still in an experimental state. See also the <link
- linkend="ini.sect.debugger">Debugger Configuration</link>
- directives in the <link
- linkend="configuration.file">configuration
- file</link>.
- </simpara>
- </sect3>
-
- <sect3 id="enable-discard-path">
- <title>--enable-discard-path</title>
- <synopsis>
- <option>--enable-discard-path</option>
- </synopsis>
- <simpara>
- 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. Read the <link
- linkend="security.cgi.shell">section in the security
- chapter</link> about this option.
- </simpara>
- </sect3>
-
- <sect3 id="enable-bcmath">
- <title>--enable-bcmath</title>
- <synopsis>
- <option>--enable-bcmath</option>
- </synopsis>
- <simpara>
- Enables <command>bc</command> style arbitrary precision math
- functions. See also the <link
- linkend="ini.sect.bcmath">bcmath.scale </link> option in the
- <link linkend="configuration.file">configuration
- file</link>.
- </simpara>
- </sect3>
-
- <sect3 id="enable-force-cgi-redirect">
- <title>--enable-force-cgi-redirect</title>
- <synopsis>
- <option>--enable-force-cgi-redirect</option>
- </synopsis>
- <simpara>
- Enable the security check for internal server redirects. You
- should use this if you are running the CGI version with
- Apache.
- </simpara>
- <simpara>
- When using PHP as a CGI binary, PHP by default always first
- checks that it is used by redirection (for example under Apache,
- by using Action directives). This makes sure that the PHP
- binary cannot be used to bypass standard web server
- authentication procedures by calling it directly, like <filename
- role="url">http://my.host/cgi-bin/php/secret/doc.html>.
- This example accesses <filename
- role="url">http://my.host/secret/doc.html> but does
- not honour any security settings enforced by httpd for directory
- <filename role="dir">/secret</filename>.
- </simpara>
- <simpara>
- Not enabling option disables the check and enables bypassing
- httpd security and authentication settings. Do this only if
- your server software is unable to indicate that a safe
- redirection was done and all your files under your document root
- and user directories may be accessed by anyone.
- </simpara>
- <simpara>
- Read the <link linkend="security.cgi.force-redirect">section in
- the security chapter</link> about this option.
- </simpara>
- </sect3>
-
- <sect3 id="disable-short-tags">
- <title>--disable-short-tags</title>
- <synopsis>
- <option>--disable-short-tags</option>
- </synopsis>
- <simpara>
- Disables the short form <literal><? ?></literal> PHP tags.
- You must disable the short form if you want to use PHP with
- <acronym>XML</acronym>. With short tags disabled, the only PHP
- code tag is <literal><?php ?></literal>. This option only
- sets the default, it may be enabled or disabled with the <link
- linkend="ini.short-open-tag">short_open_tag</link> directive in
- the <link linkend="configuration.file">configuration file</link>
- later.
- </simpara>
- </sect3>
-
- <sect3 id="enable-url-includes">
- <title>--enable-url-includes</title>
- <synopsis>
- <option>--enable-url-includes</option>
- </synopsis>
- <simpara>
- Makes it possible to run code on other HTTP or FTP servers
- directly from PHP with <link
- linkend="function.include">include()</link>. See also the <link
- linkend="ini.include-path">include_path</link> option in the
- <link linkend="configuration.file">configuration file</link>.
- </simpara>
- </sect3>
-
- <sect3 id="disable-syntax-hl">
- <title>--disable-syntax-hl</title>
- <synopsis>
- <option>--disable-syntax-hl</option>
- </synopsis>
- <simpara>
- Turns off syntax highlighting.
- </simpara>
- </sect3>
-
- <sect3>
- <title>CPPFLAGS and LDFLAGS</title>
- <para>
- To make the PHP installation look for header or library files in
- different directories, modify the <envar>CPPFLAGS</envar> and
- <envar>LDFLAGS</envar> environment variables, respectively. If
- you are using a sensible shell, you should be able to do
- <command>
- LDFLAGS=-L/my/lib/dir CPPFLAGS=-I/my/include/dir ./configure
- </command>
- </para>
- </sect3>
-
- </sect2>
-
- <sect2>
- <title>Building</title>
- <simpara>
- When PHP is configured, you are ready to build the CGI executable
- or the PHP library. The command <command>make</command> should
- take care of this. If it fails and you can't figure out why, see
- the <link linkend="install-problems">Problems section</link>.
- </simpara>
- </sect2>
-
- <sect2>
- <title>Testing</title>
- <simpara>
- If you have built PHP as a CGI program, you may test your build
- by typing <command>make test</command>. It is always a good idea
- to test your build. This way you may catch a problem with PHP on
- your platform early instead of having to struggle with it later.
- </simpara>
- </sect2>
-
- <sect2>
- <title>Benchmarking</title>
- <simpara>
- If you have built PHP as a CGI program, you may benchmark your
- build by typing <command>make bench</command>. Note that if safe
- mode is on by default, the benchmark may not be able to finish if
- it takes longer then the 30 seconds allowed. This is because the
- <function>set_time_limit</function> can not be used in safe
- mode. Use the <link
- linkend="ini.max-execution-time">max_execution_time</link>
- configuration setting to control this time for your own
- scripts. <command>make bench</command> ignores the <link
- linkend="configuration.file">configuration file</link>.
- </simpara>
- </sect2>
-
- </sect1>
-
- <sect1 id="install-windows95-nt">
- <title>Installation on Windows 95/98/NT systems</title>
-
- <simpara>
- This install guide will help you install and configure PHP on your
- Windows 9x/NT webservers. This guide was compiled by
- &link.bob;. The latest revision can be found at <ulink
- url="&url.win32install;">&url.win32install;</ulink>.
- </simpara>
- <para>
- This guide provides installation support for:
- <itemizedlist>
- <listitem>
- <para>
- Personal Web Server (Newest version recommended)
- </para>
- </listitem>
- <listitem>
- <para>
- Internet Information Server 3 or 4
- </para>
- </listitem>
- <listitem>
- <para>
- Apache 1.3.x
- </para>
- </listitem>
- <listitem>
- <para>
- Omni HTTPd 2.0b1
- </para>
- </listitem>
- </itemizedlist>
- </para>
-
- <sect2>
- <title>General Installation Steps</title>
-
- <para>
- The following steps should be performed on all installations
- before the server specific instructions.
-
- <itemizedlist>
- <listitem>
- <para>
- Extract the distribution file to a directory of your choice.
- "C:\PHP\" is a good start.
- </para>
- </listitem>
- <listitem>
- <para>
- Copy the file, 'php.ini-dist' to your '%WINDOWS%' directory
- and rename it to 'php.ini'. Your '%WINDOWS%' directory is
- typically:
- <simplelist>
- <member>c:\windows for Windows 95/98</member>
- <member>c:\winnt or c:\winnt40 for NT servers</member>
- </simplelist>
- </para>
- </listitem>
- <listitem>
- <para>
- Edit your 'php.ini' file:
- <itemizedlist>
- <listitem>
- <simpara>
- You will need to change the 'extension_dir' setting to
- point to your php-install-dir, or where you have placed
- your 'php_*.dll' files. ex: c:\php
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- If you are using Omni Httpd, do not follow the next step.
- Set the 'doc_root' to point to your webservers
- document_root. ex: c:\apache\htdocs or c:\webroot
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Choose which modules you would like to load when PHP
- starts. You can uncomment the: 'extension=php_*.dll' lines
- to load these modules. Some modules require you to have
- additional libraries installed on your system for the
- module to work correctly. The PHP <ulink
- url="&url.php.faq;">FAQ</ulink> has more information on
- where to get supporting libraries. You can also load a
- module dynamically in your script using:
- <command>dl("php_*.dll");</command>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- On PWS and IIS, you can set the browscap.ini to point to:
- 'c:\windows\system\inetsrv\browscap.ini' on Windows 95/98
- and 'c:\winnt\system32\inetsrv\browscap.ini' on NT
- Server. Additional information on using the browscap
- functionality in PHP can be found at this <ulink
- url="&url.browscap;">mirror</ulink>, select the "source"
- button to see it in action.
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
- </listitem>
- </itemizedlist></para>
- <simpara>
- The DLLs for PHP extensions are prefixed with 'php_'. This
- prevents confusion between PHP extensions and their supporting
- libraries.
- </simpara>
-
- </sect2>
-
- <sect2>
- <title>Windows 95/98/NT and PWS/IIS 3</title>
-
- <simpara>
- The recommended method for configuring these servers is to use
- the INF file included with the distribution
- (php_iis_reg.inf). You may want to edit this file and make sure
- the extensions and PHP install directories match your
- configuration. Or you can follow the steps below to do it
- manually.
- </simpara>
- <simpara>
- WARNING: These steps involve working directly with the windows
- registry. One error here can leave your system in an unstable
- state. We highly recommend that you back up your registry
- first. The PHP Development team will not be held responsible if
- you damage your registry.
- </simpara>
-
- <para>
- <itemizedlist>
- <listitem>
- <simpara>
- Run Regedit.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Navigate to: <literal>HKEY_LOCAL_MACHINE /System
- /CurrentControlSet /Services /W3Svc /Parameters
- /ScriptMap</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- On the edit menu select: <literal>New->String Value</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Type in the extension you wish to use for your php
- scripts. ex: <literal>.php</literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Double click on the new string value and enter the path to
- <literal>php.exe</literal> in the value data field. ex:
- <literal>c:\php\php.exe %s %s</literal>. The '%s %s' is VERY
- important, PHP will not work properly without it.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Repeat these steps for each extension you wish to associate
- with PHP scripts.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Now navigate to: <literal>HKEY_CLASSES_ROOT</literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- On the edit menu select: <literal>New->Key</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Name the key to the extension you setup in the previous
- section. ex: <literal>.php</literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Highlight the new key and in the right side pane, double click
- the "default value" and enter <literal>phpfile</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Repeat the last step for each extension you set up in the
- previous section.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Now create another <literal>New->Key</literal> under
- <literal>HKEY_CLASSES_ROOT</literal> and name it
- <literal>phpfile</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Highlight the new key <literal>phpfile</literal> and in the
- right side pane, double click the "default value" and enter
- <literal>PHP Script</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Right click on the <literal>phpfile</literal> key and select
- <literal>New->Key</literal>, name it <literal>Shell</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Right click on the <literal>Shell</literal> key and select
- <literal>New->Key</literal>, name it <literal>open</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Right click on the <literal>open</literal> key and select
- <literal>New->Key</literal>, name it
- <literal>command</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Highlight the new key <literal>command</literal> and in the
- right side pane, double click the "default value" and enter
- the path to <literal>php.exe</literal>. ex:
- <literal>c:\php\php.exe -q %1</literal>. (don't forget the
- <literal>%1</literal>).
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Exit Regedit.
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
- <simpara>
- PWS and IIS 3 users now have a fully operational system. IIS 3
- users can use a nifty <ulink
- url="&url.iiscfg;">tool</ulink> from
- Steven Genusa to configure their script maps.
- </simpara>
-
- </sect2>
-
- <sect2>
- <title>Windows NT and IIS 4</title>
-
- <simpara>
- To install PHP on an NT Server running IIS 4, follow these
- instructions:
- </simpara>
-
- <para>
- <itemizedlist>
- <listitem>
- <simpara>
- In Internet Service Manager (MMC), select the Web site or the
- starting point directory of an application.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Open the directory's property sheets (by right clicking and
- selecting properties), and then click the Home Directory,
- Virtual Directory, or Directory tab.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Click the Configuration button, and then click the App
- Mappings tab.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Click Add, and in the Executable box, type:
- <literal>c:\path-to-php-dir\php.exe %s %s</literal>. You MUST
- have the %s %s on the end, PHP will not function properly if
- you fail to do this.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- In the Extension box, type the file name extension you want
- associated with PHP scripts. (You must repeat step 5 and 6 for
- each extension you want accociated with PHP
- scripts. (<literal>.php</literal> and
- <literal>.phtml</literal> are common.)
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Set up the appropriate security. (This is done in Internet
- Service Manager), and if your NT Server uses NTFS file system,
- add execute rights for I_USR_ to the directory that contains
- <literal>php.exe</literal>.
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
-
- </sect2>
-
- <sect2>
- <title>Windows 9x/NT and Apache 1.3.x</title>
-
- <simpara>
- You must edit your <literal>srm.conf</literal> or
- <literal>httpd.conf</literal> to configure Apache to work with
- the PHP CGI binary.
- </simpara>
- <simpara>
- Although there can be a few variations of configuring PHP under
- Apache, this one is simple enough to be used by the
- newcomer. Please consult the Apache Docs for further
- configuration directives.
- </simpara>
-
- <para>
- <itemizedlist>
- <listitem>
- <simpara>
- <literal>
- ScriptAlias /php/ "c:/path-to-php-dir/"
- </literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <literal>
- AddType application/x-httpd-php .php
- </literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <literal>
- AddType application/x-httpd-php .phtml
- </literal>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <literal>
- Action application/x-httpd-php "/php/php.exe"
- </literal>
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
-
- <simpara>
- To use the source code highlighting feature, simply create a PHP
- script file and stick this code in: <literal><?php show_source
- ("original_php_script.php"); ?></literal>. Substitute
- <literal>original_php_script.php</literal> with the name of the
- file you wish to show the source of. (this is only one way of
- doing it). <emphasis>Note:</emphasis> On Win-Apache all back
- slashes in a path statement such as: "c:\directory\file.ext",
- must be converted to forward slashes.
- </simpara>
-
- </sect2>
-
- <sect2>
- <title>Omni HTTPd 2.0b1 for Windows</title>
-
- <simpara>
- This has got to be the easiest config there is:
- </simpara>
-
- <para>
- <itemizedlist>
- <listitem>
- <para>
- Step 1: Install Omni server
- </para>
- </listitem>
- <listitem>
- <para>
- Step 2: Right click on the blue OmniHTTPd icon in the system
- tray and select <literal>Properties</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- Step 3: Click on <literal>Web Server Global Settings</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- Step 4: On the 'External' tab, enter: <literal>virtual = .php
- | actual = c:\path-to-php-dir\php.exe</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- Step 5: On the <literal>Mime</literal> tab, enter:
- <literal>virtual = wwwserver/stdcgi | actual = .php</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- Step 6: Click <literal>OK</literal>
- </para>
- </listitem>
- </itemizedlist>
- </para>
-
- <simpara>
- Repeat steps 2 - 6 for each extension you want to associate with
- PHP.
- </simpara>
-
- </sect2>
-
- <sect2>
- <title>PHP Modules</title>
-
- <para>
- <table>
- <title>PHP Modules</title>
- <tgroup cols="2">
- <tbody>
- <row>
- <entry>php_calendar.dll</entry>
- <entry>Calendar conversion functions</entry>
- </row>
- <row>
- <entry>php_crypt.dll</entry>
- <entry>Crypt functions</entry>
- </row>
- <row>
- <entry>php_dbase.dll</entry>
- <entry>DBase functions</entry>
- </row>
- <row>
- <entry>php_dbm.dll</entry>
- <entry>GDBM emulation via Berkely DB2 library</entry>
- </row>
- <row>
- <entry>php_filepro.dll</entry>
- <entry>READ ONLY access to filepro databases</entry>
- </row>
- <row>
- <entry>php_gd.dll</entry>
- <entry>GD Library functions for gif manipulation</entry>
- </row>
- <row>
- <entry>php_hyperwave.dll</entry>
- <entry>HyperWave functions</entry>
- </row>
- <row>
- <entry>php_imap4r2.dll</entry>
- <entry>IMAP 4 functions</entry>
- </row>
- <row>
- <entry>php_ldap.dll</entry>
- <entry>LDAP functions</entry>
- </row>
- <row>
- <entry>php_msql1.dll</entry>
- <entry>mSQL 1 client</entry>
- </row>
- <row>
- <entry>php_msql2.dll</entry>
- <entry>mSQL 2 client</entry>
- </row>
- <row>
- <entry>php_mssql.dll</entry>
- <entry>MSSQL client (requires MSSQL DB-Libraries</entry>
- </row>
- <row>
- <entry>php3_mysql.dll (Built into PHP 4)</entry>
- <entry>MySQL functions</entry>
- </row>
- <row>
- <entry>php_nsmail.dll</entry>
- <entry>Netscape mail functions</entry>
- </row>
- <row>
- <entry>php_oci73.dll</entry>
- <entry>Oracle functions</entry>
- </row>
- <row>
- <entry>php_snmp.dll</entry>
- <entry>SNMP get and walk functions (NT only!)</entry>
- </row>
- <row>
- <entry>php_zlib.dll</entry>
- <entry>ZLib functions</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
-
- </sect2>
-
- </sect1>
-
- <sect1 id="install-problems">
- <title>Problems?</title>
-
- <sect2>
- <title>Read the FAQ</title>
- <simpara>
- Some problems are more common than others. The most common ones
- are listed in the PHP FAQ, found at <ulink
- url="&url.php.faq;">&url.php.faq;</ulink>
- </simpara>
- </sect2>
-
- <sect2>
- <title>Bug reports</title>
- <simpara>
- If you think you have found a bug in PHP, please report it. The
- PHP developers probably don't know about it, and unless you
- report it, chances are it won't be fixed. You can report bugs
- using the bug-tracking system at <ulink
- url="&url.php.bugs;">&url.php.bugs;</ulink>.
- </simpara>
- </sect2>
-
- <sect2>
- <title>Other problems</title>
-
- <simpara>
- If you are still stuck, someone on the PHP mailing list may be
- able to help you. You should check out the archive first, in case
- someone already answered someone else who had the same problem as
- you. The archives are available from the support page on <ulink
- url="&url.php;">&url.php;</ulink>. To subscribe to the PHP
- mailing list, send an empty mail to <ulink
- url="mailto:&email.php3.subscribe;">&email.php3.subscribe;</ulink>.
- The mailing list address is
- <literal>&email.php3;</literal>.
- </simpara>
- <simpara>
- If you want to get help on the mailing list, please try to be
- precise and give the necessary details about your environment
- (which operating system, what PHP version, what web server, if
- you are running PHP as CGI or a server module, etc.), and
- preferably enough code to make others able to reproduce and test
- your problem.
- </simpara>
- </sect2>
-
- </sect1>
-
- </chapter>
-
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
--->
+ <chapter id="installation">
+ <title>Instalación</title>
+
+ <sect1 id="downloading">
+ <title>Bajándose la última versión</title>
+ <simpara>
+ El código fuente y las distribuciones binarias para algunas
+ plataformas (incluído Windows) se pueden encontrar en <literal><ulink
+ url="http://www.php.net/">http://www.php.net/></literal>.
+ </simpara>
+ </sect1>
+
+ <sect1 id="install-unix">
+ <title>Instalación en sistemas UNIX</title>
+
+ <para>
+ Esta sección le guiará a través de la configuración e
+ instalación del PHP. Conocimientos y software necesarios:
+
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ Habilidades básicas en UNIX (ser capaz de manejar el "make"
+ y un compilador de C)
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ Un compilador ANSI de C
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ Un servidor web
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
+
+ <sect2>
+ <title>
+ Instrucciones Rápidas de Instalación (Versión Módulo de Apache)
+ </title>
+
+ <para>
+ <informalexample>
+ <programlisting>
+1. gunzip apache_1.3.x.tar.gz
+2. tar xvf apache_1.3.x.tar
+3. gunzip php-3.0.x.tar.gz
+4. tar xvf php-3.0.x.tar
+5. cd apache_1.3.x
+6. ./configure --prefix=/www
+7. cd ../php-3.0.x
+8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
+9. make
+10. make install
+11. cd ../apache_1.3.x
+12. ./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a
+13. make
+14. make install
+
+ En lugar de este paso quizás prefiera simplemente copiar el binario
+ httpd encima del binario existente. Si lo hace, asegúrese antes de
+ cerrar su servidor.
+
+15. cd ../php-3.0.x
+16. cp php3.ini-dist /usr/local/lib/php3.ini
+
+ Puede editar el archivo /usr/local/lib/php3.ini para ajustar opciones
+ del PHP. Si prefiere tenerlo en otro sitio, utilice
+ --with-config-file-path=/path en el paso 8.
+
+17. Edite su archivo httpd.conf o srm.conf y añada:
+
+ AddType application/x-httpd-php3 .php3
+
+ Puede elegir la extensión que desee aquí. .php3 es simplemente nuestra
+ sugerencia.
+
+18. Utilice su método habitual para iniciar el servidor Apache (debe detener
+ y reiniciar el servidor, no solamente hacerlo recargarse usando una
+ señal HUP o USR1.)
+ </programlisting>
+ </informalexample>
+ </para>
+
+ </sect2>
+
+ <sect2>
+ <title>Configuración</title>
+ <para>
+ Hay dos maneras de configurar el PHP.
+ <itemizedlist>
+ <listitem>
+ <para>
+ Utilizando el script de "setup" que viene con el PHP. Este
+ script le hace una serie de preguntas (casi como el script
+ "install" del PHP/FI 2.0) y ejecuta el "configure" al final.
+ Para ejecutar este script, escriba <command>./setup</command>.
+ </para>
+ <para>
+ Este script también creará un archivo llamado "do-conf", que
+ contendrá las opciones pasadas a la configuración. Puede editar
+ este archivo para cambiar algunas opciones sin tener que
+ re-ejecutar el "setup". Escriba luego <command>./do-conf</command>
+ para ejecutar la configuración con las nuevas opciones.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Ejecutar el "configure" a mano. Para ver las opciones de que
+ dispone, escriba <command>./configure --help</command>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Los detalles sobre las distintas opciones de configuración son
+ listados a continuación.
+ </para>
+ </sect2>
+
+ <sect2 id="with-apache">
+ <title>Módulo del Apache</title>
+
+ <para>
+ Para configurar el PHP como módulo de Apache, responda "yes" a
+ "Build as an Apache module?" (la opción <option><link linkend="with-apache">
+ --with-apache</link>=<replaceable>DIR</replaceable></option>
+ es la que lo configura) y especifique el directorio base de la
+ distribución de Apache. Si ha desempacado el Apache en
+ <filename
+ class="directory">/usr/local/www/apache_1.2.4</filename>, este será
+ su directorio base de la distribución de Apache. El directorio
+ por defecto es <filename
+ class="directory">/usr/local/etc/httpd</filename>.
+ </para>
+ </sect2>
+
+ <sect2 id="with-fhttpd">
+ <title>Módulo fhttpd</title>
+
+ <para>
+ Para configurar el PHP como módulo fhttpd, responda "yes" a
+ "Build as an fhttpd module?" (la opción <option><link linkend="with-fhttpd">
+ --with-fhttpd</link>=<replaceable>DIR</replaceable></option>
+ es la que lo configura) y especifique el directorio base
+ del fuente del fhttpd. El directorio por defecto es <filename
+ class="directory">/usr/local/src/fhttpd</filename>. Si está
+ ejecutando fhttpd, configurar PHP como módulo le dará mejor
+ rendimiento, más control y capacidad de ejecución remota.
+ </para>
+ </sect2>
+
+ <sect2 id="install-cgi">
+ <title>CGI version</title>
+ <para>
+ El valor por defecto es configurar el PHP como programa CGI.
+ Si está ejecutando un servidor web para el que el PHP tiene
+ soporte como módulo, debería elegir dicha solución por motivos
+ de rendimiento. Sin embargo, la versión CGI permite a los
+ usuarios del Apache el ejecutar distintas páginas con PHP bajo
+ distintos identificadores de usuario. Por favor, asegúrese
+ de haber leído el <link linkend="security">capítulo sobre
+ Seguridad</link> si va a ejecutar el PHP como CGI.
+ </para>
+ </sect2>
+
+ <sect2>
+ <title>Opciones de soporte para Base de Datos</title>
+ <para>
+ El PHP tiene soporte nativo para bastantes bases de datos
+ (así como para ODBC):
+ </para>
+
+ <sect3 id="with-adabas">
+ <title>Adabas D</title>
+ <synopsis>
+ <option>--with-adabas<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Compila con soporte para Adabas D. El parámetro es el directorio
+ de instalación de Adabas D y por defecto vale <filename
+ class="directory">/usr/local/adabasd</filename>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.adabas.com/">Página de Adabas</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-dbase">
+ <title>dBase</title>
+ <synopsis>
+ <option>--with-dbase</option>
+ </synopsis>
+ <simpara>
+ Habilita el soporte integrado para DBase. No se precisan librerías
+ externas.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-filepro">
+ <title>filePro</title>
+ <synopsis>
+ <option>--with-filepro</option>
+ </synopsis>
+ <simpara>
+ Habilita el soporte integrado de sólo lectura para filePro. No se
+ precisan librerías externas.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-msql">
+ <title>mSQL</title>
+ <synopsis>
+ <option>--with-msql<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Habilita el soporte para mSQL. El parámetro es el directorio
+ de instalación de mSQL y por defecto vale <filename
+ class="directory">/usr/local/Hughes</filename>. Este es el
+ directorio por defecto de la distribución mSQL 2.0.
+ <command>configure</command> detecta automáticamente qué versión
+ de mSQL está ejecutándose y el PHP soporta tanto 1.0 como 2.0, pero
+ si compila el PHP con mSQL 1.0 sólo podrá acceder a bases de datos
+ de esa versión y viceversa.
+ </simpara>
+ <simpara>
+ Vea también Directivas de <link linkend="ini.sect.msql">Configuración
+ de mSQL</link> en el <link linkend="configuration.file">archivo de
+ configuración</link>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.hughes.com.au">Página de mSQL</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-mysql">
+ <title>MySQL</title>
+ <synopsis>
+ <option>--with-mysql<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Habilita el soporte para MySQL. El parámetro es el directorio
+ de instalación de MySQL y por defecto vale <filename
+ class="directory">/usr/local</filename>. Este es el directorio
+ de instalación de la distribución de MySQL.
+ </simpara>
+ <simpara>
+ Vea también Directivas de <link linkend="ini.sect.mysql">Configuración
+ de MySQL</link> en el <link linkend="configuration.file">archivo de
+ configuración</link>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.tcx.se">Página de MySQL</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-iodbc">
+ <title>iODBC</title>
+ <synopsis>
+ <option>--with-iodbc<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para iODBC. Esta característica se desarrolló
+ inicialmente para el iODBC Driver Manager, un gestor de controlador
+ de ODBC de redistribución libre que ese ejecuta bajo varios
+ sabores de UNIX. El parámetro es el directorio de instalación
+ de iODBC y por defecto vale <filename class="directory">/usr/local</filename>.
+ </simpara>
+ <simpara>
+ <ulink url="http://users.ids.net/~bjepson/freeODBC/">Página de
+ FreeODBC</ulink> o <ulink url="http://www.iodbc.org">página de
+ iODBC</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-openlink">
+ <title>OpenLink ODBC</title>
+ <synopsis>
+ <option>--with-openlink<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para OpenLink ODBC. El parámetro es el directorio
+ de instalación de OpenLink ODBC y por defecto vale
+ <filename class="directory">/usr/local/openlink</filename>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.openlinksw.com/">Página de OpenLink Software</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-oracle">
+ <title>Oracle</title>
+ <synopsis>
+ <option>--with-oracle<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para Oracle. Se ha probado y debería funcionar al
+ menos con las versiones de la 7.0 a la 7.3. El parámetro es el
+ directorio <envar>ORACLE_HOME</envar>. No necesita especificar
+ este parámetro si su entorno de Oracle ya está ajustado.</simpara>
+ <simpara>
+ <ulink url="http://www.oracle.com">Página de Oracle</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-pgsql">
+ <title>PostgreSQL</title>
+ <synopsis>
+ <option>--with-pgsql<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para PostgreSQL. El parámetro es el directorio
+ base de la instalación de PostgreSQL y por defecto vale <filename
+ class="directory">/usr/local/pgsql</filename>.
+ </simpara>
+ <simpara>
+ Vea también Directivas de <link linkend="ini.sect.pgsql">Configuración
+ de Postgres</link> en el <link
+ linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.postgreSQL.org/">Página de PostgreSQL</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-solid">
+ <title>Solid</title>
+ <synopsis>
+ <option>--with-solid<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para Solid. El parámetro es el directorio de
+ instalación y vale por defecto <filename
+ class="directory">/usr/local/solid</filename>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.solidtech.com">Página de Solid</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-sybase">
+ <title>Sybase</title>
+ <synopsis>
+ <option>--with-sybase<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para Sybase. El parámetro es el directorio de
+ instalación y vale por defecto <filename
+ class="directory">/home/sybase</filename>.
+ </simpara>
+ <simpara>
+ Vea también Directivas de <link linkend="ini.sect.sybase">Configuración
+ de Sybase</link> en el <link
+ linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.sybase.com">Página de Sybase</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-sybase-ct">
+ <title>Sybase-CT</title>
+ <synopsis>
+ <option>--with-sybase-ct<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para Sybase-CT. El parámetro es el directorio
+ de instalación de Sybase-CT y por defecto vale <filename
+ class="directory">/home/sybase</filename>.
+ </simpara>
+ <simpara>
+ Vea también Directovas de <link linkend="ini.sect.sybct">Configuración
+ de Sybase-CT</link> en el <link
+ linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-velocis">
+ <title>Velocis</title>
+ <synopsis>
+ <option>--with-velocis<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para Velocis. El parámetro es el directorio de
+ instalación de Velocis y vale por defecto <filename
+ class="directory">/usr/local/velocis</filename>.
+ </simpara>
+ <simpara>
+ <ulink url="http://www.raima.com">Página de Velocis</ulink>
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-custom-odbc">
+ <title>Una librería a medida de ODBC</title>
+ <synopsis>
+ <option>--with-custom-odbc<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para una librería a medida arbitraria de ODBC.
+ El parámetro es el directorio base y por defecto vale <filename
+ class="directory">/usr/local</filename>.
+ </simpara>
+ <simpara>
+ Esta opción implica que se ha definido CUSTOM_ODBC_LIBS cuando se
+ ejecutó el script de configuración. También deberá tener una
+ cabecera odbc.h válida en algún lugar de su sendero (path) de
+ inclusión. Si no tiene uno, créelo e incluya su cabecera específica
+ desde ahí. Su cabecera puede requerir algunas definiciones extra,
+ particularmente si es multiplataforma. Defínalas en CFLAGS.</simpara>
+ <simpara>
+ Por ejemplo, puede usar Sybase SQL Anywhere bajo QNX como
+ sigue:
+ <literal>
+ CFLAGS=-DODBC_QNX LDFLAGS=-lunix CUSTOM_ODBC_LIBS="-ldblib
+ -lodbc" ./configure --with-custom-odbc=/usr/lib/sqlany50
+ </literal>
+ </simpara>
+ </sect3>
+
+ <sect3 id="disable-unified-odbc">
+ <title>ODBC Unificado</title>
+ <synopsis>
+ <option>--disable-unified-odbc</option>
+ </synopsis>
+ <simpara>
+ Deshabilita el módulo de ODBC Unificado, que es un interfaz común
+ a todas las bases de datos con interfaces basados en ODBC, tales
+ como Solid y Adabas D. También funciona para librerías normales
+ de ODBC. Ha sido probado con iODBC, Solid, Adabas D y Sybase SQL
+ Anywhere. Requiere que uno (y sólo uno) de estos módulos o el
+ módulo de Velocis esté habilitado, o que se especifique una librería
+ a medida de ODBC. Esta opción sólo se puede aplicar si alguna de
+ estas opciones es usada: <link
+ linkend="with-iodbc">--with-iodbc</link>, <link
+ linkend="with-solid">--with-solid</link>, <link
+ linkend="with-adabas">--with-adabas</link>, <link
+ linkend="with-velocis">--with-velocis</link>, o <link
+ linkend="with-adabas">--with-custom-odbc</link>.
+ </simpara>
+ <simpara>
+ Vea también Directivas de <link linkend="ini.sect.uodbc">Configuración
+ de ODBC Unificado</link> en el <link
+ linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-ldap">
+ <title>LDAP</title>
+ <synopsis>
+ <option>--with-ldap<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para <acronym>LDAP</acronym> (Lightweight
+ Directory Access Protocol - Protocolo Ligero de Acceso a
+ Directorios). El parámetro es el directorio base de instalación
+ de LDAP, y por defecto vale <filename
+ class="directory">/usr/local/ldap</filename>.
+ </simpara>
+ <simpara>
+ Puede encontrar más información sobre LDAP en <ulink
+ url="ftp://ftp.isi.edu/in-notes/rfc1777.txt">RFC1777</ulink> y en
+ <ulink
+ url="ftp://ftp.isi.edu/in-notes/rfc1778.txt">RFC1778</ulink>.
+ </simpara>
+ </sect3>
+
+ </sect2>
+
+ <sect2>
+ <title>Otras opciones de configuración</title>
+
+ <sect3 id="with-mcrypt">
+ <title>--with-mcrypt<replaceable>=DIR</replaceable></title>
+ <synopsis>
+ <option>--with-mcrypt</option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para la librería mcrypt. Vea la <link
+ linkend="ref.mcrypt">documentación de mcrypt</link> para
+ más información. Si utiliza el argumento opcional
+ <replaceable>DIR</replaceable>, el PHP buscará mcrypt.h
+ en <replaceable>DIR</replaceable>/include.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-sysvsem">
+ <title>--enable-sysvsem</title>
+ <synopsis>
+ <option>--enable-sysvsem</option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para semáforos Sys V (soportados por muchos
+ derivados Unix). Vea la <link linkend="ref.sem">documentación
+ sobre Semáforos y Memoria Compartida</link> para más información.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-sysvshm">
+ <title>--enable-sysvshm</title>
+ <synopsis>
+ <option>--enable-sysvshm</option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para la memoria compartida Sys V (soportada por
+ muchos derivados Unix). Vea la <link linkend="ref.sem">documentación
+ sobre Semáforos y Memoria Compartida</link> para más información.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-xml">
+ <title>--with-xml</title>
+ <synopsis>
+ <option>--with-xml</option>
+ </synopsis>
+ <simpara>
+ Incluye soporte para un parser XML no validador que utiliza
+ la <ulink url="&url.expat;">librería expat</ulink> de James Clark.
+ Vea la <link linkend="ref.xml">referencia de funciones XML</link>
+ para más detalles.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-maintainer-mode">
+ <title>--enable-maintainer-mode</title>
+ <synopsis>
+ <option>--enable-maintainer-mode</option>
+ </synopsis>
+ <simpara>
+ Activa avisos extra de dependencias y del compilador utilizados
+ por algunos de los desarrolladores del PHP.</simpara>
+ </sect3>
+
+ <sect3 id="with-system-regex">
+ <title>--with-system-regex</title>
+ <synopsis>
+ <option>--with-system-regex</option>
+ </synopsis>
+ <simpara>
+ Utiliza la librería de expresiones regulares del sistema en
+ lugar de la incluída. Si está compilando PHP como módulo de
+ servidor, debe utilizar la misma librería cuando genere el
+ PHP y cuando lo enlace con el servidor. Active esto si la
+ librería del sistema proporciona características especiales
+ que pueda necesitar. Se recomienda utilizar la librería
+ incluída siempre que sea posible.</simpara>
+ </sect3>
+
+ <sect3 id="with-config-file-path">
+ <title>--with-config-file-path</title>
+ <synopsis>
+ <option>--with-config-file-path=DIR</option>
+ </synopsis>
+ <simpara>
+ El path utilizado para buscar <link linkend="configuration.file">el
+ archivo de configuración</link> cuando arranca el PHP.
+ </simpara>
+ </sect3>
+
+ <sect3 id="with-exec-dir">
+ <title>--with-exec-dir</title>
+ <synopsis>
+ <option>--with-exec-dir<replaceable>=DIR</replaceable></option>
+ </synopsis>
+ <simpara>
+ Sólo permite ejecutar programas en DIR cuando está en modo
+ seguro. Por defecto vale <filename class="directory">/usr/local/bin</filename>.
+ Esta opción sólo fija el valor por defecto. Puede ser cambiado
+ posteriormente mediante la directiva
+ <link linkend="ini.safe-mode-exec-dir">safe_mode_exec_dir</link>
+ en el <link linkend="configuration.file">fichero de configuración
+ </link>.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-debug">
+ <title>--enable-debug</title>
+ <synopsis>
+ <option>--enable-debug</option>
+ </synopsis>
+ <simpara>
+ Habilita información de depuración adicional. Esto hace posible
+ obtener información más detallada cuando hay problemas con el PHP.
+ (Nótese que esto no tiene que ver con las facilidades de depuración
+ o con la información disponible para los script PHP).
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-safe-mode">
+ <title>--enable-safe-mode</title>
+ <synopsis>
+ <option>--enable-safe-mode</option>
+ </synopsis>
+ <simpara>
+ Habilita el "modo seguro" por defecto. Esto impone varias
+ restricciones sobre lo que el PHP puede hacer, tales como
+ abrir fichero sólo en el raiz de documentos. Lea el <link
+ linkend="security">capítulo de Seguridad</link> para más
+ información. Los usuarios de CGI deberán siempre habilitar
+ el modo seguro. Esta opción sólo fija el valor por defecto.
+ Puede ser habilitado o deshabilitado posteriormente mediante
+ la directiva <link linkend="ini.safe-mode">safe_mode</link> en
+ el <link linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-track-vars">
+ <title>--enable-track-vars</title>
+ <synopsis>
+ <option>--enable-track-vars</option>
+ </synopsis>
+ <simpara>
+ Hace que el PHP lleve el control de dónde proceden las variables
+ GET/POST/cookie usando las matrices HTTP_GET_VARS, HTTP_POST_VARS
+ y HTTP_COOKIE_VARS. Esta opción sólo fija el valor por defecto.
+ Puede ser habilitado o deshabilitado posteriormente mediante la
+ directiva <link
+ linkend="ini.track-vars">track_vars</link> en el
+ <link linkend="configuration.file">archivo de configuración</link>.
+ </simpara>
+ </sect3>
+
+ <sect3 id="enable-magic-quotes">
+ <title>--enable-magic-quotes</title>
+ <synopsis>
+ <option>--enable-magic-quotes</option>
+ </synopsis>
+ <simpara>
+ Habilita las comillas mágicas por defecto. Esta opción sólo
+ fija el valor por defecto. Puede ser habilitada o deshabilitada
+ posteriormente mediante la directiva <link
+ linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>
+ en el <link
+ linkend="configuration.file">archivo de configuración</link>.
+ Vea también las directivas <link linkend="ini.magic-quotes-gpc">
+ magic_quotes

