Top > Install Log > VineLinux4.1 > apache_and_php
AND OR

Apacheの設定

Vine 4.1でのApacheは、デフォルトで Apache2 (2.0)。 設定内容自体は、以前の設定をほぼコピーでOK。 というわけで、細かい設定の説明は省略。

作業の流れ

  1. Apacheとmod_sslの設定
    # <お好きなエディタ> /etc/apache2/conf/httpd.conf
    # <お好きなエディタ> /etc/apache2/conf.d/ssl.conf
  2. 秘密鍵と公開鍵の作成(前のをコピー)
  3. 設定ファイルをチェックし、動作確認(1.3と2.0の起動-停止を繰り返す)
    # apache2ctrl
    # service apache2 start
  4. サービス開始の設定
    # chkconfig apache2 on

PHPの設定

Vine 4.1では、PHP4とPHP5を選択することができるが、 すでにPHP5を利用していたため、PHP5をインストール。 設定も、以前の情報をそのままコピーでOK。

作業の流れ

  1. PHPの設定ファイルを編集
    # vim /etc/php5/php.ini
  2. Moodle用に、次の設定を追加
    session.bug_compat_warn = 0
    upload_max_filesize = 10M
    mbstring.encoding_translation = Off
  3. エラーレベルの設定を追加
    ; Debug
    error_reporting  =  E_ALL & ~E_NOTICE
  4. 設定を有効にするため、Apacheを再起動
    # service apache2 restart 

設定内容

[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

参考リンク


リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Tue, 11 Mar 2014 20:20:22 JST (3698d)