Thursday, November 29, 2012

Re: portal to server cluster problem

So, that error confirms my suspicion.  PHP is trying to write the session to disk, but it can't write to /var/chroot/home/content/72/5132572/tmp.  I'm not familiar with your hosted environment set up.  If you could create that structure, and ensure the web server has permissions to write to it, then you should be fine.  Otherwise, you'll need to work with your hosting company to set session.save_path to a directory that only you have access to, and that your web server can write to.

This command: chmod -R 777 app/tmp/ , opens full permissions on your CakePHP temp directory, and all sub directories and files, to make sure that the web server (and another process on the machine) can write to them.  This would fix possible permission errors with CakePHP writing cached files (model cache), or logs.

Regards
Reuben Helms

On Friday, 30 November 2012 10:03:13 UTC+10, roundrightfarm wrote:
from my core file
Configure::write('Session.save', 'php');

but in phpinfo()
session.save_path says "no value"

this is the first warning to appear on all pages of my site, not just
the login
Warning (2): session_start() [function.session-start]: open(/var/
chroot/home/content/72/5132572/tmp/sess_lt2tdtqr39hy7fgd95qnknj1l1,
O_RDWR) failed: No such file or directory (2) [APP/cake/libs/
cake_session.php, line 589]

what does this line suggested by Andras do?
chmod -R 777 app/tmp/


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: