I have my tmp path set to "sites/default/files/tmp"

I'm getting a weird error when I try set the path of the "File Downloads".

* warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/domain.com/downloads) is not within the allowed path(s): (/var/www/vhosts/scalenllc.com/httpdocs:/tmp) in /var/www/vhosts/domain.com/httpdocs/welcome/modules/ubercart/uc_file/uc_file.module on line 1021.
* /var/www/vhosts/domain.com/downloads is not a valid file or directory

Comments

JacobSteelsmith’s picture

Hello. The open_basedir is part of PHP safe mode. What exactly are you trying to set your files directory to?

mossill’s picture

Well, I have safe mode off

This is my Drupal directory
/var/www/vhosts/domain.com/httpdocs/welcome/

This is where I want the file downloads to be stored:
/var/www/vhosts/domain.com/downloads/

I've been successful on doing this for other sites, but this one is giving me this open base error.

tr’s picture

Category: bug » support

That's not a bug. You have open_basedir set, which restricts the directories that you can access in PHP. You need to change your server configuration. Search for "open_basedir" on ubercart.org for more details.

tr’s picture

Status: Active » Closed (fixed)