[pmwiki-users] Imsets

H. Fox haganfox at users.sourceforge.net
Tue Mar 28 13:15:52 CST 2006

On 3/28/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Mar 28, 2006 at 01:04:03PM +0100, Firefly wrote:
> >    Ok it was working but all of a sudden ive got this error
> >
> >    Warning: filesize(): SAFE MODE Restriction in effect. The script whose uid
> >    is 10066 is not allowed to access
> >    uploads/ImageSets/Durn1/gir.pig.flyingmsn.jpg owned by uid 2525 in
> >    /usr/local/psa/home/vhosts/fromunda.34sp.com/httpdocs/cookbook/imgset.php
> >    on line 239
> >
> >    and im not sure why becase ive not done anything to it. Whats the uid? And
> >    why does it want to do that like that?
> SAFE_MODE restrictions are a real pain to work with.  In this case
> PHP is complaining that owner of the upload file doesn't match the
> owner of the script, and is therefore blocking access to the file.
> Since the webserver runs as a different user than the person who
> owns the account, there's not much that PmWiki can do about these
> situations.  You may need to see if you can get SAFE_MODE disabled
> somehow.

Or try site-wide uploads by setting

    $UploadPrefixFmt = '';

and making sure the uploads/ directory is owned by your UID (not the
web server daemon's) and that is has 777 or 2777 permissions.


More information about the pmwiki-users mailing list