• 追加された行はこの色です。
  • 削除された行はこの色です。
*PHP 5.1 インストール手順 [#gfd0d8fe]
#contents
**概要 [#k9fbc4a4]
本手順書は下記環境に沿ったインストール手順である。

PHP    : php 5.1.6~
OS     : Redhat Enterprise Linux ESv4 (x86 32bit)~
インストール先 : /usr/local/php

**ソースの取得 [#j1257763]
開発元のサイトよりインストール元を取得する。~

http://jp.php.net/

**インストール [#x0cc538d]
ソースを取得し展開する

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

configureを行う。~
各種ライブラリの指定とMySQLサポートを追加した設定。

 ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --disable-libxml --disable-xml --without-pear --with-zlib --with-openssl --with-mysql=/usr/local/mysql

コンパイルとインストールを行う。~

 make
 make install

**設定ファイル作成 [#zd881ba2]
OSの起動時に自動的にapacheが起動するように設定する。

 cd /etc/init.d/
 cp /usr/local/apache/bin/apachectl ./
 cd ../rc3.d/
 ln -s ../init.d/apachectl S88httpd
 cd ../rc5.d/
 ln -s ../init.d/apachectl S88httpd


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS