2017-05-24 3 views
2

J'ai besoin d'installer l'extension Imagic sur mon serveur Apache - PHP 7.0. J'ai suivi très bon guide situé ici: https://herbmiller.me/2016/06/16/installing-imagick-php-7/. Sur la base de "php -i" out:Comment installer l'extension Imagick sous Windows PHP 7.0

PHP Version => 7.0.13 
Compiler => MSVC14 (Visual C++ 2015) 
Architecture => x86 
Thread Safety => enabled 
extension_dir => D:\Program Files (x86)\PHP7\ext => D:\Program Files (x86)\PHP7\ext 

Je fichier téléchargé

php_imagick-3.4.3rc4-7.0-ts-vc14-x86.zip 

de http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc4/. Je coppied tous les fichiers DLL à D: \ Program Files (x86) \ PHP7 \ ext et j'ajouté

extension=php_imagick.dll 

à mon php.ini. Quand je redémarré mon Apache, l'extension Imagic n'a pas été chargé et Observateur d'événements a montré 2 mêmes erreurs:

The description for Event ID 4 from source PHP-7.0.13 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. 

If the event originated on another computer, the display information had to be saved with the event. 

The following information was included with the event: 

php[11628] 
PHP Warning: PHP Startup: Unable to load dynamic library 'D:\Program Files (x86)\PHP7\ext\php_imagick.dll' - The specified module could not be found. 
("d:\Program Files (x86)\Apache24\bin\httpd.exe" -k runservice) 

S'il vous plaît, quelqu'un pourrait me dire, ce que je fais mal?

Répondre

0

Faites cette étape aussi du tutoriel:

https://herbmiller.me/2016/06/16/installing-imagick-php-7/

du fichier téléchargé était ImageMagick-6.9.3-7-vc14-x64.zip

http://windows.php.net/downloads/pecl/deps

Installer ImageMagick dans un répertoire de votre choix

Extrait t L'ensemble du répertoire bin du fichier zip ImageMagick vers un répertoire de votre choix. J'ai choisi C: \ ImageMagick-6.9.3-7

Ensuite, définissez les variables d'environnement et redémarrez.