pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

使用 php/windows 安裝 ImageMagick 擴展

Installing ImageMagick extension with php/windows(使用 php/windows 安裝 ImageMagick 擴展)
本文介紹了使用 php/windows 安裝 ImageMagick 擴展的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在帶有 IIS 的 Windows Server 2003 上運行 PHP 5.2.5 版.

Running PHP Version 5.2.5 on Windows Server 2003 with IIS.

擁有幾乎完全相同的服務器,我們可以在其中毫無問題地安裝 ImageMagick.它運行的是完全相同版本的 php.使用以下步驟進行安裝,但它似乎無法在此服務器上運行.ImageMagick 本身已安裝,但 php 不會加載擴展.

Have virtually an identical server where we were able to install ImageMagick with no issues. It's running exactly the same version of php. Used the following steps to install, but it just won't seem to work on this server. ImageMagick itself is installed but php won't load the extension.

我們花了幾個小時試圖安裝擴展程序.它只是不會出現在 phpinfo() 中.

We've spent hours trying to get the extension installed. It just won't show up in phpinfo().

安裝步驟

在 Windows XP (PHP 5.2.x) 上安裝 IMagick

To install IMagick on Windows XP (PHP 5.2.x)

  1. 下載并安裝ImageMagick-6.5.8-7 Q16-windows-dll.exehttp://www.imagemagick.org/download/binaries/ImageMagick-6.5.8-7-Q16-windows-dll.exe

下載 php_imagick_dyn-Q16.dll 從http://valokuva.org/outside-blog-content/imagick-windows-builds/080709/

將DLL復制到[PHP]/extension目錄并重命名為php_imagick.dll

copy DLL to [PHP]/extension dir and rename it to php_imagick.dll

您必須編輯您的 php.ini 文件并添加新的擴展名:

You have to edit your php.ini file and add the new extension:

extension=php_imagick.dll

  • 保存php.ini并重啟Apache服務器.(如有必要,重新啟動 Windows)

  • Save php.ini and restart Apache server. (If necessary, restart Windows)

    phpinfo() 應該顯示 imagick 已啟用.

    phpinfo() should show imagick enabled.

    推薦答案

    發現 非常 用戶 Buttercup 給出的答案很有用,如果他能更清楚的話.

    Found very useful tha answer given by user Buttercup, also if he could be more clear.

    我的場景是 Windows 2012 R2 x64、PHP 5.5.19 x64,需要安裝支持 PHP 的 ImageImagick.根據以下幾點,我能夠安裝 ImageImagick 6.9.0 x64 和 PHP_Imagick.dll 3.1.2(目前都是最新的穩定版本).

    My scenario was a Windows 2012 R2 x64, PHP 5.5.19 x64 and need to install ImageImagick with PHP support. Following points here below I was able to install ImageImagick 6.9.0 x64 and PHP_Imagick.dll 3.1.2 (both are currently the latest stable versions).

    請注意,我在 NTS 和 x64 模式下下載了所有組件(PHP、ImageImagick 和 PHP_Imagick):不是在 TS 和/或 x86 模式下.我不知道這是否適用于您自己的情況.

    Please note I downloaded all components (PHP, ImageImagick and PHP_Imagick) in NTS and x64 modes: not in TS and/or x86 modes. I don't know if this apply in your own case.

    我在閱讀 Buttercup(對于用戶 RhoVisions)時不清楚的一點是他的評論:用 PHP 版本覆蓋從 ImageMagick 6.8.8 Windows 版本中找到的 DLL".

    The point it wasn't clear for me reading the Buttercup (as for user RhoVisions) was his comment: "Overwrite the DLLs found from ImageMagick 6.8.8 Windows version with the PHP version".

    所以,這就是我所做的(基于 Buttercup 解決方案,我不得不一次又一次地感謝你!):

    So, this is what I've done (based on Buttercup solution, who I have to say again and again thank you very much!):

    1. 從鏈接下載最新的 ImageMagick EXE 安裝程序在我的例子中,我下載了第一個可用的 HTTP 下載文件,標記為Win64 dynamic at 16 bits-per-pixel".(文件名:ImageMagick-6.9.0-0-Q16-x64-dll.exe)

    1. download latest ImageMagick EXE installer from Link In my case I downloaded the first file available as HTTP download labeled "Win64 dynamic at 16 bits-per-pixel" (filename: ImageMagick-6.9.0-0-Q16-x64-dll.exe)

    運行剛剛下載的安裝程序.我將它安裝在一個簡單的路徑中,比如 C:ImageMagick6.9.0(但我認為將它從 Program Files 中移開并不重要).此外,我在安裝過程中沒有更改任何其他參數的默認值.

    Run the installer just downloaded. I installed it in a simple path like C:ImageMagick6.9.0 (but I don't think it is so important to move it away from Program Files). Also, I didn't change any other parameter from their defaults during installing.

    從 PECL 網站下載最新的 PHP_Imagick DLL 文件:http://pecl.php.網絡/包/imagick我選擇了一個穩定的(不是 Beta 或 RC)版本,在我的例子中是 3.1.2,點擊Windows 標志"+DLL"標簽.在我的情況下,它鏈接到 ht tp://pecl.php.net/package/imagick/3.1.2/windows .在它將打開的頁面上,您會找到一個表格:您必須根據以下條件選擇文件:a) 您擁有的 PHP 版本數(在我的情況下,有適用于 PHP 5.3、5.4、5.5、5.6 的可用 DLL)b) 您擁有的 PHP 的 x64 或 x86 版本c) 您擁有的 NTS 或 TS 版本的 PHP我的情況是 PHP 5.5.x、x64、NTS:所以我下載了一個標記為5.5 非線程安全 (NTS) x64"的文件.(文件名:php_imagick-3.1.2-5.5-nts-vc11-x64.zip)

    download latest PHP_Imagick DLL file from PECL website at: http://pecl.php.net/package/imagick I choosed a stable (not Beta or RC) version, in my case 3.1.2, clicking on the "Windows logo"+"DLL" label. In my case it was linked to ht tp://pecl.php.net/package/imagick/3.1.2/windows . On the page it will open you'll find a table: you have to choose your file depending on: a) number of version of PHP you have (in my case there were available DLLs for PHP 5.3, 5.4, 5.5, 5.6) b) x64 or x86 version of PHP you have c) NTS or TS version of PHP you have My case is was PHP 5.5.x, x64, NTS: so I downloaded the one labeled "5.5 Non Thread Safe (NTS) x64" (file name: php_imagick-3.1.2-5.5-nts-vc11-x64.zip)

    解壓 php_imagick ZIP 并:a) 將 php_imagick.dll 文件復制到 PHP 安裝的 EXT 文件夾中b) 從您剛剛解壓到您在第 2 點選擇的文件夾中的文件夾中復制并替換所有 CORE_RL_.dll.顯然,請備份替換的文件.就我而言,我將 8 個 CORE_RL_.dll 文件從解壓縮的文件夾復制到 C:ImageMagick6.9.0.我離開了 C:ImageMagick6.9.0 其他 CORE_RL_*.dll 沒有被覆蓋.

    Unzip the php_imagick ZIP and: a) copy php_imagick.dll file into the EXT folder of your PHP installation b) copy and replace ALL the CORE_RL_.dll from the folder you just unzipped into the folder you choosed at point #2. Obviously, please backup replaced files. In my case I copied 8 CORE_RL_.dll files from unzipped folder to C:ImageMagick6.9.0. I leaved into C:ImageMagick6.9.0 the others CORE_RL_*.dll not overwritten.

    編輯并保存您的 PHP.ini 文件以添加以下簡單行:擴展=php_imagick.dll

    Edit and save your PHP.ini file in order to add this simple row: extension=php_imagick.dll

    重新啟動您的服務器(不幸的是,我沒有找到任何好的重新啟動替代方法:來自管理命令提示符的 IISRESET 也不起作用).

    Reboot your server (unfortunally I didn't find any good alternative of a reboot: also a IISRESET from admin command-prompt didn't work).

    重啟完成后,通過瀏覽器遠程訪問您的 phpinfo.php 文件以驗證 Imagick 模塊是否正常.就我而言,它是.

    When reboot finished, visit remotely by browser your phpinfo.php file in order to verify that Imagick module was ok. In my case it was.

    希望這會有所幫助,就在那里!

    Hope this could help, out there!

    這篇關于使用 php/windows 安裝 ImageMagick 擴展的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

    【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!
  • 相關文檔推薦

    Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
    How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
    Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
    PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
    json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
    MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
    主站蜘蛛池模板: 桥架-槽式电缆桥架-镀锌桥架-托盘式桥架 - 上海亮族电缆桥架制造有限公司 | 注塑模具_塑料模具_塑胶模具_范仕达【官网】_东莞模具设计与制造加工厂家 | 大流量卧式砂磨机_强力分散机_双行星双动力混合机_同心双轴搅拌机-莱州市龙跃化工机械有限公司 | 展厅设计公司,展厅公司,展厅设计,展厅施工,展厅装修,企业展厅,展馆设计公司-深圳广州展厅设计公司 | 英国雷迪地下管线探测仪-雷迪RD8100管线仪-多功能数字听漏仪-北京迪瑞进创科技有限公司 | 东莞韩创-专业绝缘骨架|马达塑胶零件|塑胶电机配件|塑封电机骨架厂家 | 杭州荣奥家具有限公司-浙江办公家具,杭州办公家具厂 | 耐火浇注料-喷涂料-浇注料生产厂家_郑州市元领耐火材料有限公司 耐力板-PC阳光板-PC板-PC耐力板 - 嘉兴赢创实业有限公司 | 企业彩铃制作_移动、联通、电信集团彩铃上传开通_彩铃定制_商务彩铃管理平台-集团彩铃网 | 新中天检测有限公司青岛分公司-山东|菏泽|济南|潍坊|泰安防雷检测验收 | 辐射仪|辐射检测仪|辐射巡测仪|个人剂量报警仪|表面污染检测仪|辐射报警仪|辐射防护网 | 骨龄仪_骨龄检测仪_儿童骨龄测试仪_品牌生产厂家【品源医疗】 | 京马网,京马建站,网站定制,营销型网站建设,东莞建站,东莞网站建设-首页-京马网 | 广州小程序开发_APP开发公司_分销商城系统定制_小跑科技 | 合肥弱电工程_安徽安防工程_智能化工程公司-合肥雷润 | 尼龙PA610树脂,尼龙PA612树脂,尼龙PA1010树脂,透明尼龙-谷骐科技【官网】 | 小型单室真空包装机,食品单室真空包装机-百科 | 517瓜水果特产网|一个专注特产好物的网站 | PTFE接头|聚四氟乙烯螺丝|阀门|薄膜|消解罐|聚四氟乙烯球-嘉兴市方圆氟塑制品有限公司 | 金属软管_不锈钢金属软管_巩义市润达管道设备制造有限公司 | 清水-铝合金-建筑模板厂家-木模板价格-铝模板生产「五棵松」品牌 | 膜结构车棚|上海膜结构车棚|上海车棚厂家|上海膜结构公司 | 方源木业官网-四川木门-全国木门专业品牌| 【甲方装饰】合肥工装公司-合肥装修设计公司,专业从事安徽办公室、店面、售楼部、餐饮店、厂房装修设计服务 | 烟气换热器_GGH烟气换热器_空气预热器_高温气气换热器-青岛康景辉 | 圆窗水平仪|伊莉莎冈特elesa+ganter | 合同书格式和范文_合同书样本模板_电子版合同,找范文吧 | 线材成型机,线材折弯机,线材成型机厂家,贝朗自动化设备有限公司1 | 德国GMN轴承,GMN角接触球轴承,GMN单向轴承,GMN油封,GMN非接触式密封 | 天津暖气片厂家_钢制散热器_天津铜铝复合暖气片_维尼罗散热器 | 深圳市八百通智能技术有限公司官方网站 | PCB接线端子_栅板式端子_线路板连接器_端子排生产厂家-置恒电气 喷码机,激光喷码打码机,鸡蛋打码机,手持打码机,自动喷码机,一物一码防伪溯源-恒欣瑞达有限公司 假肢-假肢价格-假肢厂家-河南假肢-郑州市力康假肢矫形器有限公司 | 四川成都干燥设备_回转筒干燥机_脉冲除尘器_输送设备_热风炉_成都川工星科机电设备有限公司 | 活性炭-蜂窝-椰壳-柱状-粉状活性炭-河南唐达净水材料有限公司 | 无纺布包装机|径向缠绕包装机|缠绕膜打包机-上海晏陵智能设备有限公司 | 咖啡加盟-咖啡店加盟-咖啡西餐厅加盟-塞纳左岸咖啡西餐厅官网 | 电加热导热油炉-空气加热器-导热油加热器-翅片电加热管-科安达机械 | 实战IT培训机构_IT培训班选大学生IT技术培训中心_中公优就业 | 耐酸碱泵-自吸耐酸碱泵型号「品牌厂家」立式耐酸碱泵价格-昆山国宝过滤机有限公司首页 | 瓶盖扭矩测试仪-瓶盖扭力仪-全自动扭矩仪-济南三泉中石单品站 | Win10系统下载_32位/64位系统/专业版/纯净版下载|