Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:51:32 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [Fixed] Installation Problem: PHP Session Support  (Read 505 times)
donv

Offline Offline

Posts: 23



« on: January 22, 2010, 10:04:49 AM »

Hi,

I'm trying to install my fourth instance of WB on a new hosting account with the same firm as hosts all the others.  With this host (asmallorange.com), I need to use PHP5 to address file permissions issues.    If I use PHP4, then the WB installer reports session support enabled but fails the permissions.  When I try to install WB under PHP5, I get the green light on the permissions but a red "disabled" for PHP Session support.  I have contacted the hosting company's support group and they have confirmed that PHP5 and session support is enabled and provided a phpinfo page in my account to confirm it is.

Here are the specific error messages which show in the error log:
Code:
[22-Jan-2010 03:08:05] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_f97cbf94fe36b57dc7be6f5573ff955d, O_RDWR) failed: Permission denied (13) in /home/cshweb/public_html/install/index.php on line 29
[22-Jan-2010 03:08:05] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/cshweb/public_html/install/index.php:29) in /home/cshweb/public_html/install/index.php on line 29
[22-Jan-2010 03:08:05] PHP Warning:  Unknown: open(/tmp/sess_f97cbf94fe36b57dc7be6f5573ff955d, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[22-Jan-2010 03:08:05] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

OK, so it looks like there may be an issue with the /tmp file and permissions.  Where is this
Code:
session.save_path
being set?  Is this something I can change in WB or is it a configuration issue with my hosting company?

Or is that error just a symptom of some other problem?

Thanks,
Don
« Last Edit: January 22, 2010, 10:30:46 AM by donv » Logged
donv

Offline Offline

Posts: 23



« Reply #1 on: January 22, 2010, 10:29:57 AM »

OK, my problem is solved.  I don't understand why, but changing the /tmp directory permissions from 755 (no joy) to 777 (no joy) to 755 again (joy!) fixed my problem.  Must have been something strange about the directory set up as enabled by the hosting company?
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!