打开httpd.conf
找到
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>改成上面的样子(用空格分隔index.php和index.html)
重启apache
楼主好运
找到
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>改成上面的样子(用空格分隔index.php和index.html)
重启apache
楼主好运
<IfModule mime_module>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php6
</IfModule>
http://myspace.csdn.net/ShowProductDetail.aspx?ID=21
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
在此行后加入一行
LoadModule php5_module C:/php5/php5apache2_2.dll
//注意:其中C:/php5/php5apache2.dll是你安装php的相应路径.
不要把php5apache2_2.dll和 php5apache2.dll混淆.php5apache_2.dll只适用于apache 版本2的.
找到
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>改成上面的样子(用空格分隔index.php和index.html)
重启apache
楼主好运我的就是这样解决的。