久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 php/windows 安裝 ImageMagick 擴(kuò)展

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

問題描述

在帶有 IIS 的 Windows Server 2003 上運(yùn)行 PHP 5.2.5 版.

Running PHP Version 5.2.5 on Windows Server 2003 with IIS.

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

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.

我們花了幾個小時試圖安裝擴(kuò)展程序.它只是不會出現(xiàn)在 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復(fù)制到[PHP]/extension目錄并重命名為php_imagick.dll

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

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

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

extension=php_imagick.dll

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

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

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

    phpinfo() should show imagick enabled.

    推薦答案

    發(fā)現(xiàn) 非常 用戶 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.根據(jù)以下幾點,我能夠安裝 ImageImagick 6.9.0 x64 和 PHP_Imagick.dll 3.1.2(目前都是最新的穩(wěn)定版本).

    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 下載文件,標(biāo)記為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)

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

    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 網(wǎng)站下載最新的 PHP_Imagick DLL 文件:http://pecl.php.網(wǎng)絡(luò)/包/imagick我選擇了一個穩(wěn)定的(不是 Beta 或 RC)版本,在我的例子中是 3.1.2,點擊Windows 標(biāo)志"+DLL"標(biāo)簽.在我的情況下,它鏈接到 ht tp://pecl.php.net/package/imagick/3.1.2/windows .在它將打開的頁面上,您會找到一個表格:您必須根據(jù)以下條件選擇文件:a) 您擁有的 PHP 版本數(shù)(在我的情況下,有適用于 PHP 5.3、5.4、5.5、5.6 的可用 DLL)b) 您擁有的 PHP 的 x64 或 x86 版本c) 您擁有的 NTS 或 TS 版本的 PHP我的情況是 PHP 5.5.x、x64、NTS:所以我下載了一個標(biāo)記為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 文件復(fù)制到 PHP 安裝的 EXT 文件夾中b) 從您剛剛解壓到您在第 2 點選擇的文件夾中的文件夾中復(fù)制并替換所有 CORE_RL_.dll.顯然,請備份替換的文件.就我而言,我將 8 個 CORE_RL_.dll 文件從解壓縮的文件夾復(fù)制到 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 文件以添加以下簡單行:擴(kuò)展=php_imagick.dll

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

    重新啟動您的服務(wù)器(不幸的是,我沒有找到任何好的重新啟動替代方法:來自管理命令提示符的 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).

    重啟完成后,通過瀏覽器遠(yuǎn)程訪問您的 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!

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

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

    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 設(shè)置?)
    Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動填充選擇框)
    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 產(chǎn)生 JSON_ERROR_UTF8)
    MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
    主站蜘蛛池模板: 欧美视频1区 | 99久热| 精品国产第一区二区三区 | 91视频在线看 | 精久久 | 亚洲欧美日韩一区 | 孰女乱色一区二区三区 | 日韩亚洲欧美综合 | 日韩精品免费 | 成人亚洲一区 | 亚洲国产精品一区二区www | 日韩成人精品视频 | 久久久久网站 | 成人国产精品久久久 | 中文字幕在线视频一区二区三区 | 国产一区999 | 久久成人精品视频 | 国产精品久久久久久久久 | 亚洲第一成年免费网站 | 91美女在线观看 | 精品伊人久久 | 欧美国产日韩在线观看 | 亚洲精品99 | 美女一级黄 | 黄色综合 | 日韩在线国产精品 | 久久久一区二区三区 | 国产精品一区二 | 日本 欧美 国产 | 亚洲永久| 在线a视频 | 一级全黄视频 | 黄频视频 | 91精产国品一二三区 | 中文二区 | 国产伦精品一区二区三区照片91 | 视频在线观看一区 | 久久9久 | 成人久久久 | 亚洲国产精品99久久久久久久久 | 男女那个视频 |