|  
■httpd 入手
 http://httpd.apache.org/download.cgi
 
 $ tar -zxvf httpd-2.x.xx.tar.gz
 $ cd /httpd-2.x.xx(xは数字)[リターン]
 $ ./configure --enable-so --enable-module=so --enable-module=rewrite
 $ make
 $ make install
 
 /usr/local/apache2/bin/apachectl start
 
 $ chkconfig --add httpd
 $ chkconfig httpd on
 
 
 ■PHP
 参考
 http://www.aconus.com/~oyaji/www/apache_linux_php.htm
 
 入手
 http://www.php.net/downloads.php
 
 PHP関係のrpmの削除
 $ rpm -qa | grep php
 $ rpm -qa | grep php | xargs rpm -e
 
 PHPのインストール
 tar zxfv php4-STABLE-200306300130.tar.gz
 $ cd php-4.3.2
 $ ln -s /usr/include/mysql /usr/mysql
 $ ./configure \
 --with-apxs2=/usr/local/apache2/bin/apxs \
 --enable-mbstring \
 --enable-mbregex \
 --enable-zend-multibyte \
 --with-gd \
 --enable-gd-native-ttf \
 --with-freetype-dir=/usr \
 --with-png-dir=/usr \
 --with-zlib \
 --with-jpeg-dir=/usr \
 --with-pgsql=/usr \
 --with-mysql=/usr
 $ make
 $ su
 # make install
 
 PHPの設定
 
 # cp php.ini-dist /usr/local/lib/php.ini
 # vi /usr/local/lib/php.ini
 
 output_buffering = On
 output_handler = mb_output_handler
 default_charset = Shift_JIS
 session.save_path = /tmp/php
 [mbstring]
 mbstring.language = Japanese
 mbstring.internal_encoding = EUC-JP
 mbstring.http_input = auto
 mbstring.http_output = SJIS
 mbstring.encoding_translation = On
 mbstring.detect_order = auto
 mbstring.substitute_character = none;
 mbstring.script_encoding = auto
 設定内容
 output_buffering = On : 出力バッファリングを有効
 output_handler = mb_output_handler : 出力の変換を有効にするためにmb_output_handlerを指定
 default_charset = Shift_JIS : PHPがContent-type:ヘッダで character encodingを出力するコードを指定
 session.save_path = /tmp/php : セッションのデータが保存されるディレクトリ
 mbstring.language = Japanese : mbstringで使用される言語のデフォルト値
 mbstring.internal_encoding = EUC-JP : 内部文字エンコーディングのデフォルト値
 mbstring.http_input = auto : HTTP入力文字エンコーディングのデフォルト値
 mbstring.http_output = SJIS : HTTP出力文字エンコーディングのデフォルト値
 mbstring.encoding_translation = On : HTTP入力文字エンコーディング検出および内部文字エンコーディングへの変換
 mbstring.detect_order = auto : 文字コード検出のデフォルト値
 mbstring.substitute_character = none; : 無効な文字を代替する文字
 mbstring.script_encoding = auto : PHPスクリプトのエンコーディングを指定(ASCII,JIS,UTF-8,EUC-JP,SJISに展開)
 
 
 ■ApacheのPHP関連の設定
 # vi /usr/local/apache2/conf/httpd.conf
 
 LoadModule php4_module modules/libphp4.so
 AddType application/x-httpd-php .php
 
 DirectoryIndex index.html index.htm index.html.var index.php
 
 [Esc]、[:]、[w]、[q]で保存。
 
 # /etc/rc.d/init.d/httpd2 restart
 
 
 
 
 
 
 
 
 
 
 |  
 Apache 2.0とTomcat 5.0の連携
 
 
 
 
 dnotifyを利用する場合
 SQLのテクニックを記
 
 
 
 
 
 Oracleのテクニックを記
 VARCHAR2をNUMBERに変換する際、桁数で怒られるときに桁数を無視するfunction
 
 
 
 
 tracの設定メモ
 inotifyを利用する場合
 監視サーバーの設
 SSLキー作
 監視サーバーの設
 |