我不确定这里发生了什么,但我认为权限存在问题。我会尝试描述症状,希望有人能治愈吗?我想在EC2实例上运行我的网站。我按照本指南安装了灯泡:https://gist.github.com/aronwoost/1105007。该网站使用PHP,MySQL和JavaScript。我看到我能够通过从php文件运行查询来访问mysql数据库,但有很多东西不能正常工作:
编辑: 我对httpd.conf所做的唯一修改是这一部分:
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
答案 0 :(得分:1)
听起来像是一个mimetype问题。您可以将它添加到.htaccess(或主apache conf):
AddType application/x-httpd-php .php .html