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 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记