我在 Amazon AMI、Linux 上设置了 symfony 1.4。我已经配置了所有东西,但仍然收到 500 内部服务器错误。我也是 symfony 的新手。
这是我的虚拟主机条目:
<VirtualHost *:80>
ServerName ec2-50-17-85-111.compute-1.amazonaws.com
DocumentRoot "/var/www/html/flumenCode/web"
DirectoryIndex index.php
<Directory "/var/www/html/flumenCode/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /var/www/html/firstlumen/lib/vendor/symfony/data/web/sf
<Directory "/var/www/html/firstlumen/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
我的错误日志显示:
[Fri Apr 27 08:49:11 2012] [error] [client 2.127.103.112] PHP Fatal error: require(): Failed opening required '/var/www/html/flumenCode/cache/frontend/prod/config/config_config_handlers.yml.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/flumenCode/lib/vendor/symfony/lib/config/sfConfigCache.class.php on line 279