Reputation: 11
i've deployed my S2 Project on my remote server (nginx) and when i try to clear the cache i've got an error:
[RuntimeException]
Unable to write in the "/Applications/MAMP/htdocs/Git/S2project/app/cache/prod" directory
why does it point on my local install and not on my server??
Upvotes: 0
Views: 178
Reputation: 319
the uname of the app.php file is not set to the right user on your prod server.
Upvotes: 0
Reputation: 4081
You can also try to remove cache "manually"
rm -rf cache/*
and then as suggested by ponciste
chmod 777 -R cache/*
Upvotes: 0
Reputation: 2229
you don't have permission to write in cache
folder, you should run this command:
chmod -R 777 app/cache/*
and same for the logs
folder
chmod -R 777 app/logs/*
Upvotes: 1