[pmwiki-users] index.php

tamouse mailing lists tamouse.lists at gmail.com
Sat Mar 23 16:40:35 CDT 2013

On Sat, Mar 23, 2013 at 1:46 PM, Alan Taylor <engineeral at gmail.com> wrote:
> I am new to Pmwiki and am setting it up on my own server.  I want to
> have pmwiki.php be the default page for my website
> (engineeral.no-ip.org).
> The instructions near the bottom of the documentation page
> at:http://www.pmwiki.org/wiki/PmWiki/Installation did not quite work.
> At that location it gives instructions to make my index.php file
> read:<?php chdir('pmwiki'); include_once('pmwiki.php');
> and to set the variable  $PubDirUrl variable (e.g. to
> "http://example.com/pmwiki/pub") in local/config.php . (which for me
> is 'http://engineeral.no-ip.org/www/wiki/pub/')
> I also set the $ScriptUrl as: $ScriptUrl =
> 'http://engineeral.no-ip.org/www/wiki/pmwiki.php'; in
> local/config.php.
> Using those instructions when I accessed my website I got a list of
> files and directories in my root (engineeral.no-ip.org/www).  If I
> clicked on "index.php" nothing happened.  If I clicked through to the
> wiki directory and clicked on pmwiki.php my home page came up, but
> with messed-up formatting.
> Investigating further I found similar instructions at:
> http://www.pmwiki.org/wiki/PmWiki/PathVariables#PubDirUrl
> This location suggested using the below for setting $ScriptUrl and $PubDirUrl
>   $ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].'/pmwiki/pmwiki.php';
> (I changed the 'pmwiki' to my own directory 'wiki')
>   $PubDirUrl = 'http://'.$_SERVER['HTTP_HOST'].'/pmwiki/pub';    (I
> changed the 'pmwiki' to my own directory 'wiki')
> This works somewhat better.  Now when I go to my default location
> 'engineeral.no-ip.org' I still get just a file and directory
> list.  If I click on index.php, my wiki home page loads, with correct
> formatting.  So I'm very close.
> So the question is how do I get index.php to be run automatically from
> my engineeral.no-ip.org/www directory?
> I am using Apache/2.2.22 (Win32) and PHP/5.2.17 and Windows XP SP3
> Thank you.
> Al Taylor.
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

It sounds as though your web hosting configuration does not recognize
index.php as a possible DocumentIndex.

More information about the pmwiki-users mailing list