session_start() question

Hi,

I’m working with a captcha solution for one of my current forms on a website and I’m getting this error message and captcha its not working.

Warning: session_start(): open(/var/lib/php/session/sess_f4p97uahjb4u8k1h604g37qth4, O_RDWR) failed: Permission denied (13) in /chroot/home/dyne/dynrs.com/html/products/ssbr/detail.php on line 74

I think this has something to do with permissions, but i’m not so sure where to apply (on a temp folder?) php.ini?

Thanks for pointing me to the right/proper direction to solve this case.

Thanks! Jesus

I fixed this with chmod 777 to my sessions folder

I was having similar issues with PHP scripts not working with session. I took a look at /var/lib/php/session. It was set root:apache for ownership with 770 as permission. Instead of setting 777, I used Interworx to resolve issue. Go to System Services -> Web Server. Scroll down the page until you see the section PHP Integration Mode. My PHP Mode was set to PHP Scripts run as SiteWorx user. I changed it to PHP Scripts run as apache. That resolved my PHP session issues too.