0
votes

I have setup symfony 1.4 on Amazon AMI, Linux. I've configured everything but am still getting 500 internal server error. Also I am new to symfony.

Here is my vhost entry:

<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>

My Error Log shows:

[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
3

3 Answers

2
votes

As @bacardnumberone said, it's a cache problem. Run:

sudo ./symfony project:permissions
./symfony cc
0
votes

When facing an HTTP 500 Server Error, you have to read the latest lines of your PHP error log file in order to see a much more detailed error message.

If you don't know where your log file is located, use :

<?php
phpinfo();
?>

to discover its full path.

0
votes

It seems like a problem with symfony caching system. Check cache folder permissions. This folder has to be writeable for user on which apache is running.