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.
I perform these steps:
- Clear the cache ("php app/console cache:clear" and "php app/console cache:clear --env=prod")
- Upload /app, /src, /vendor, /web to shared hosting
- Make /logs and /cache writable (and all subfolders/files)
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.
The /logs/prod.log is empty.
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.
I didn't change my /web/.htaccess file, this is in it:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>