[Resolved] APC and PHP ini file help

Discussion in 'PHP' started by holisticspider, Jul 29, 2010.

  1. holisticspider

    holisticspider New Member

    Hi,

    I rebuilt PHP 5.2.10 using the LSWS admin console which worked great; but where do I enable the APC extension ? According to phpinfo() the ini file it check is under /usr/local/lsws/lsphp5/lib but no file exists there. It is probably a really dumb question but the answer is eluding me at the moment :(

    TIA
    Last edited by a moderator: Jul 31, 2010
  2. mistwang

    mistwang LiteSpeed Staff

    You should create one or copy the one used by apache php, usually located at /usr/local/lib/php.ini.

    APC may not work very well for shared hosting with PHP suEXEC enabled, eAccelerator will work better if the code is stable for the PHP version used.
  3. holisticspider

    holisticspider New Member

    May one ask why ? Is eAccelerator still supported ? I thought to use APC as it will be included with PHP6.
  4. holisticspider

    holisticspider New Member

    After some fighting I have PHP 5.3.3 and eAccelerator working with LSWS. Thank you for your help.

Share This Page