apache2 on ubuntu - php 文件下载
在我的新Ubuntu系统上,我已经设法让Apache2启动并运行,以开发我的ZendFramework Web应用程序...
我已经让我的配置正常工作,因为我能够请求,它从我指定的目录中服务器正确。available-sites
localhost
index.html
问题:如果我请求,firefox会尝试下载文件而不是运行脚本。index.php
任何想法为什么会发生这种情况?
我已经添加了以下内容,但它没有帮助。httpd.conf
AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml