So I managed to get things up and running. SELinux wasn't the issue. Before
I go making assumptions, however I have some additional questions:
1. Does MediaWiki support memcached?
- Based on evidence I see on the net, the answer to this question should be
"yes indeed!" but, this leads me to another question:
2. Does MediaWiki support connecting/interacting with memcached over unix
domain socket?
- I cannot seem to find an answer regarding this on the internet, and based
on my work around that I implemented, this does not seem to be the case.

The work-around I had to implement to get my installation to work was:
1. Install php-xml
2. Run the MediaWiki installer via the CLI. The session_start errors
prevented me loading the interactive installation page, and this in term
prevented me from having a LocalSettings.php page present to modify. So I
ran the installer via php-cli:

php maintenance/install.php --dbname your dbname --dbserver localhost
--dbtype mysql --dbuser yourdbuser --dbpass "yourdbpass" --pass
"yourdbpass" wikiname wikiadminusername

After getting a copy of Localsettings.php, I was able to load the
landing page, but then attempting to do anything else on the wiki
resulted in 500 errors. I tried specifying memcached as my
cache/session manager per documentation for MediaWiki

But since my memcachedinstance is configured to use unix sockets, I
could not enter the address for MediaWiki to interact with memcached.
I ended up having to manually override the session storage and
management mechanism in Locallsettings.php by adding these lines to
that file:

ini_set('session.save_path', "/tmp/");
ini_set('session.save_handler', 'files');


So, finally, here are my questions: Does MediaWiki support memcached?
Does it support connecting to memcached over Unix domain socket? If
so, how do I configure MediaWiki to do so?




On Mon, Nov 4, 2013 at 8:54 AM, Chris Steipp <[email protected]> wrote:

> If you're using centos 6, definitely try *temporarily* disabling selinux
> make sure your policy isn't preventing access.
>
> On Nov 3, 2013 11:29 AM, "Tony Robinson" <[email protected]>
> wrote:
> >
> > Hello,
> >
> > I'm trying to install MediaWiki on CentOS with php-fpm, memcached, and
> > nginx over SSL. If you've seen the Ars Technica "How to set up a Safe and
> > Secure Web Server" (
> >
>
> http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/
> )
> > I'm basically attempting to replicate all the applications they installed
> > on Ubuntu to CentOS.
> >
> > So long story short, I'm installing Mediawiki as per the instructions
> here:
> >
>
> http://arstechnica.com/information-technology/2013/02/web-served-7-wiki-wiki-wiki/
> >
> >
> > Whenever I attempt to browse to the default index page on my wiki to
> > perform the install, I get a blank page. I check my nginx error logs and
> I
> > get this:
> >
> > 2013/11/03 11:27:37 [error] 22415#0: *1 FastCGI sent in stderr: "PHP
> > message: PHP Fatal error:  session_start(): Failed to initialize storage
> > module: memcache (path: /var/run/memcached/memcached.sock) in
> >
>
> /var/www/html/BlindSeeker/public_html/wiki/includes/templates/NoLocalSettings.php
> > on line 50" while reading response header from upstream, client:
> > 192.168.1.2, server: www.blindseeker.localdomain, request: "GET /wiki/
> > HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.soc:",
> host:
> > "192.168.1.11"
> >
> > So, understand my web-foo isn't strong, but from what I can make of this,
> > Mediawiki is refusing to use memcache for session management. php-fpm has
> > been told where the unix socket for memcached is located, and other php
> > applications (vanilla, wordpress) are able to use it effectively.
> >
> > I can also use nc -U /var/run/memcached/memcached.sock and connect to the
> > socket successfully, so I don't know why MediaWiki is refusing to use it.
> >
> > So I've tried hitting the #mediawiki IRC channel for some answers, and
> the
> > only suggestion I got back was to see if safe_mode is turned on via
> > php.ini, other suggestions via google state to turn on verbose logging
> > under LocalSettings.php, but the file doesn't exist yet -- I haven't
> > finished the installation phase since the install page won't render.
> >
> > So, I'm at a loss here. any suggestions?
> >
> > --
> > when does reality end? when does fantasy begin?
> > _______________________________________________
> > MediaWiki-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
when does reality end? when does fantasy begin?
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to