mkdir safe mode error

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

mkdir safe mode error

Post by jensen » Mon Dec 12, 2005 8:55 pm

hi everyone,
how to handle with following error message?

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 2010 is not allowed to access /hp/aa/ab/na/www//templates/perun_red/img/ owned by uid 33 in /hp/aa/ab/na/www/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 225


is it something I can change or do I have to contact my hosting provider?


cheers,
jensen

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mkdir safe mode error

Post by garvinhicking » Tue Dec 13, 2005 10:43 am

Actually, using Spartacus with SafeMode is hard to achieve, if not impossible. For that, your provider needs to setup PHP so, that files created by PHP can also be accessed by the scripts you uploaded via FTP.

So either PHP needs to create files as the owner of your FTP username, or your FTP username needs to be able to change the owner of the PHP files to the ownername of the Webserver user.

I don't think that's really possible, so the only really way would be to disable safemode, and tell your provider to only apply open_basedir restrictions. Safemode will be removed in PHP6 and isn't really a good mean today...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply