-
-
-
*1
- *2
-
*3
- *4
*5
gcc | gcc-3.3.2.i386.rpm | |
binutils | binutils-2.14.90.0.6-4.i386.rpm | |
bison | bison-1.875-5.i386.rpm | |
./configure
make
*6
[elf@localhost php-4.3.7]$ PATH=/bin:/sbin:/usr/bin:/usr/sbin type apxs
apxs is /usr/sbin/apxs
[elf@localhost php-4.3.7]$ PATH=/bin:/sbin:/usr/bin:/usr/sbin type apxs
-bash: type: apxs: not found
Red Hat 8.0(updates) | httpd-(devel-)2.0.40-11.9.i386.rpm |
Red Hat 9(updates) | httpd-(devel-)2.0.40-21.9.i386.rpm |
Fedora Core 1(updates) | httpd-(devel-)2.0.48-1.2.i386.rpm |
*7
./configre --with-apxs2=/usr/sbin/apxs
make
*8
./configure --with-pgsql
./configure --with-pgsql=<LIB-PREFIX>,<STATIC/SHARED>
./configure --with-pgsql=/usr,shared
| | | |
bzip2 | --with-bzip2 | /usr | bzip2-devel |
curl | --with-curl | /usr | curl-devel |
DOM XML | --with-dom | /usr | libxml2-devel |
exif | --enable-exif | *9 | |
FTP | --enable-ftp | *10 | |
freetype | --with-freetype | /usr | |
gettest | --with-gettext | /usr | |
iconv | --with-iconv | /usr | |
image | --with-gd | *11 | |
imap | --with-imap | | imap-devel |
LDAP | --with-ldap | /usr | openldap-devel |
openssl | --with-openssl | /usr | openssl-devel |
POSIX | *12 | | |
PostgreSQL | --with-pgsql | /usr | postgresql-libs |
| --enable-pcntl | | |
| --enable-mbstring | *13 | |
MySQL | --with-mysql | *14 | |
ncurses | --with-ncurses | ncurses-devel | |
readline | --with-readline | /usr | readline-devel |
--with-libedit | *15 | |
recode | --with-recode | /usr | recode-devel |
SNMP | --with-snmp | /usr | net-snmp-devel |
unified ODBC | --with-odbc | /usr | unixODBC-devel |
zlib | --with-zlib | /usr | zlib-devel |
make install INSTALL_ROOT=/var/tmp/dummy-php INSTALL_IT=echo
*16
http://www.example.com/dir/
LoadModule php4_module modules/libphp4.so
Addtype application/x-httpd-php .php
DirectoryIndex index.php
*17