我的雇主有一个要求上传非常大的高分辨率图像。通常情况下,上传这样的图片是行不通的。
有人告诉我,使用ImageMagick将有助于将图像处理负担转移到Linux服务器而不是php (因此,我不必将php max_memory设置到某个可笑的级别)。
无论如何,我遵循了本教程:http://thewichitacomputerguy.com/blog/how-enable-install-imagemagick-drupal,我得到了以下响应:
* warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/convert) is not within the allowed path(s): (/var/www/vhosts/mysite.co.uk/httpdocs:/tmp) in /var/www/vhosts/mysite.co.uk/httpdocs/includes/image.imagemagick.inc on line 55.
* No file /usr/bin/convert could be found. PHP's open_basedir security restriction is set to /var/www/vhosts/mysite.co.uk/httpdocs:/tmp, which may be interfering with the attempts to locate ImageMagick.我已经确定了/usr/bin/convert文件确实存在于服务器上,但是我对如何继续操作感到困惑。
你们能帮个瘾君子吗?
发布于 2011-04-15 15:15:05
如果您正在共享主机,您将需要与您的提供商交谈。如果您管理您的服务器,您将需要编辑您的php.ini以允许open_basedir访问您的imagemagick目录。
https://stackoverflow.com/questions/5678773
复制相似问题