any ideas about this one?...

any ideas about this one?...

Posted by: skunkworx
Posted on: 2005-03-06 22:23:00

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/skunkworx/skunkworxrc.com/catalog/images/Trex450Picture.jpg) is not within the allowed path(s): (/dh/web/phpmyadmin:/tmp:/dh/solidclient:/usr/local/lib/php:/home/skunkworx:/home/.camden/skunkworx) in /home/.camden/skunkworx/skunkworxrc.com/catalog/admin/includes/classes/upload.php on line 112

the chmod is 777, says it is unwritable when i change to 755.



Re: any ideas about this one?...

Posted by: ardco
Posted on: 2005-03-07 03:12:00

> open_basedir restriction in effect.

Assuming you've seen this stuff:
https://panel.dreamhost.com/kbase/index.cgi?area=2526

1: OPEN_BASEDIR RESTRICTIONS

open_basedir restrictions prevent any of PHP's file opening commands from working on any files outside of /home/youruser. Files BELOW that directory WILL WORK:

/home/youruser/phpstuff/some/more/dirs/file.info IS OK! PHP CAN OPEN IT!

If you need to open files in another user's home directory (assuming both are under you account, of course!) contact TS and they will happily make an exception for you.

NOTE: There have been some strange bugs that appeared with respect to open_basedir. Sometimes files that ARE in your home directory trigger an open_basedir error when they really shouln't. Notify support when this happens.

> allowed path(s): (/dh/web/phpmyadmin:/tmp:/dh/solidclient:/usr/local/lib/php:/home/skunkworx:/home/.camden/skunkworx) in /home/.camden/skunkworx/skunkworxrc.com/catalog/admin/includes/classes/upload.php on line 112

Clearly some of those paths are outside your "/home/youruser" so there's a seeting to adjust to point elsewhere, or as it says, contact support for an exception...

Good luck,

BobS

Tags: upload phpphpmyadminchmodtmpuploadedusrlibjpgpath112local