把你的php所在的路径也写进httpd.cnf文件.
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi
.....
#
Action application/x-httpd-php /php/php.exe
#