<div>On Mon, Dec 22, 2008 at 11:53 PM, DaveG <span dir="ltr">&lt;<a href="mailto:pmwiki@solidgone.com">pmwiki@solidgone.com</a>&gt;</span> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Setting things to 755 is safer than 777. The question is, will that work<br>
on your site, with your host, with your version of PHP, with the setup<br>
of the webserver you have? I don&#39;t know. Easiest way to find out is<br>
after creating wiki.d and uploads, to set them to 755; if you can create<br>
or edit a wiki page through the normal way, then your done.<br></blockquote><div><br></div><div class="gmail_quote"><br></div>As far as I understand, setting to 755 won&#39;t usually work (and doesn&#39;t on my system), unless the server has the same user id as the owner of the pmwiki directory: with 755 only the user (owner) has write permission. Pm&#39;s suggestion of using the setgid bit is a way round that. &nbsp;<br>
<br><div>So it seems the correct steps are as follows:</div><div><br></div><div>1. &nbsp;In the pmwiki directory, type</div><div>chmod 2777 .</div><div>(with the dot) - this makes the pmwiki completely open for the moment, but it has the added effect of using the setgid bit (that&#39;s what the 2 refers to in 2777)</div>
<div><br></div><div>2. Execute pmwiki.php through your browser. &nbsp;This will create the wiki.d directory.&nbsp;</div><div>(Suggestion: if you already have a wiki.d directory, rename it say to xwiki.d. create the wiki.d directory as above and then move all the files across - there&#39;s prbably a better way - but I don&#39;t know what it would be - I think you need the server to be the new owner)</div>
<div><br></div><div>If you use uploads, then do an upload to create the new directory (perhaps this can be improved) (and use the same trick as before if you already have an uploads directory)</div><div><br></div><div>3. Still in the pmwiki directory, type</div>
<div>chmod 755 .</div><div>and that reverts the pmwiki directory to be as it was before you started.&nbsp;</div><div><br></div><div><br></div><div>The upshot is that the wiki.d (and uploads) directory is now owned by the server - and the ownership is recorded as &quot;apache&quot; or &quot;nobody&quot; (it&#39;s &quot;apache&quot; on mine) or perhaps something else, but this magic setgid (set group id) makes sure the server is in the same group as you (the user), so you can administer the files too.&nbsp;</div>
<div><br></div><div>Does that make sense? &nbsp;(And is it correct? - I&#39;m not a unix expert - just a long-time long-in-the-tooth user)</div><div><br></div><div>James</div><div>&nbsp;</div></div></div>