MySQLのインストール freetype インストール
10月 20

PHPのインストール

公式サイトからPHPのソースファイルをダウンロードします.

ソースディレクトリに配置します(/usr/local/src等)

※オプションに明記しているモジュールは事前にインストールを済ませておく必要があります。

※gettext, ftpはnagiosQLで使用


cd /usr/local/src
wget http://jp.php.net/get/php-5.3.0.tar.gz/from/this/mirror
tar xvzf php-5.3.0.tar.gz
cd php-5.3.0

'./configure' \
'--with-apxs2=/usr/local/apache/bin/apxs' \
'--with-pgsql=/usr/local/pgsql' \
'--with-mysql=/usr/local/mysql' \
'--with-zlib' \
'--with-zlib=/usr' \
'--with-zlib-dir=/usr/local/lib' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-jpeg-dir=/usr/local/lib' \
'--with-freetype-dir=/usr/local/lib' \
'--with-png-dir=/usr/local/lib' \
'--enable-mbstring' \
'--enable-mbregex' \
'--enable-zend-multibyte' \
'--enable-shared' \
'--enable-calendar' \
'--enable-exif' \
'--enable-pcntl' \
'--enable-bcmath' \
'--enable-ftp' \
'--enable-sockets' \
'--with-gettext' \
;

'--with-oci8-instant-client=/usr/lib/oracle/11.1/client/lib/' \

make

make install

PHPの再コンパイル


.configure .......................

make clean
make
make install

Comments are closed.

preload preload preload