Home > Unable To > Symfony Unable To Create The Cache Directory

Symfony Unable To Create The Cache Directory

Contents

asked 3 years ago viewed 12715 times active 2 months ago Related 3Having permission problems with XAMPP3Sudo permissions error1Xampp PHP File Permissions with NTFS Hdd's as additional media storage0Using XAMPP in Ask Ubuntu works best with JavaScript enabled Toggle navigation Belchamber Web Tools and Code Home Articles Mobile Web Marketing PHP WordPress Symfony, Doctrine & ORMs JQuery Javascript Java & Play Framework share|improve this answer answered Aug 30 '12 at 6:35 Elnur Abdurrakhimov 35.3k6114113 add a comment| up vote -1 down vote I got this error and I tried all these tips without for Apache, update the User and Group values). http://homecomputermarket.com/unable-to/unable-to-create-collection-return-code-is-488.html

Centering equations under align Which process is `/proc/self/` for? defaults to apache assuming you are using apache for your web server. I am now unable to load my homepage on : http://localhost/projet_etienne/web/app_dev.php it says : RuntimeException: Failed to write cache file "/var/www/projet_etienne/app/cache/dev/classes.php". Do you say prefix K for airport codes in the US when talking with ATC? http://stackoverflow.com/questions/13211829/symfony2-failed-to-write-cache-directory

Symfony Unable To Create The Cache Directory

Instead of deleting, set them to writable chmod -R 777 /app/cache etc... –timofey Jun 17 '14 at 19:19 3 I see bad practices, zizoujab answer is better I think –khaled_webdev Coprimes up to N iPhone SE powers on whenever moved, defective? 9-year-old received tablet as gift, but he does not have the self-control or maturity to own a tablet A word What are some of the serious consequences that someone can suffer if they omits part of their academic record on their application for admission? sudo setfacl -R -m u:apache:rwX -m u:`whoami`:rwX app/cache app/logs sudo setfacl -dR -m u:apache:rwX -m u:`whoami`:rwX app/cache app/logs (where apache is your HTTPD user) share|improve this answer edited Nov 28 '14

guyaloni Member Posts: 84Joined: Fri May 21, 2010 12:49 pmLocation: Spain Top 4 posts • Page 1 of 1 Board index Powered by phpBB Forum Software © phpBB Group Veuillez Anonyme 20 juin 2013 à 15:01:00 OS ? How do manufacturers detune engines? 9-year-old received tablet as gift, but he does not have the self-control or maturity to own a tablet Keeping someone warm in a freezing location with Setfacl: Command Not Found Create your application2.

How can I convince players not to offload a seemingly useless weapon? Uncaught Exception 'runtimeexception' With Message 'unable To Create The Cache Directory Changing your web server to run as the same user as your login is not the ideal solution as it's not a very secure option, and you are still going to Help with a prime number spiral which turns 90 degrees at each prime Is it possible to manually set istream fail bit in C++11 How can I set up a password Many forget about sub-directories.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Symfony Cache Permissions guyaloni Member Posts: 84Joined: Fri May 21, 2010 12:49 pmLocation: Spain Top Re: Problem after clearing cache by Kuntz » Thu Oct 27, 2011 2:06 pm Like you said it's I don't understand much about this cache business! more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Uncaught Exception 'runtimeexception' With Message 'unable To Create The Cache Directory

Make an interweaving quine How to calculate the expectation of a "ceiling" normal distribution besides Monte Carlo? http://forum.symfony-project.org/viewtopic.php?t=37645&p=124911 You may need to enable ACL support on your partition and install setfacl before using it (as is the case with Ubuntu). Symfony Unable To Create The Cache Directory When running Symfony from the command line, cached files/directories are created by the user you're logged in as - in your case, "jess". Unable To Write In The Logs Directory more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

the app/console cache:clear generates by the way a : [ErrorException] Warning: rename(/var/www/projet_etienne/app/cache/dev,/var/www/projet_etien ne/app/cache/dev_old): Directory not empty in /var/www/projet_etienne/vendo r/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearComm and.php line 77 please help! check my blog share|improve this answer edited Aug 29 '14 at 5:22 answered Nov 2 '13 at 8:29 Federico Gallo 11613 Instead of exit you should run sudo -k to leave sudo I have this problem: I changed the permissions of the cache e logs directories using the following commands: chmod 777 -R cache chmod 777 -R logs and all functions as I Make sure you rm -rf the contents of the folder, and not just php app/console cache:clear, as the symfony clear cache command will create dirs/files, which are still not writable by Install Setfacl

more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Because deleting cache files never gave any problems to me –Mats Rietdijk Nov 3 '12 at 23:40 that was not ironical, no ;) –Matoeil Nov 4 '12 at 10:10 this content Not the answer you're looking for?

Why study finite-dimensional vector spaces in the abstract if they are all isomorphic to R^n? Runtimeexception In Classcollectionloader.php Line 248: Symfony 2 chmod -R 777 app/cache app/logs Symfony 3 directory structure chmod -R 777 var/cache var/logs Additional Resources Permissions solution by Symfony (mentioned previously). exit also closes the console. –Max Damage May 12 '15 at 13:25 Thanks for your contribution.

Using ACL on a system that supports chmod +a Many systems allow you to use the chmod +a command.

Is it possible to manually set istream fail bit in C++11 Where does metadata go when you save a file? symfony2 caching nginx share|improve this question asked Aug 30 '15 at 14:08 MJ Convento 2314 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted Setting Could you make me a hexagon please? Symfony Clear Cache Kuntz Junior Member Posts: 14Joined: Tue Oct 18, 2011 5:24 pm Top Re: Problem after clearing cache by guyaloni » Thu Oct 27, 2011 1:56 pm Looks like you have

Is it possible to get a professor position without having had any fellowships in grad school? Related This entry was posted in Articles, Symfony, Twig, Doctrine & ORMs and tagged php, php framework, symfony, symfony tips. Aaron Belchamber, all rights reserved. have a peek at these guys share|improve this answer answered Mar 7 '14 at 7:46 Francis Alvin 39446 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google