This has sparked a general question for me that I haven't seen elsewhere (not that it isn't, in fact, elsewhere). If I want to run MediaWiki in a farm environment (insert favorite load balancing technology), do I have to setup the session_save_path to point to a filesystem location shared by all web servers? AKA an NFS export mounted in the same place on all apache boxes.
If this is true, are there other requirements of a load balanced/farmed environment?
Thanks, Jeff
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jamie Bliss Sent: Thursday, April 28, 2005 2:28 PM To: ben wiseley; MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] logged in users can't save edits
I'm seeing this on the Wikiwyg server, too. At first, I thought it was a misconfiguration thing, but maybe not.
What PHP versions are being used? What does session_save_path() return before changing it? (call it without any arguments)
On 4/28/05, ben wiseley wiseleyb@gmail.com wrote:
On my local box (Ubuntu) this works fine.
On the linux host I'm using once you log in (as a normal user, WikiSysop, any user type) and edit something (any page) and hit save it acts as though you hit the preview. If you're logged out you can edit
and save normally.
Any ideas?
Could this be related to this quirk? In a previous email I asked about users auto logging out. I added this:
session_save_path("/public_html/sandBoxWiki/sessions");
to my LocalSettings.php. Now users only stay logged in if you check "Remember my password across sessions"
-ben
-- ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Wolfe, Jeff wrote:
This has sparked a general question for me that I haven't seen elsewhere (not that it isn't, in fact, elsewhere). If I want to run MediaWiki in a farm environment (insert favorite load balancing technology), do I have to setup the session_save_path to point to a filesystem location shared by all web servers? AKA an NFS export mounted in the same place on all apache boxes.
That's one way to do it, yes.
At Wikimedia we're using a memcached server pool for the parser cache, various other bits, and session data. If you're using memcached, you can set:
$wgSessionsInMemcached = true;
A general word of warning: memcached has no authentication, so should always be used with care. Leaving your memcached servers accessible from outside your private, controlled network would be a Really Really Bad Idea.
If this is true, are there other requirements of a load balanced/farmed environment?
The upload dir and other permanent generated files such as the math directory (if using texvc) also need to be on a shared filesystem mounted at a consistent path on each server.
And of course, make sure the web servers' clocks are synchronized! NTP is your friend.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org