Which php.ini?

Discussion in 'Install/Configuration' started by TomBG, Apr 5, 2009.

  1. TomBG

    TomBG Active Member

    I've read through some posts (and done a php -i) and it seems the php.ini needs to go in:


    However, there are several other copies. Are they needed? What are they used for? I removed the add-ons/ directory because those are obvious.

  2. mistwang

    mistwang LiteSpeed Staff

    always check the php.ini path in a phpinfo() page.
    Do not remove other php.ini file, they wont interfere with your PHP, but if removed, some LSWS functions may break.
  3. TomBG

    TomBG Active Member

    OK -- so which php binary is used? The one defined in "External Apps" under "Command"?
  4. mistwang

    mistwang LiteSpeed Staff

    That's correct.
  5. TomBG

    TomBG Active Member

    Can all others be removed? Or they need to remain just as the php.ini's? I'm very obsessive about keeping things orderly and having 3-5 php directories, binaries, and php.ini's is confusing. Especially when there's no real documentation for this and I'm new to LS.

Share This Page