IT備忘録

LINUX関連 .NET関連 DB関連 正規表現 その他 情報

PHP5インストール
# cd /usr/local/src
# wget http://jp.php.net/get/php-5.2.4.tar.gz/from/this/mirror
# tar xzvf php-5.2.4.tar.gz
# cd php-5.2.4

configureの前に、httpd-develをインストールしておく必要がある。
#yum -y install httpd-devel
(もしくはwget http://ftp.ne.jp/Linux/packages/fedora/core/5/i386/os/Fedora/RPMS/httpd-devel-2.2.0-5.1.2.i386.rpm)

# ./configure --enable-sigchild --enable-mbstring --enable-mbregex --with-gettext --enable-force-cgi-redirect --enable-zend-multibyte --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-zlib-dir=/usr --with-openssl --disable-cgi --enable-ftp --with-curl --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/sbin/apxs --with-mcrypt=/usr/local/lib --with-pgsql=/usr/local/pgsql
--prefix=/usr/local/lib/php5
# make

makeで
gpcom: error while loading shared libraries:
/home/kusumoto/bess/plib/lib/libBessP.so:
cannot restore segment prot after reloc: Permission denied
のようなエラーが出る場合、
chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /home/kusumoto/bess/plib/lib/libBessP.so
として、SELinuxのセキュリティを解除する。「〜.so」はシンボリックリンクを張っている場合もあるので、その場合は本体のセキュリティを解除する必要がある

パッケージがないと言われた場合
たとえば -lltdl がないと言われた場合、ライブラリはlibltdlだから
検索
# yum search libltdl
ライブラリ名が見つかったら、インストールされているか確認
# rpm -qa | grep libltdl
インストール
# yum -y install libltdl


# make install
■PHP5設定ファイルコピー
# cp php.ini-dist /usr/local/lib/php.ini
■PHP5利用のためApacheの設定
# vi /etc/httpd/conf.d/php.conf
以下をコピー&ペースト
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
■Apacheの設定テスト
# /etc/init.d/httpd configtest


 リンク

Apache 2.0とTomcat 5.0の連携
dnotifyを利用する場合
SQLのテクニックを記
Oracleのテクニックを記
VARCHAR2をNUMBERに変換する際、桁数で怒られるときに桁数を無視するfunction
tracの設定メモ
inotifyを利用する場合
監視サーバーの設
SSLキー作
監視サーバーの設
[IT備忘録]のサイト内にある文章の正確性については一切責任を持ちません。
実開発の際には、技術的内容は十分確認した上で作業してください。

(C) 2010 IT備忘録 All rights reserved.