httpd.confの設定(PHP)(Windows版)
Apacheの設定ファイル(C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf)に
下記の内容を追加する。
※PHPをC:\phpにインストールしている場合
■追加1
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
↓追加
#PHP5
PHPIniDir "C:/php"
LoadModule php5_module "c:/php/php5apache2_2.dll"
↑追加
# 'Main' server configuration
#
■追加2
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
↓追加
#PHP5
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
↑追加
</IfModule>
下記の内容を追加する。
※PHPをC:\phpにインストールしている場合
■追加1
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
↓追加
#PHP5
PHPIniDir "C:/php"
LoadModule php5_module "c:/php/php5apache2_2.dll"
↑追加
# 'Main' server configuration
#
■追加2
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
↓追加
#PHP5
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
↑追加
</IfModule>
2007年11月06日(火) 11:30:27 Modified by h_maruyoshi