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