goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

Error and open_basedir #62

Open Lefthandmedia opened 6 years ago

Lefthandmedia commented 6 years ago

Hi i have a hardened MODX install (2.6.0-pl) so the core and download folder are outside the webroot. It seems to work but i'm seeing a lot of errors in the log file. [2017-12-12 22:50:30] (ERROR @ /var/www/vhosts/xxx.com/core/components/filedownloadr/model/filedownloadr/filedownloadr.class.php : 2131) PHP warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/xxx.com/:/tmp/) Is there a way to fix this? RDG

goldsky commented 6 years ago

how come you store your files in /tmp/ folder? it's OS's restriction

Lefthandmedia commented 6 years ago

I don't know i'm not doing that on purpose. I'm just seeing this a lot in te log file. I don't target the tmp folder knowingly