Sponsored Link

PHP4 インストール




http://www.php.net/
$ tar -zxvf php-4.2.2.tar.gz
$ cd php-4.2.2/
$ ./configure \
  --with-apxs=/usr/local/apache/bin/apxs \
  --with-pgsql=/usr/local/pgsql \
  --with-mysql=/usr/local/mysql \
  --enable-mbstring \
  --enable-mbstr-enc-trans \
  --enable-gd-native-ttf \
  --with-gd=/usr \
  --with-freetype-dir=/usr \
  --with-jpeg-dir=/usr \
  --with-zlib=/usr \
  --with-png-dir=/usr
$ make
$ su
# make install

GD を組み込む場合には、先に GD をインストールしておく必要があります。
configure の変な色の部分 は、GDを組み込むときのオプションです。
上記は RPM/DEB 等パッケージにより、インストールされている場合のパスです。
ソースよりコンパイルした場合には /usr/local となります。

----------------------------------------
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageStringTTF in -lgd... (cached) yes
----------------------------------------
であれば、GD 組み込みが成功していると思われます。

インストール後に Apache のリスタートを行い、PHPが組み込まれているか
「TELNET localhost 80」 → 「HEAD / HTTP/1.0」で ご確認ください。


MySQL インストール トップページ