TITLE:ApacheとPHPの設定 *Apacheの設定 [#f1fa523f] Vine 4.1でのApacheは、デフォルトで Apache2 (2.0)。 設定内容自体は、以前の設定をほぼコピーでOK。 というわけで、細かい設定の説明は省略。 **作業の流れ [#c27223e4] +Apacheとmod_sslの設定 # <お好きなエディタ> /etc/apache2/conf/httpd.conf # <お好きなエディタ> /etc/apache2/conf.d/ssl.conf +秘密鍵と公開鍵の作成(前のをコピー) +設定ファイルをチェックし、動作確認(1.3と2.0の起動-停止を繰り返す) # apache2ctrl # service apache2 start +サービス開始の設定 # chkconfig apache2 on *PHPの設定 [#m12458ab] Vine 4.1では、PHP4とPHP5を選択することができるが、 すでにPHP5を利用していたため、PHP5をインストール。 設定も、以前の情報をそのままコピーでOK。 **作業の流れ [#u9fecdb6] +PHPの設定ファイルを編集 # vim /etc/php5/php.ini +Moodle用に、次の設定を追加 session.bug_compat_warn = 0 upload_max_filesize = 10M mbstring.encoding_translation = Off +エラーレベルの設定を追加 ; Debug error_reporting = E_ALL & ~E_NOTICE +設定を有効にするため、Apacheを再起動 # service apache2 restart ***設定内容 [#td551033] #pre{{ [Vine] output_buffering = Off expose_php = Off memory_limit = 32M variables_order = "GPCS" default_charset = EUC-JP extension_dir = /usr/lib/php5 allow_url_include = Off sendmail_path = /usr/sbin/sendmail -t -i session.save_path = "/var/php5/session" session.use_only_cookies = On session.use_strict_mode = On session.entropy_file = /dev/urandom session.entropy_length = 32 session.hash_function = 1 mbstring.language = Japanese mbstring.internal_encoding = EUC-JP mbstring.http_input = auto mbstring.http_output = pass mbstring.encoding_translation = On ; for Moodle ; 2007/03/01 session.bug_compat_warn = 0 upload_max_filesize = 10M ;output_buffering = On ;output_handler = mb_output_handler ;mbstring.http_output = SJIS ;mbstring.detect_order = auto ;mbstring.substitute_character = none; ; mbstring.encoding_translation = Off }} **参考リンク [#p7c545b9] -http://vine.1-max.net/ |