Hi Chris,
   A quick look over your config identifies a couple of things you might
want to check.  First, in cherokee-admin, go to the vServer for your
MediaWiki install-->Behaviors-->Rule Management. Take a look at the very
last rule in the list, "Default". When I tried to get MediaWiki running on
my local machine, it wouldn't work without appending  /index.php (even
though it was set as the index)  unless I changed the default rule from
"Static Content" to "List and Send". Didn't really take the time to see why
just yet, but it does seem to behave that way.

Second, I don't think PHP is configured properly on that particular Virtual
Server. Take a look at the Extensions .php handler in that Virtual Server.
The configuration should match the PHP config in the working Virtual Server
that your *working* web site is running on (assuming they're in the same
instance of Cherokee). Make sure there's an information source assigned
toward the bottom of that handler's configuration page. PHP is misconfigured
in that Virtual Server (somehow). That is causing PHP to fail only on that
one virtual server while the other one is working.

Lastly, let me apologize if this e-mail doesn't make sense. I've been awake
for about 20 hours and about to head off to catch some sleep. :) I just
wanted to see if I could offer some assistance before I took off.

Jeff



On Tue, Nov 2, 2010 at 1:41 AM, Chris Rebert <[email protected]> wrote:

> So, I updated Cherokee a while ago and apparently that broke my
> MediaWiki setup somehow. I've tried scrapping the config and
> re-running the MediaWiki vServer wizard from scratch, to no avail
> (When it was previously working, MediaWiki had been setup via the
> wizard). It had been running fine on my root domain name, but now when
> I try and access it from plain http://rebertia.com , I get a 403
> Forbidden. When I access a wiki URL specifically (e.g.
> http://rebertia.com/wiki/Main_Page ), I get served a raw PHP file. On
> the other hand, my Wordpress-powered blog is still working fine even
> after restarting Cherokee several times and purging my browser's
> cache, so PHP itself seems to be in working order.
>
> I'm a greenhorn as far as running a server, so I'd appreciate any
> suggestions whatsoever as to how to fix this.
> I'm running Cherokee 1.0.8 on Ubuntu; MediaWiki v1.16.0
>
> In the unlikely event that it helps, here's what I believe to be the
> relevant parts of cherokee.conf (although they should just be the
> wizard-generated defaults):
> vserver!10!directory_index = index.html
> vserver!10!document_root = /var/www
> vserver!10!error_writer!filename = /var/log/cherokee/cherokee.error
> vserver!10!error_writer!type = file
> vserver!10!logger = combined
> vserver!10!logger!access!buffsize = 16384
> vserver!10!logger!access!filename = /var/log/cherokee/cherokee.access
> vserver!10!logger!access!type = file
> vserver!10!nick = default
> vserver!10!rule!5!encoder!gzip = allow
> vserver!10!rule!5!handler = server_info
> vserver!10!rule!5!handler!type = just_about
> vserver!10!rule!5!match = directory
> vserver!10!rule!5!match!directory = /about
> vserver!10!rule!4!document_root = /usr/lib/cgi-bin
> vserver!10!rule!4!handler = cgi
> vserver!10!rule!4!match = directory
> vserver!10!rule!4!match!directory = /cgi-bin
> vserver!10!rule!3!document_root = /usr/share/cherokee/themes
> vserver!10!rule!3!handler = file
> vserver!10!rule!3!match = directory
> vserver!10!rule!3!match!directory = /cherokee_themes
> vserver!10!rule!2!document_root = /usr/share/cherokee/icons
> vserver!10!rule!2!handler = file
> vserver!10!rule!2!match = directory
> vserver!10!rule!2!match!directory = /icons
> vserver!10!rule!1!handler = common
> vserver!10!rule!1!handler!iocache = 1
> vserver!10!rule!1!match = default
> vserver!30!directory_index = index.php,index.html
> vserver!30!document_root = /usr/share/mediawiki
> vserver!30!error_writer!filename = /var/log/cherokee/cherokee.error
> vserver!30!error_writer!type = file
> vserver!30!logger = combined
> vserver!30!logger!access!buffsize = 16384
> vserver!30!logger!access!filename = /var/log/cherokee/cherokee.access
> vserver!30!logger!access!type = file
> vserver!30!nick = rebertia.com
> vserver!30!rule!60!document_root = /usr/share/mediawiki
> vserver!30!rule!60!match = directory
> vserver!30!rule!60!match!directory = /w
> vserver!30!rule!60!match!final = 0
> vserver!30!rule!50!handler = redir
> vserver!30!rule!50!handler!rewrite!1!show = 1
> vserver!30!rule!50!handler!rewrite!1!substring = /w/index.php
> vserver!30!rule!50!match = fullpath
> vserver!30!rule!50!match!fullpath!1 = /wiki
> vserver!30!rule!50!match!fullpath!2 = /wiki/
> vserver!30!rule!40!handler = redir
> vserver!30!rule!40!handler!rewrite!1!show = 0
> vserver!30!rule!40!handler!rewrite!1!substring = /w/index.php?/$1
> vserver!30!rule!40!match = request
> vserver!30!rule!40!match!request = /wiki/(.+)
> vserver!30!rule!30!encoder!gzip = 1
> vserver!30!rule!30!handler = fcgi
> vserver!30!rule!30!handler!balancer = round_robin
> vserver!30!rule!30!handler!balancer!source!1 = 1
> vserver!30!rule!30!handler!error_handler = 1
> vserver!30!rule!30!match = extensions
> vserver!30!rule!30!match!check_local_file = 1
> vserver!30!rule!30!match!extensions = php
> vserver!30!rule!30!match!final = 0
> vserver!30!rule!30!timeout = 30
> vserver!30!rule!20!encoder!deflate = 0
> vserver!30!rule!20!encoder!gzip = 0
> vserver!30!rule!20!expiration = time
> vserver!30!rule!20!expiration!time = 1h
> vserver!30!rule!20!handler = file
> vserver!30!rule!20!handler!iocache = 1
> vserver!30!rule!20!match = fullpath
> vserver!30!rule!20!match!fullpath!1 = /favicon.ico
> vserver!30!rule!20!match!fullpath!2 = /robots.txt
> vserver!30!rule!20!match!fullpath!3 = /crossdomain.xml
> vserver!30!rule!10!handler = file
> vserver!30!rule!10!match = default
>
> Cheers and Thanks,
> Chris
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to