Page 1 of 1
Session problem installing V1.4.1
Posted: Sun Aug 17, 2008 6:54 pm
by alastair_scs
Hi
Sorry if this has been asked before. I searched and didn't see a solution to my problem but I'm not the most advanced and might have missed something.
When installing v 1.4.1 I downloaded the tar files and followed the instructions for installing from the shell. Then went to the /install/index.php script. As long as I have the appropriate directories set to 777, I get a page that lets me choose the one and only language but then things go wrong and I am presented with the following (remarkably unhelpful) error message:
"SESSION not working, you have problem with some modules and functionality! Ask your provider, exiting"
Since this gave me no information whatever, I tried install/index.php?debug=1 and got the following, slightly more useful messages:
Warning: Unknown: open(/var/lib/php/session/sess_ei9denp7o1k79rcjuke5lvkpr6, O_RDWR) failed: Permission denied (13) 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 (/var/lib/php/session) in Unknown on line 0
Unfortunately, I'm stuck at this point cause I don't have that much technical knowledge here. This is a new VS. I can confirm that the session save path given in the error message is indeed correct.
I would really, really appreciate any help.
Thanks
Alastair
Re: Session problem installing V1.4.1
Posted: Sun Aug 17, 2008 7:13 pm
by janvl
More information is needed!
Is it windows or linux, what version/distro etc.?
did you install PHP, MySQL, what versions?
It is hard for anyone to answer when you do not give enough information.
Jan
Re: Session problem installing V1.4.1
Posted: Sun Aug 17, 2008 8:14 pm
by softins
alastair_scs wrote:
Warning: Unknown: open(/var/lib/php/session/sess_ei9denp7o1k79rcjuke5lvkpr6, O_RDWR) failed: Permission denied (13) 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 (/var/lib/php/session) in Unknown on line 0
You need to make sure that your web server (probably running as user "apache") has sufficient permissions to write session files into the directory /var/lib/php/session
ssh into the server and do this: ls -ld /var/lib/php/session
If it is owned by root, and the permissions look like drwxr-xr-x that would explain it. Try: chown apache /var/lib/php/session
And then restart apache/httpd
Re: Session problem installing V1.4.1
Posted: Mon Aug 25, 2008 3:46 pm
by Pierre M.
Hello,
Permissions denied, hence sessions not working, hence installer tests failing asking to review the requirements with your hosting provider (whose security policy may be too strict).
http://wiki.cmsmadesimple.org/index.php ... quirements
Pierre M.
Re: Session problem installing V1.4.1
Posted: Tue Aug 26, 2008 4:08 am
by DaveW
I was moving a site and wanted to upgrade at the same time. Fresh install of 1.4.1 gave me these session errors as well during installation script. However,mine is trying to put them in /tmp folder. It detects this from the PHP installation. There is one at the root of my new account when it was created, so I changed permissions to 777 but no change to hopefully allow writing, but no help.
I have checked the requirements as per Pierre and don't see where my host is not meeting them all. However, creating sessions is a problem. Perhaps a little more info from developers regarding these sessions and where they are created would be helpful.
I will be perusing the install script for hints.
Thank you.
David W.
------
Current PHP Version: 5.2.6
PHP Configuration:
* Maximum Post Size: 64M
* Maximum Upload Size: 64M
* PHP Memory Limit: 64M
* PHP Safe Mode: Off
* Maximum Execution Time: 30 seconds
* Session Save Path: /tmp
MySQL Server Version: 5.0.51a-community
Server Software: Apache/1.3.41 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Server API: CGI
Server OS: Linux v 2.6.25.15-grsec on i686 architecture
Re: Session problem installing V1.4.1
Posted: Tue Aug 26, 2008 6:38 am
by Dr.CSS
It is trying to write to the tmp folder so it will know wether it will be able to do it in the future such as when you make pages it needs to write to tmp/template_c to cache things for pages...
Have you tried setting tmp, tmp/cache, tmp/template_c to 775 or 755 and do the same thing to modules folder at same time...
Oh yea have you tried just doing it with FTP instead of shell?...
Re: Session problem installing V1.4.1
Posted: Wed Aug 27, 2008 12:29 am
by DaveW
*update*
They said they didn't do anything. Urg. Prob a reboot or something fixed it. Anyway, can't give info I don't know.
-------
Well.. I sent in a trouble ticket to Host and they said to try diff folder. Well I had several folders with several permissions settings with no luck. Now I set everything back (not specific session_path) and now it works. Urg.
I will ask them what they did because it sure would help us here.
Thank you.
David
Re: Session problem installing V1.4.1
Posted: Thu Sep 11, 2008 11:39 am
by AmElder
Hello, I'm new to CMSMS, just trying it out for use as the base for a photographer's website.
I just spent several hours wrestling with this error on MacOSX (10.4.11), running CMSMS 1.4.1 on xampp for mac 0.3.7. The problem came from the fact that my server was running as a different user from the owner of the temp file in the tmp folder (an ownership determined by the system, and not easily changed).
I got around it by simply editing my httpd.conf file to make my xampp version of Apache run as the same user that owns the tmp folder. This seems to have solved the problem.
I imagine those who run into this error on a hosted server will be able to do something similar with their htaccess file.
Hope this helps others in the future.
Am-
[edit] This solution broke other dependencies in xampp, so instead I changed the apache user back to the default, and changed the session.save_path in php.ini to point to a new file I could control.
Re: Session problem installing V1.4.1
Posted: Thu Oct 09, 2008 3:21 pm
by turniphead
I'm also getting this error
"SESSION not working, you have problem with some modules and functionality!"
Apache/2.0.52 (Red Hat), PHP Version 5.2.5, MySQL 5+
I have set tmp and uploads (and all subdirs) and the modules directory for perm 777
I have an empty config.php tried at 666 perms and then set all the way to 777, but the error persists.
I note the warnings
Warning: Unknown: open(/var/lib/php/session/sess_jllmk2ec4a2msum18f29f2s2s6, O_RDWR) failed: Permission denied (13) 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 (/var/lib/php/session) in Unknown on line 0
The thing is the directory structure /var/lib/php/session/ doesn't exist on my hosting. Can anyone suggest what to do? I only have access via ftp and a control panel, by the way.
Re: Session problem installing V1.4.1
Posted: Thu Oct 09, 2008 3:50 pm
by alby
turniphead wrote:
The thing is the directory structure /var/lib/php/session/ doesn't exist on my hosting. Can anyone suggest what to do? I only have access via ftp and a control panel, by the way.
You must ask to your hosting provider for a check
Alby
Re: Session problem installing V1.4.1
Posted: Fri Nov 28, 2008 9:52 am
by scooper
Probably a bit late now but for future reference I've just discovered that having cookies disabled in your browser will also give this error on install.
Obviously I only discovered this after about an hour spent fiddling with ini settings and restarting apache and all kinds of silly things trying to sort out session save paths. There's a lesson there about doing work before having coffee.
Check that you're not blocking cookies for the domain you're installing to.