#author("2017-03-29T14:15:33+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/]]

*インストール [#q5789ef2]

**モジュール版をインストールしてApacheで使う [#c5f14083]
-以下のコマンドでインストール。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
}}


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