*** Apache で PHP を動かす [#h4722f37]

- PHP5をインストールする
 # yum -y install php php-mbstring
 DirectoryIndex index.html index.htm index.cgi index.php ←追加
 
 AddType application/x-httpd-php .php ←追加

- apache を再起動
 # /etc/init.d/httpd restart

- PHPの動作状況を確認
 # echo "<?php phpinfo(); ?>" > /var/www/html/info.php

- ブラウザで確認
 http://www.sea-bird.org/info.php

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS