Hello folks,
Please forgive me, I'm new to this. Searched the archives and found my non-sticking log in problem mentioned (I can log in, but as soon as I change pages the login is lost). The solution mentioned was to set the sessions.save_path in my php.ini file.
BTW, I'm using Mediawiki version 1.10.0 with PHP version 4.4.1 on a Linux server running Apache and hosted by PHPwebhoisting.
I don't have direct access to the php.ini file but can use an .htaccess file to adjust it per directory. I have tried adding uploading the .htaccess file with Ascii to the directory above my mediawiki installation, and then changing the permissions as recommended etc...
I've tried using the following lines to no avail:
php_value session.save_path "/tmp" php_value session.save_path /tmp
Also tried keeping the session on my part of the server, but that dose not seem to work either.
Any suggestions?
Thanks a bunch! Scott _________________ Scott E. Thile S.E.THILE Handmade Pipes http://sethilepipes.com/index.htm ----------------- A laborer uses his hands. A craftsman uses his hands and heart. An artist uses his hands, heart, and soul. (St. Francis of Assisi)
On 21/06/07, Scott Thile sethile.pipes@gmail.com wrote:
I don't have direct access to the php.ini file but can use an .htaccess file to adjust it per directory. I have tried adding uploading the .htaccess file with Ascii to the directory above my mediawiki installation, and then changing the permissions as recommended etc...
Make sure it's pointing to a location that exists and is read/write/execute for the user Apache is running under.
Rob Church
Still having issues with the login not sticking.
I've verified the php_value session.save_path specified in my .htaccess file is read/write/execute for the wiki, but the sessions data is still being lost between pages.
The login sticks if remembered on my the user's machine, but then the session data is lost when editing a page. The end result is a wiki user can stay logged in if they have it remember localy, but can't succesfully save edits while logged in.
Do I need to specify a file as well as a path for session data?
Any other suggestions?
Thanks, Scott
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Scott Thile wrote:
Still having issues with the login not sticking.
I've verified the php_value session.save_path specified in my .htaccess file is read/write/execute for the wiki, but the sessions data is still being lost between pages.
The login sticks if remembered on my the user's machine, but then the session data is lost when editing a page. The end result is a wiki user can stay logged in if they have it remember localy, but can't succesfully save edits while logged in.
Do I need to specify a file as well as a path for session data?
Just a path should be fine.
But, if you're on a hosting service be aware that you might not always be on the same server. You might be on a server farm where /tmp is a different local hard disk on each request.
So you might have to try a directory that's 'persistent', in a filesystem that's shared across servers. There might be a special place for this (like on SourceForge's servers now) or you might have to take over a locked directory in your own web space. Check with the documentation or support for your hosting service if you have to do something like that.
- -- brion vibber (brion @ wikimedia.org)
Do I need to specify a file as well as a path for session data?
Just a path should be fine.
But, if you're on a hosting service be aware that you might not always be on the same server. You might be on a server farm where /tmp is a different local hard disk on each request.
So you might have to try a directory that's 'persistent', in a filesystem that's shared across servers. There might be a special place for this (like on SourceForge's servers now) or you might have to take over a locked directory in your own web space. Check with the documentation or support for your hosting service if you have to do something like that.
Thanks for helping Brion!
Tech support at the hoisting service indicates this is running as php-cgi, so it should be able to write to a path anywhere under my home directory. They also indicated I need to use a custom php.ini file instead of using an .htaccess file. I've now tried that--setting the path in that to my home directory, but the session data is still being lost.
Is there some problem associated with running in php-cgi and/or using this custom php.ini file?
Thanks, Scott
I'm still having issues with this--see bellow:
Do I need to specify a file as well as a path for session data?
Just a path should be fine.
But, if you're on a hosting service be aware that you might not always be on the same server. You might be on a server farm where /tmp is a different local hard disk on each request.
So you might have to try a directory that's 'persistent', in a filesystem that's shared across servers. There might be a special place for this (like on SourceForge's servers now) or you might have to take over a locked directory in your own web space. Check with the documentation or support for your hosting service if you have to do something like that.
It seems like I'm getting closer--I have my session.save_path in the php.ini file pointing correctly to a directory I have full access too, and I even see files being written there, but in all but one case they are empty (0 bytes). The only file that is not empty was generated from a different application we have using the same server space.
The end result is we're still not able to edit pages while logged in. Mediawiki continues to report a loss of the session data when we try to save edits.
Complete symptoms: I can only edit files if I'm NOT logged in. I can only upload files if I am logged in. I can only stay logged in while changing pages if I check the "Remember me on this computer" box while logging in.
In other words, in appears that no session data is being saved on the server, and/or being retrieved, in spite of the session files being written in the directory specified (there is just no data in there!).
The files being written are in the format "sess_lotsofrandomnumbersandletters" , and permissions are set to -re------ (600). Is that how they should look?
In all but one case, these files are empty (0 bytes). These are from mediawiki. The other file, which was 288 bytes, came from a different php site we have running on the same server account.
What else can I be missing that would be causing a continuous loss of session data?
Environment: This is a fresh install of version 1.10.0 running under PHP Version 5.1.0RC1, The Server API is CGI, and is running on Linux. I'm using a custom php.ini file I can teak to override the defaults. If it helps to figure out the issue, here is a link to pi.php file to see the environment: http://americanpipemakers.info/mediawiki/pi.php
I'm a noob with all this. I love mediawiki, and think it's perfect for my application, but I obviously need to get this nailed down before I can launch the project.
Thanks for trying any help, Scott
mediawiki-l@lists.wikimedia.org