[pmwiki-users] pmwiki broken under Apache 2.2/PHP 5.1.2

Stirling Westrup sti at pooq.com
Sat Mar 25 17:38:21 CST 2006


H. Fox wrote:
> On 3/24/06, Stirling Westrup <sti at pooq.com> wrote:
>> Yesterday I upgraded to Apache 2.2 and PHP 5.1.2 and PmWiki broke. I'm
>> running pmwiki-2.1.0.
>>

> Try adding a test wiki according to the instructions here:
> 
> http://www.pmwiki.org/wiki/Cookbook/FarmSetupByExample#wiki_one
> 
> and see if you can surf its pages. Probably so.  If so, convert the
> new test wiki to CleanUrls using the instructions here:
> 
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls#samedir
> 
> If you get Clean URLs to work on that wiki, you will probably see
> what's wrong with the other one.  If not, you may need to look at the
> server configuration.

Well, I did as suggested and installed a new test wiki at 
http://www.pooq.com/wiki. It has the config listed below, (with is as 
suggested, with the addition of an $EnableDiag=1):

   <?php if (!defined('PmWiki')) exit();
   ## Title of this wiki
   $WikiTitle = 'Wiki One';

   ## Produce a unique cookie prefix for this site.
   $CookiePrefix = substr($tmp = md5(__FILE__), 0, 5).'_';

   ## Set an administrative password.  (String from ?action=crypt)
   $DefaultPasswords['admin']='yourcryptedpassword';

   ## Enable graphical user interface buttons on edit pages.
   $EnableGUIButtons = 1;

   ## Enable RSS and Atom web feeds.
   if ($action == 'rss' || $action == 'atom') {
     include_once("$FarmD/scripts/feeds.php"); }

   $FarmPubDirUrl = "http://www.pooq.com/wiki/farmpub";
   $EnablePathInfo = 1;
   $ScriptUrl = "http://www.pooq.com/wiki";

   $EnableDiag = 1;


I could NOT get clean URLs to work at all. If I use an URL like

   http://www.pooq.com/wiki?n=Bonus.AnotherPage

I can visit that page. If, instead, I try this:

   http://www.pooq.com/wiki/Bonus.AnotherPage

I get the main page. Its as if the PATH_INFO is not getting handed to 
PmWiki, but if I use action=diag, I can see that it is.

The relevant lines from the apache config are:

     Alias /wiki/farmpub       /var/www/pooq/pooq/wiki/farmpub
     Alias /wiki/pub           /var/www/pooq/pooq/wiki/pub
     Alias /wiki               /var/www/pooq/pooq/wiki/index.php
     <Directory /var/www/pooq/pooq/wiki>
         Options +ExecCGI +FollowSymLinks
     </Directory>

As I said before, this was all working fine under Apache 2.0.53 and PHP 
4.<something>. Does anyone have any suggestions as to what else I might try?





More information about the pmwiki-users mailing list