Right, ran the script below
<?php
if(function_exists('posix_geteuid')){
// use posix to get current uid and gid
$uid = posix_geteuid();
$usr = posix_getpwuid($uid);
$user = $usr['name'];
$gid = posix_getegid();
$grp = posix_getgrgid($gid);
$group = $grp['name'];
}else{
// try to create a file and read it's ids
$tmp = tempnam ('/tmp', 'check');
$uid = fileowner($tmp);
$gid = filegroup($tmp);
// try to run ls on it
$out = `ls -l $tmp`;
$lst = explode(' ',$out);
$user = $lst[2];
$group = $lst[3];
unlink($tmp);
}
echo "Your PHP process seems to run with the UID $uid ($user) and the GID $gid ($group)\n"; ?>
and got this output
Your PHP process seems to run with the UID 2001 (vhostswww) and the GID 2001 (vhosts)
I am then told
Which permissions to set?
So, how should you set the permissions of the directories mentioned above?
Hm, did they really mention any directories above? Did I miss something or am I just plain stupid (a possibility never to be discounted...). I certainly don't know php and this might be my downfall - do I have to learn it to run dokuwiki?
My problem is that dokuwiki creates directories which do not exist - that is they do not exist when I look at my directory tree before AND after. How then should I assign permissions to something that is abstract?
Will now attempt the safehack site and see whether anything comes out of that. Thanks for all your help so far!
Cheers