カレンダー
2007年3月
1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

<<Backward
Wiki内検索
最近更新したページ
最新コメント
USBメモリのマウント by Order Viagra
USBメモリのマウント by パソコン修理マン
カテゴリー
このウィキの読者になる
更新情報がメールで届きます。
このウィキの読者になる
メニューバーB
ここは自由に編集できるエリアです。

2006年12月
1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31
最新コメント
USBメモリのマウント by Order Viagra
USBメモリのマウント by パソコン修理マン

PHP5.2のインストール

PHP5.2.5のインストール

日本PHPユーザ会よりphp-5.2.5.tar.gzをダウンロードする。
解凍後、次のようにconfigureを実行する。

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--without-pgsql \
--with-config-file-path=/usr/local/lib \
--enable-mbregex \
--enable-zend-multibyte \
--enable-mbstring \
--with-curl=/usr/local \
--enable-ftp \
--with-imap-ssl \
--with-kerberos \
--with-openssl \
--enable-magic-quotes \
--with-pear \
--enable-safe-mode \
--enable-sockets \
--with-gd \
--enable-gd-native-ttf \
--with-ttf=/usr \
--with-jpeg-dir=/usr \
--with-zlib \
--with-zlib-dir=/usr \
--with-png-dir=/usr \
--with-xmlrpc=/usr/local \
--enable-exif \
--with-freetype-dir=/usr \
--with-gettext=/usr \
--with-mcrypt=/usr

  • mcryptがないというエラーが出るときは次のようにしてインストール

# yum install libmcrypt
# yum install libmcrypt-devel

  • あとはmakeを実行

# make (ログを取るときは # make > make.log 2>&1 )
# export LD_LIBRARY_PATH="/usr/lib:/usr/local/lib"
# make test
# make install

  • configureやり直し
余談であるが、configureをやり直す場合には、以下のようにキャッシュを削除しなければならない。

# rm config.cache


つぎにMediaWikiを使用する場合のphp.iniの設定である。
これをMediaWikiでのphp.ini設定に示す。
2008年01月17日(木) 14:21:45 Modified by orangekid2




スマートフォン版で見る