where is the php.ini file

Discussion in 'Install/Configuration' started by gdewey, Jul 26, 2013.

  1. gdewey

    gdewey Well-Known Member

    H LS Support, I am using lsphp5 for a virtual host. From what I understand, the php.ini should be at


    actually that where my phpinfo() shows. but in there there is only

    /bin /etc /include /lib /php

    any idea where is the default php5 compiled by the lsws. and how can I set a dedicated php.ini for each vh?

  2. gdewey

    gdewey Well-Known Member

    this are all the php.ini

    this are all the php.ini files on my installation..non of them seem to be loading on the VH. The host works and runs php5 but not with the ones listed :S

    ubuntu@ip-10-165-31-18:/usr/local/lsws/lsphp5$ sudo find /usr/local/lsws/ -name "php.ini"
  3. webizen

    webizen Well-Known Member

    You should copy a php.ini to /usr/local/lsws/lsphp5/lib for lsphp5 to pick up. A good candidate is the php.ini comes with php source code (depends on lsphp5(php) version).

    To have custom php.ini for each vhost, please refer to this wiki.


Share This Page