doudan5136 2012-03-28 18:56
浏览 208
已采纳

Apache启动失败了php imagick扩展,但在运行phpinfo后加载

I am building a web page on a Windows PC in a localhost configuration. I have Apache 2.2 and PHP 5.2.2. I have installed Imagemagick and the php_imagick_dyn-Q16.dll to enable the php imagick module. When I start the PC and load the web page, it fails and I get the Windows message:

Apache HTTP Server has encountered a problem and needs to close. . . . Tell Microsoft . . .
Error signature
szAppName : httpd.exe     szAppVer : 2.2.6.0     
szModName : php_imagick_dyn-Q16.dll     szModVer : 0.0.0.0     offset : 000172e2
These files will be included in the error report to Microsoft
C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\WER48e2.dir00\httpd.exe.mdmp
C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\WER48e2.dir00\appcompat.txt

When I run phpinfo.php, it shows imagick enabled. Then when I load my web page again, everything works. I have done this several days in a row. I thought phpinfo was a report but it seems to be some kind of trigger to start the imagick module - or something. How do I get the imagick module to happen automatically at startup, like my MySQL module does?

In the php.ini section where it says:

If you wish to have a module loaded automatically, , . .

I have:

extension=php_imagick_dyn-Q16.dll

php.ini also has a Local Variable section with things like:

[PHP_MYSQL]

extension=php_mysql.dll

do I need something similar for imagick, if so, is it:

[PHP_IMAGICK]

extension=php_imagick_dyn-Q16.dll

what does this do?

Please be specific with advice and fixes. I'm a noobie, and know very little about Apache or php.

  • 写回答

1条回答

  • drb56625 2012-03-28 23:11
    关注

    I'm running php 5.3.10 with Apache 2.2.22 (WAMP) and this is what i have :

    In php.ini :

    extension=php_imagick_ts.dll
    

    Check out this blog

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?