configure 실행
--enable-mbstring
--enable-zend-multibyte
--with-pgsql=/usr/local/pgsql
--with-mysql=/usr/local/mysql
......
configure: error: xml2-config not found. Please check your libxml2 installation.
http://www.xmlsoft.org 에서 다운로드
2008.03.02 현재 libxml2-2.6.31.tar.gz
2008.07.22 현재 libxml2-2.6.32.tar.gz 가 최신
[root@myspace libxml2-2.6.31]# ./configure --prefix=/usr --with-zlib
--> 추가
[root@myspace libxml2-2.6.31]# make
[root@myspace libxml2-2.6.31]# make install
다시 configure 실행 , 문제 없이 완료.
make , make install 실행
--enable-mbstring
--enable-zend-multibyte
--with-pgsql=/usr/local/pgsql
--with-mysql=/usr/local/mysql
........................
creating libtool
appending configuration tag "CXX" to libtool
Generating files
updating cache ./config.cache
creating
./config.status
creating php5.spec
creating main/build-defs.h
creating
scripts/phpize
creating scripts/man1/phpize.1
creating
scripts/php-config
creating scripts/man1/php-config.1
creating
sapi/cli/php.1
creating main/php_config.h
creating
main/internal_functions.c
creating
main/internal_functions_cli.c
+--------------------------------------------------------------------+
|
License: |
| This
software is subject to the PHP License, available in this |
|
distribution in the file LICENSE. By continuing this installation |
|
process, you are bound by the terms of this license agreement. |
| If you
do not agree with the terms of this license, you must abort |
| the
installation process at this point.
|
+--------------------------------------------------------------------+
Thank you for using PHP.
[root@myspace php-5.2.5]# make[root@myspace php-5.2.5]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /root/php-5.2.5/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/man/man1/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/lib/php/
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Archive_Tar - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR - installed: 1.6.1
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
httpd.conf 에 다음 추가
AddType application/x-httpd-php
.php
DirectoryIndex index.html index.php
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
[root@myspace bin]# ./apachectl restart
설치 완료
GD Library
http://www.boutell.com/gd/
http://www.libgd.org/Main_Page
PNG (Portable Network
Graphics) Home Site
http://www.libpng.org/pub/png/
The FreeType
Project
http://www.freetype.org/