<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I like the idea of a dedicated folder. But I'm not sure I have it!<br>
    My root is /public_html/<br>
    In that folder, I have<br>
    <blockquote>index.htm (which points to the host's default so I
      assume I could delete that)<br>
      index.php<br>
    </blockquote>
    The only sub-folder is /public_html/pmwiki, where I have:<br>
    <blockquote>/public_html/pmwiki/cookbook, docs, local, etc.<br>
    </blockquote>
    So do I have a dedicated folder?<br>
    <br>
    Thanks,<br>
    Wade<br>
    <br>
    <br>
    On 12/28/2011 3:05 PM, ABClf wrote:
    <blockquote
cite="mid:CACE3LEt8zu-vSAjqOTLw2bubVgNZuE0beGH5rwTsgof9FHj=6g@mail.gmail.com"
      type="cite">
      <pre wrap="">I'm not expert ; I strongly prefer to have pmwiki running in a
dedicated folder ;
because you might need other applications (forum, blog...) and won't
like to install them in pmwiki's space
because you are sure what is in the folder is belonging to pmwiki,
less risk to mix foreign files.
because you might want to create a separated instance of pmwiki in a
dev folder for testing/learning purpose.

If pmwiki is the main motor for your site, if you can rewrite url,
just use clean url to get a short & nice urls wich dont show the
pmwiki folder.
Mine is in a folder called /docs ; my urls are
<a class="moz-txt-link-freetext" href="http://www.site.net/Group/Name">http://www.site.net/Group/Name</a> ; images are in
<a class="moz-txt-link-freetext" href="http://www.site.net/docs/uploads/Group/Name">http://www.site.net/docs/uploads/Group/Name</a>

Gilles.

2011/12/28 Wade Lee Hudson <a class="moz-txt-link-rfc2396E" href="mailto:wade@wadehudson.net"><wade@wadehudson.net></a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Yes, I know about clean urls. Thanks for making sure.
I have no plan concerning whether to run pmwiki from root folder  or from
/pmwiki.
What difference does it make? Which do you recommend?


On 12/28/2011 1:14 PM, Edwin Marte wrote:



On Wed, Dec 28, 2011 at 5:08 PM, Edwin Marte <a class="moz-txt-link-rfc2396E" href="mailto:edwin.marte@leidba.com"><edwin.marte@leidba.com></a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">


On Wed, Dec 28, 2011 at 4:48 PM, Wade Lee Hudson <a class="moz-txt-link-rfc2396E" href="mailto:wade@wadehudson.net"><wade@wadehudson.net></a>
wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">
Concerning <a class="moz-txt-link-freetext" href="http://obtcc.org/pmwiki/pmwiki.php">http://obtcc.org/pmwiki/pmwiki.php</a>, as instructed, I created
an index.php file that contains this single line
<?php include_once('pmwiki.php');
and uploaded it to /public_html
</pre>
          </blockquote>
          <pre wrap="">

check for cleanurls for more info
 <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_php_note">http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_php_note</a>

the only thing needed in index.php  file is the line   <?php
include_once('pmwiki.php');  as you mentioned before.

place the index.php in /pmwiki not in /

Although, are you planning to run pmwiki from root folder  or from
/pmwiki?



</pre>
          <blockquote type="cite">
            <pre wrap="">

But in response to the question, "How do I make pmwiki.php the default
page for a website?" the documentation says:

Create an index.php file that runs PmWiki from a subdirectory (pmwiki/
for example) and place it in the site's web document root (the main
directory for the website).

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

Note: You will also need to explicitly set the $PubDirUrl variable (e.g.
to <a class="moz-txt-link-rfc2396E" href="http://example.com/pmwiki/pub">"http://example.com/pmwiki/pub"</a>) in local/config.php .

Does that mean that I should add a line that reads
<?php chdir('pmwiki'); include_once('pmwiki.php');
to that index.php file on /public_html/


Do I need to make it the default page? Isn't it already the default page?

Thanks,
Wade

_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>

</pre>
          </blockquote>
          <pre wrap="">
</pre>
        </blockquote>
        <pre wrap="">
just adding to previous question: if  you are planning to have pmwiki
installation on /pmwiki and the main page will be on server root / then
probably what you need is to use .htacces file
like <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls#docroot">http://www.pmwiki.org/wiki/Cookbook/CleanUrls#docroot</a>  , you can ignore
cleanurl part if you are not interested on that, of course it is more
elegant and it would be my choice.

hope it helps,

Edwin


_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>

</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
  </body>
</html>