Can't get APC working

Discussion in 'Install/Configuration' started by ckissi, Oct 6, 2011.

  1. ckissi

    ckissi New Member

    I installed APC but it always resets cache, seems to be deleted after connection is terminated.

    I read somewhere that I need to disable suExec but suExec is in the section of Apache config and I don't use apache config for virtual hosts.

    I used to create all my domains with PHP_SuEXEC template.

    So how can I get APC work ?
  2. NiteWave

    NiteWave Administrator

    It's possible.

    please post your lsphp5 settings here for investigation.
  3. ckissi

    ckissi New Member

    I sent you URL with phpinfo in personal message, please take a look.
  4. NiteWave

    NiteWave Administrator

    received the URL for phpinf()

    but what I wanted is:

    lsws admin console->Configuration->Sever->External App->lsphp5
  5. ckissi

    ckissi New Member

    I uploaded the screenshot in attachment

    Attached Files:

    Last edited: Oct 6, 2011
  6. ckissi

    ckissi New Member

    I reuploaded the image as it was unreadable
  7. NiteWave

    NiteWave Administrator

    The settings looks ok.

    any definition for vhost level lsphp5?
  8. ckissi

    ckissi New Member

    I uploaded screenshots for PHP_suEXEC template

    Attached Files:

  9. webizen

    webizen New Member

    For dedicated environment (run APC), PHP_suEXEC template is not recommended. it is for sharing hosting environment instead.

    You should set instances to 1 and put 'PHP_LSAPI_CHILDREN=5' in Environment box for each vhost lsphp5.
  10. ckissi

    ckissi New Member

    I tried this for instantiated hosts as well as hosts created by PHP_suEXEC template. Actually when I make changes in host created by template I make changes to template itseft and it changes all hosts based on this template.

    But it still doesn't work. APC is always resetting itself. Uptime is always 0 and only one script is cached
  11. webizen

    webizen New Member

    are you saying APC still reset itself even though with the required settings for lsphp5?

    if so, pm the server access for us to look at if you like.

Share This Page