Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error uploading files
#6
I have chosen a directory inside the httpdocs, but with denied access from .htaccess. I still have the problem with uploading files with this error:

Code:
[Mon Jan 25 11:33:35 2010] [error] [client MYIP] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN/httpdocs:/var/www/vhosts/MYDOMAIN/httpdocs/mydms/content:/tmp) in /var/www/vhosts/MYDOMAIN/httpdocs/mydms/inc/inc.FileUtils.php on line 60, referer: http://MYDOMAIN/mydms/out/out.AddDocument.php?folderid=3
[Mon Jan 25 11:33:35 2010] [error] [client MYIP] PHP Warning:  mkdir() [<a href='function.mkdir'>function.mkdir</a>]: open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN/httpdocs:/var/www/vhosts/MYDOMAIN/httpdocs/mydms/content:/tmp) in /var/www/vhosts/MYDOMAIN/httpdocs/mydms/inc/inc.FileUtils.php on line 61, referer: http://MYDOMAIN/mydms/out/out.AddDocument.php?folderid=3

What is the problem with /var ? Why does it try to work with that dir instead of the full path?

I have tried several $_contentDir combinations as jpa suggested by PM, with absolute and relative paths, but it should be like
var $_contentDir = "/var/www/vhosts/MYDOMAIN/httpdocs/mydms/content/";

I have configured open_basedir to allow access to that dir, and it has full writting access (777)...

PHP version is PHP 5.2.6 over CentOS 5 in a Plesk 9.2 shared hosting.

Any idea?
Reply


Messages In This Thread
error uploading files - by jpa - 12-31-2009, 06:53 PM
RE: error uploading files - by administrator - 12-31-2009, 10:48 PM
RE: error uploading files - by jpa - 01-04-2010, 06:23 PM
RE: error uploading files - by administrator - 01-22-2010, 12:10 AM
RE: error uploading files - by administrator - 01-26-2010, 04:54 AM
RE: error uploading files - by administrator - 01-27-2010, 07:50 AM
RE: error uploading files - by administrator - 01-28-2010, 05:09 AM
RE: error uploading files - by akae - 01-28-2010, 05:41 AM
RE: error uploading files - by administrator - 01-28-2010, 04:56 PM
RE: error uploading files - by akae - 01-29-2010, 05:44 AM
RE: error uploading files - by administrator - 01-29-2010, 07:14 AM

Forum Jump:


Users browsing this thread: