[pmwiki-users] Index.PHP Question

Petko Yotov 5ko at free.fr
Thu Oct 25 17:28:32 CDT 2007


On Thursday 25 October 2007, Steve Rowe wrote:
> I made a wiki website a few years ago and it is still
> working great. I'm now attempting to put up my second
> wiki on the same server in a non-farm environment and
> I'm having an issue.
>
> I am not a server guy and I have little personal
> experience with IIS.  I have access to certain drives
> where I have set-up websites and thats it.
>
> The IT guy has the server directory set-up like this:
>
> E:\xyz\1stSite\pmwiki
> E:\2ndSite\pmwiki
>
> For the first site I created Index.php consisting of
> this:
>
> <?php chdir('pmwiki'); include_once('pmwiki.php');
>
> When I type www.1stSite.com in a browser, it works
> every time.
>
> So, I copied the Index.php in E:\2ndSite consisting of
> this:

Sorry I am not an IIS guy either (at all), but usually you should name the 
file:

   index.php

and not:

   Index.php    or    Index.PHP

(All lowercase letters.)

>
> <?php chdir('pmwiki'); include_once('pmwiki.php');

Is there a 'pmwiki' directory? And inside it, is there the 'pmwiki.php' file?

You could unzip the archive that you download from pmwiki.org, directly in the 
folder E:\2ndSite\. Then, the file pmwiki.php, and some directories (local, 
scripts, wikilib.d) will be in the same folder E:\2ndSite\. And then, you 
have the file "E:\2ndSite\index.php" (only lowercase letters) that contains:

   <?php include_once('pmwiki.php');


Try the lowercase filename, it may solve it.

Good luck,
Petko

P.S. On some Windows FAT32 systems it might be impossible to rename a file to 
all lowercase letters, in that case first rename Index.php to temp.php, then 
temp.php to index.php.





More information about the pmwiki-users mailing list