This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » sfCacheException after calling symfony project first time
sfCacheException after calling symfony project first time [message #100802] Fri, 11 June 2010 15:27 Go to next message
TimB  is currently offline TimB
Messages: 14
Registered: June 2010
Location: Düsseldorf, Germany
Junior Member
Hey folks,

got a little problem after symfony installation. I created by project with it's first application following the getting started tutorial. Now, when I call index.php, I get the following exception:

Quote:

Fatal error: Uncaught exception 'sfCacheException' with message 'Failed to write cache file " /var/www/web2/csmtools/cache/frontend/prod/config/config_con fig_handlers.yml.phpkkx9eS " generated from configuration file "config/config_handlers.yml".' in /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php:348 Stack trace: #0 /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php(110): sfConfigCache->writeCacheFile('config/config_h...', '/var/www/web2/c...', '<?php?// auto-g...') #1 /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php(197): sfConfigCache->callHandler('config/config_h...', Array, '/var/www/web2/c...') #2 /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php(279): sfConfigCache->checkConfig('config/config_h...') #3 /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php(54): sfConfigCache->loadConfigHandlers() #4 /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php(197): sfConf in /var/www/web2/csmtools/lib/vendor/symfony/lib/config/sfConfi gCache.class.php on line 348


symfony version is 1.4.5; configuration check was ok (except of PHP accelerator issue). I user confixx on this server and fit the web2.conf (which contains the virtual host definitions) to my/symfonys needs.

Anyone got an idea how to continue?

Best regards,
Tim
Re: sfCacheException after calling symfony project first time [message #100803 is a reply to message #100802 ] Fri, 11 June 2010 15:42 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Critical item is "Failed to write cache file" - give your cache/ folder write access, via its owner or its group, to the user that your web server runs under.


Remember Palestine
Re: sfCacheException after calling symfony project first time [message #100806 is a reply to message #100802 ] Fri, 11 June 2010 16:27 Go to previous messageGo to next message
TimB  is currently offline TimB
Messages: 14
Registered: June 2010
Location: Düsseldorf, Germany
Junior Member
Ok, forgot some important thing: The folder exists and symfony created a file in there. CHMOD rights are on 777 (i think symfony project:permissions command set them).

web2@vserver3210:~/csmtools$ ls -al cache/
insgesamt 12
drwxrwxrwx  3 web2     web2     4096 11. Jun 14:29 .
drwxr-x--- 11 web2     www-data 4096 11. Jun 14:28 ..
drwxrwxrwx  3 www-data www-data 4096 11. Jun 14:29 frontend
web2@vserver3210:~/csmtools$ ls cache/frontend/prod/config/
config_config_handlers.yml.phpkkx9eSv
Re: sfCacheException after calling symfony project first time [message #100811 is a reply to message #100802 ] Fri, 11 June 2010 17:30 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Try chmod -R 777, to ensure those rights propagate right through the tree.

Bear in mind the security ramifications about such generous permissions though - see the article in the wiki about this, if you're on a shared server.


Remember Palestine
Re: sfCacheException after calling symfony project first time [message #100812 is a reply to message #100802 ] Fri, 11 June 2010 18:05 Go to previous message
TimB  is currently offline TimB
Messages: 14
Registered: June 2010
Location: Düsseldorf, Germany
Junior Member
Unfortunately chmod -R 777 cache/ didn't succeed. But - inspired by your idea - re-setting the owner/group of these directories with chown -R web2:www-data cache/ worked.

Thank you for helping:)
Previous Topic:running php files under a /web subfolder
Next Topic:Object not found.. "http://localhost/web"
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software