douye2572 2013-05-30 00:47
浏览 13
已采纳

MAMP升级APC

MAMP 2 comes shipped with APC 3.1.9. I am trying to run Symfony however it requires APC 3.1.13.

I was able to install APC 3.1.13 using pecl install APC.

After installation I was able to grab the apc.so file: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so and replace the /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-2010052‌​5/apc.so file`.

I think im on the right track, but when rebooting apache it no longer says apc is installed when calling phpinfo()

I was able to switch to PHP5.3 and replace the apc.so file in the corresponding extensions folder. This showed that php was using apc 3.1.13.

Is there a reason this would not work for php5.4?

  • 写回答

1条回答 默认 最新

  • duanfan5012 2013-08-07 09:03
    关注

    It's probably not working because a Mac comes shipped with PHP 5.3. As you installed APC you did so for PHP 5.3. So moving the .so file to a PHP 5.4 environment doesn't cut it.

    MAMP provides components and libraries on there site. Or here's a direct link: http://sourceforge.net/projects/mamp/files/mamp/2.1.2/MAMP_components_2.1.2.zip/download

    APC is included in there.

    Hope this helps!

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

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏