久久久久久久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)
    主站蜘蛛池模板: 日一日操一操 | 午夜丁香视频在线观看 | www亚洲免费国内精品 | 91在线免费观看网站 | 国产精品一区久久久 | 久草热线| 久久国产欧美日韩精品 | 99久久婷婷国产综合精品电影 | 日韩色图视频 | 99精品国产一区二区三区 | 免费成人在线网站 | 欧美久久久久久 | 国产精品免费看 | 欧美日韩亚洲国产 | 欧美11一13sex性hd | 久久国产精品首页 | 久综合| 亚洲成人a v | 精品国产不卡一区二区三区 | 天天干夜夜 | 91麻豆精品国产91久久久更新资源速度超快 | 日韩视频中文字幕 | 国产精品一区二区在线 | 久久激情网 | 亚洲一区二区三区在线视频 | 国产精品成人在线观看 | 亚洲欧美视频一区二区 | 日日摸日日爽 | 久久伊人亚洲 | 日韩久久久久久 | 天堂亚洲 | 古装人性做爰av网站 | 成人免费一区二区 | 免费看黄色小视频 | 欧美成人精品一区二区三区 | 欧美精品v国产精品v日韩精品 | 热99在线| 欧美一级大黄 | 美女爽到呻吟久久久久 | 五月婷婷在线播放 | 国产精品1区2区 |