user3545210
user3545210

Reputation: 11

Symfony2 impossible to clear cache on my prod server

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

Answers (3)

jeremy
jeremy

Reputation: 319

the uname of the app.php file is not set to the right user on your prod server.

Upvotes: 0

takeit
takeit

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

ponciste
ponciste

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

Related Questions