Apc

Discussion in 'PHP' started by shadowteller, Oct 6, 2008.

  1. shadowteller

    shadowteller New Member

    So I followed this Wiki entry and --enable-apc shows in my phpinfo file. However if I run APC.php it says that APC is not running. Please help.
  2. mistwang

    mistwang LiteSpeed Staff

    If there is a section for APC in your phpinfo page, APC has been loaded. If not, you need to check your php.ini to make sure to load apc.so properly.
  3. shadowteller

    shadowteller New Member

    Thank for the quick reply --- but


    There is no section in my phpinfo.

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = /lsphp5/lib/php/extensions/no-debug-non-zts-20060613/

    that directory contains apc.so and suhosin.so

    I also have another three lines later on in the php.ini

    [APC]
    apc.shm_size = 32
    include_path = "/home/web/php/lsphp5"

    Yet I still can not see what is going on and why APC won't fireup.
  4. mistwang

    mistwang LiteSpeed Staff

    do you have "extension=apc.so" in php.ini?

    Run

    /opt/lsws/fcgi-bin/lsphp5 -i

    from command line see if there is any error at the beginning.
  5. shadowteller

    shadowteller New Member

    That did it

    Thank you so much...now I feel so silly. That did the trick.

    I was assuming that line was not needed like suhosin.so is not needed because of this entry:

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = /lsphp5/lib/php/extensions/no-debug-non-zts-20060613/

    Thank you for correcting me. Someitme it takes a second set of eyes.

Share This Page