开发者

Change session storage from file to MySQL in MediaWiki

I am in the process of moving our companies MediaWiki from a single server to a clustered environment. The existing file based session storage was fine with the single server, but clearly开发者_高级运维 not for the cluster.

To address this I'm looking to use one of our existing MySQL database servers to handle session management but the only article I've come across is for a new MediaWiki installation.

I set $wgSessionHandler in LocalSettings.php but that had no effect.

Anyone have advice/experience with this?


This might not be the answer you're looking for, but I was just facing this issue myself. After trying to Do The Right Thing™ for some hours, I finally gave in and just put the sessions on shared storage.

So, if you can afford to, performance wise, and have some shared storage available or can easily create some, I can only recommend just pointing PHP's session.save_path to shared storage and save yourself the trouble.

It's the easy way out. ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜