Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
Figure 1-7
Running the configure Script
Within your PHP5 directory (probably named something like php-5.0.0RC1.), you’ll find a shell script
named configure. This script accepts arguments to control the features that PHP will support. You’ll
need to run this script to configure compilation, not PHP5 itself (PHP configuration with php.ini will
come later).
Commands Available for the configure Script
The default configure is to compile PHP5 as a CGI binary. Use the –with-apache option to compile
PHP5 as a static module; use the –with-apxs option to compile PHP5 as a DSO. For this installation, use
the –with_apxs option (actually –with_apxs2 because you’re running Apache 2).
Here are some of the command line arguments that you may use when you compile PHP5. The configure
command is ./configure (the ./ lets it run) followed by a single space and then as many of the
following options as you like:
❑
–enable-track-vars: Automatically populates associative arrays with values submitted as
part of GET and POST requests or provided in a cookie.
❑
–with-gd = /path/to/directory: Enables support for the GD library that allows you to
create dynamic GIF and PNG images from your scripts. You’ll either want to compile with this or
add this module later to do the graphics work in Chapter 16.
❑
–with-mysql = /path/to/directory: With MySQL support.
❑
–with-pgsql = /path/to/directory: With PostgreSQL support.
14