
![]()
| CGIスクリプト > リファレンス apache_2.2.4とphp-5.2.0とActivePerl-5.6.1.638をWindowsマシンへインストール |
apache_2.2.4とphp-5.2.0とActivePerl-5.6.1.638をWindowsマシンへインストール |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
httpd.confとhttpd-languages.confを編集してApacheの設定を行います。httpd.confはc:\usr\apache\confに、httpd-languages.confはc:\usr\apache\conf\extraにあります。まずhttpd.confをメモ帳などのテキストエディタで開いて該当箇所を赤字のように書き換え、または追加します。
190行目
Options Indexes FollowSymLinks
Options Indexes FollowSymLinks ExecCGI
212行目
DirectoryIndex index.html
DirectoryIndex index.html index.php
395行目
#AddHandler cgi-script .cgi
AddHandler cgi-script .cgi .pl
AddType application/x-httpd-php .php
456行目
#Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-languages.conf
次にhttpd-languages.confの設定をします。httpd-languages.confをメモ帳で開いて該当箇所を赤字のように書き換えます。
19行目
#DefaultLanguage
DefaultLanguage ja
以上でApacheの設定は終わりです。
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |