title: Symfony2 500 response on shared hosting
body: <p>I have a working Symfony2 application running on my local server that I want to upload to my shared hosting. When I try to open the website on my shared hosting I get a 500 response.</p>
  
  <p>I perform these steps:</p>
  
  <ol>
  <li>Clear the cache ("php app/console cache:clear" and "php app/console cache:clear --env=prod")</li>
  <li>Upload /app, /src, /vendor, /web to shared hosting</li>
  <li>Make /logs and /cache writable (and all subfolders/files)</li>
  </ol>
  
  <p>When I open "www.mydomain.com/app.php" I'm getting a 500 response. When I open "www.mydomain.com/app_dev.php" Symfony gives (the expected and correct) message that I'm not allowed to open this file.</p>
  
  <p>The /logs/prod.log is empty.</p>
  
  <p>It's not possible for me to clear the cache on the shared hosting server because I don't have SHH access. I can only clear the cache on my local server and then upload the files.</p>
  
  <p>I didn't change my /web/.htaccess file, this is in it:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ app.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>