01-25-2010, 07:23 PM
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:
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?
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?