"unable to write session data" during install and admin switches to IP address
Posted: Tue Jan 24, 2006 1:13 am
I'm having trouble installing CMSMS on a new ISP. After copying the CMSMS folders up to the site, setting folder permissions, and initializing the database, install.php gets weird starting at step 2.
While the main text on the page looks correct, at the bottom in green it says:
Warning: Unknown(): open(/tmp/php-ses/sess_f89eb6f615c0729e7171c485562aff0a, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/php-ses) in Unknown on line 0
It's like the tmp folder isn't writeable, except that all four folders that are supposed to be 777 seem to be. (And the config file is 666.) And in step 1, the messages indicated that the folders that needed to be writable were.
With the exception of these messages, however, the install proceeds normally. On each subsequent page, the same error appears, even on the last "success!" page. When I view the main site after install, I do NOT get the messages. But when I switch to admin, the login screen gets the messages again.
And, when I enter the admin login info and click Submit, the URL switches from the normal domain name to an IP address. Since I have a shared host, IP addresses by themselves don't work.
Possible clue: In the last page of the Install (step 4) the CMS Document Root defaults to an IP address, not the domain name. I have to manually edit it to make it a domain name instead.
Lastly, checking the config.php file, I see that it has only domain names in it, no IP addresses. So the IP address that comes up after admin login is NOT coming from the config.php file.
Has anyone encountered this problem before?
Thanks in advance for any help!
Michael
While the main text on the page looks correct, at the bottom in green it says:
Warning: Unknown(): open(/tmp/php-ses/sess_f89eb6f615c0729e7171c485562aff0a, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/php-ses) in Unknown on line 0
It's like the tmp folder isn't writeable, except that all four folders that are supposed to be 777 seem to be. (And the config file is 666.) And in step 1, the messages indicated that the folders that needed to be writable were.
With the exception of these messages, however, the install proceeds normally. On each subsequent page, the same error appears, even on the last "success!" page. When I view the main site after install, I do NOT get the messages. But when I switch to admin, the login screen gets the messages again.
And, when I enter the admin login info and click Submit, the URL switches from the normal domain name to an IP address. Since I have a shared host, IP addresses by themselves don't work.
Possible clue: In the last page of the Install (step 4) the CMS Document Root defaults to an IP address, not the domain name. I have to manually edit it to make it a domain name instead.
Lastly, checking the config.php file, I see that it has only domain names in it, no IP addresses. So the IP address that comes up after admin login is NOT coming from the config.php file.
Has anyone encountered this problem before?
Thanks in advance for any help!
Michael