#author("2017-03-29T14:15:33+09:00","default:wikiwriter","wikiwriter")
#author("2017-03-30T14:43:19+09:00","default:wikiwriter","wikiwriter")
&tag(Debian/PHP);
*目次 [#f8f2db0e]
#contents
*関連ページ [#s60db684]
*参考情報 [#scffa0f7]
-[[Debian 8 Jessie LAMP server tutorial with Apache 2, PHP 5 and MariaDB (instead of MySQL):https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-lamp-on-debian-jessie/]]
-[[mk-mode BLOG:http://komasaru.github.io/]]

*インストール [#q5789ef2]
*モジュール版をインストールしてApacheで使う [#c5f14083]

**モジュール版をインストールしてApacheで使う [#c5f14083]
**インストール [#j386061d]
-以下のコマンドでインストール。apache2のモジュールは自動的に有効となる
 apt-get  install php5 libapache2-mod-php5 php5-mysql php5-gd php-mbstring
-ドキュメントルートにinfo.phpを作成。
#pre{{
<?php
phpinfo();
?>
}}

**日本語設定 [#be05025a]
-apache2モジュール用のphp設定は/etc/php5/apache2/php.iniを編集する
-mbstring設定を変更。
#pre{{
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
mbstring.func_overload = 1
}}

*高速CGI版を導入したnginxで使う [#xf95a4ae]

**インストール [#zaabfada]
-以下のコマンドでインストール
 apt-get install php5-fpm
-自動起動
 systemctl start php5-fpm
 systemctl enable php5-fpm

**日本語設定 [#y3866ac1]
-
**日本語設定 [#be05025a]
-apache2モジュール用のphp.iniとは設定ファイルがことなる。/etc/php5/fpm/php.iniを編集する。
-mbstring設定を変更。
#pre{{
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
mbstring.func_overload = 1
}}


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS