Session / Header errors after enabling PHPsuexec

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Keithb
Forum Members
Forum Members
Posts: 15
Joined: Mon Aug 02, 2010 7:27 pm

Session / Header errors after enabling PHPsuexec

Post by Keithb »

I've never been a fan of 777 permissions so I enabled PHPsuexec in WHM on cpanel server.  After changing directories to 755, I now get:

Warning: session_start() [function.session-start]: open(/tmp/sess_fd18fea834f6d44d41c0e65a5c0e3d43, O_RDWR) failed: Permission denied (13) in /home/******/public_html/include.php on line 34

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/******/public_html/include.php:34) in /home/*******/public_html/include.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/include.php:34) in /home/*******/public_html/index.php on line 262

And in the admin interface everything is just laid on top of each other.  Any ideas on that?  I'd rather run phpsuexec if possible due to security reasons.  I'm not comfortable leaving 777 out there.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Session / Header errors after enabling PHPsuexec

Post by calguy1000 »

Well the error is self describing... your user account doesn't have permission to write to the /tmp directory, where the sessions are saved.

Change the session save path to a location where your user account can write.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Keithb
Forum Members
Forum Members
Posts: 15
Joined: Mon Aug 02, 2010 7:27 pm

Re: Session / Header errors after enabling PHPsuexec

Post by Keithb »

Thanks.  Any ideas how to do this through .htaccess?  I prefer not to get to the root level in php.ini if possible.
Post Reply

Return to “CMSMS Core”