WindowsでPHPを使う方法、知ってる?

2.3.Windows用Apache2の設定

2.3.1.httpd.confの修正

1.「C:\Program Files\Apache Software Foundation\Apache2.2\httpd.conf」に以下の行を追加します。
以下のような箇所を探し出し、
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
赤字部分を追加します。
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

#PHP5
PHPIniDir "C:/php5"
LoadModule php5_module "c:/php5/php5apache2_2.dll"


# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
さらに以下のような箇所を探し出し、
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
赤字部分を追加します。
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
#PHP5
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the

[目次]
<<2.2.Windows用PHP5のインストール  >>2.4.Windows用PHP5の設定