Vine6でPHP
インストール直後からのメモ。
【apache2をインストール】
(1)
#apt-get update
(2)
#apt-get install apache2
(3)
#vi /etc/apache2/conf/httpd.conf
編集内容↓
============================================
Options Indexes FollowSymLinks
→Options Includes ExecCGI FollowSymLinks
AllowOverride None
→AllowOverride All
DirectoryIndex index.html index.html.var
→DirectoryIndex index.html index.htm index.php index.cgi
============================================
【php5をインストール】
(1)
#apt-get install php5 php5-apache2 php5-devel php5-pear php5-mysql
(2)
#update-alternatives --config apache2
Selection Alternative
-----------------------------------------------
+ 1 /usr/sbin/apache2.worker
* 2 /usr/sbin/apache2.prefork
1に設定してあるものを2に変更する。
(3)
# vi /etc/php5/php.ini
編集内容↓
============================================
output_buffering = Off
→output_buffering = On
output_handler = mb_output_handler
error_reporting = E_ALL & ~E_NOTIC
default_charset = UTF-8
;mbstring.detect_order = auto
→コメントを外す
;mbstring.substitute_character = none
→コメントを外す
============================================
(4)
#/etc/rc.d/init.d/apache2 restart
上記のインストールと設定ファイル編集が完了したら、
index.htmlやphpinfo()を表示するプログラムを置いて動作確認。