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!

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

报告相同问题?

悬赏问题

  • ¥15 一道python难题2
  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备