CentOS6にphp4をインストールする

cd /usr/local/src/
rpm -ivh libjpeg-6b-37.i386.rpm libpng-1.2.10-17.el5_8.i386.rpm libXpm-3.5.5-3.i386.rpm
rpm -ivh libjpeg-devel-6b-37.i386.rpm libpng-devel-1.2.10-17.el5_8.i386.rpm
ln -s /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so
ln -s /usr/lib/libpng.so.3.10.0  /usr/lib/libpng.so
ln -s /usr/lib/libXpm.so.4.11.0 /usr/lib/libXpm.so

tar -zxvf php-4.3.11
patch php-4.3.11/main/php_variables.c < php-4.3.11-global.patch
cd php-4.3.11
vim ext/mysql/libmysql/libmysql.c

---------------------------------
//#ifdef ENABLED_LOCAL_INFILE
  mysql->options.client_flag|= CLIENT_LOCAL_FILES;
//#endif
---------------------------------

./configure --prefix=/usr/local/php --with-apxs2=/usr/sbin/apxs --with-config-file-path=/usr/local/php/etc --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --enable-versioning --enable-ftp --with-mysql=/usr/local/mysql --with-gd --with-jpeg-dir=/usr/lib -with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-freetype-dir=/usr/lib
make
make install
chcon -t textrel_shlib_t /usr/lib/httpd/modules/libphp4.so