http://localhost/index.php 能够正常访问
而访问http://localhost 出现了下载的提示.请问为什么?
我的httpd.conf:
<IfModule dir_module>
DirectoryIndex index.phtml index.php index.html index.php3
</IfModule><IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
而访问http://localhost 出现了下载的提示.请问为什么?
我的httpd.conf:
<IfModule dir_module>
DirectoryIndex index.phtml index.php index.html index.php3
</IfModule><IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
重启apache
我的操作系统是ubuntu的。php是用新立得安装的。
c:/windows目录下php.ini文件也要相应改