I am working on developing a website for a non-profit who has run thier hosting on ISP-provided hosting for the past several years. I am trying to install and run Drupal as the basis for the new website. It installs and runs generally fine, though I often get errors similar to the following:
Imagecache spits out this when I try to change or alter settings:
The selected file D:\webs\neatmi\drupal\sites\all\modules\imagecache\sample.png could not be copied.
warning: is_file() [function.is-file]: open_basedir restriction in effect. File(sites/default/files/imagecache/banner_full/D:\webs\neatmi\drupal\sites\all\modules\imagecache\sample.png) is not within the allowed path(s): (d:\webs\) in D:\webs\neatmi\drupal\includes\file.inc on line 470.
warning: is_file() [function.is-file]: open_basedir restriction in effect. File(sites/default/files/imagecache/banner_small/D:\webs\neatmi\drupal\sites\all\modules\imagecache\sample.png) is not within the allowed path(s): (d:\webs\) in D:\webs\neatmi\drupal\includes\file.inc on line 470.
Imageapi spits out:
warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/bin/convert) is not within the allowed path(s): (d:\webs\) in D:\webs\neatmi\drupal\sites\all\modules\imageapi\imageapi_imagemagick.module on line 162.
It is critical that the website have the ability to allow people to upload pictures, something that is clearly being denied at this point. I talked with support and they stated that Php is not enabled on this account (basic). As someone who has built several websites, i am offended that any level of service excludes php access.
Either way, they claim that php is not enabled, which makes me wonder why I am not running into more errors.
Is this assumption correct? would these codes be returned if PHP is not enabled? If this is the case, I will have to advise the group on switching hosts. I am fairly familiar with drupal, but am admitedly limited in my overall knowledge of php.
Will also be posting this on the Imagecache issues section.
Comments
Comment #1
anderquo CreditAttribution: anderquo commentedThis seems to be similar to what happened to me. I found solution after googling a while - check temporary directory settings in Administration/Web settings/File System, try changing it to sites/default/files/tmp or something acceptable by imagecache. Of course create it and provide write permissions to the folder.