[pmwiki-users] Index.php include
Steven Benmosh
wordz2u at gmail.com
Tue Apr 8 09:54:08 CDT 2008
Thanks, that works great. I am not worried about the url, for all I care the
whole world can see I am using PmWiki. I am quite proud of this fact...
Z.
On Tue, Apr 8, 2008 at 6:37 AM, Patrick R. Michaud <pmichaud at pobox.com>
wrote:
> On Mon, Apr 07, 2008 at 10:03:10PM -0600, Steven Benmosh wrote:
> > I have a root directory, and in it a pmwiki directory that includes
> > pmwiki.php and index.php with the line <?php include('pmwiki.php');
> in it.
> > It works fine, and/but wiki pages have the url of
> > www.mysite.com/pmwiki/... In other words, I have a fully functional
> pmwiki
> > installation running fine as it is.
> >
> > So I thought I would get smart, and in the root directory's include
> an
> > index.php page with the following:
> > <?php include('/home/words2u/pmwiki/pmwiki.php');
> > or
> > <?php include('pmwiki/pmwiki.php');
> >
> > Now I get the following error:
> >
> > Warning: mkdir() [function.mkdir]: Permission denied in
> > /home/words2u/pmwiki/pmwiki.php on line 435
>
> This is because the system is attempting to run PmWiki from the
> root directory, and the needed files aren't present. Try the
> following in your root's index.php:
>
> <?php chdir('pmwiki'); include('pmwiki.php');
>
> If that doesn't work, then take a look at
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls for some other
> approaches to removing the "pmwiki" from the url.
>
> Pm
>
>
>
--
Check out my web site - www.words2u.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080408/a531e1a0/attachment.html
More information about the pmwiki-users
mailing list