where is the php.ini file

gdewey

Well-Known Member
#1
H LS Support, I am using lsphp5 for a virtual host. From what I understand, the php.ini should be at

/usr/local/lsws/lsphp5/lib

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?

tks
 

gdewey

Well-Known Member
#2
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"
/usr/local/lsws/php/php.ini
/usr/local/lsws/add-ons/directadmin/php.ini
/usr/local/lsws/add-ons/cpanel/lsws_whm_plugin/php.ini
/usr/local/lsws/admin/conf/php.ini
/usr/local/lsws/admin/misc/php.ini
ubuntu@ip-10-165-31-18:/usr/local/lsws/lsphp5$
 

webizen

Well-Known Member
#3
H LS Support, I am using lsphp5 for a virtual host. From what I understand, the php.ini should be at

/usr/local/lsws/lsphp5/lib

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?

tks
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.

http://www.litespeedtech.com/suppor...speed_wiki:per_user_ini_in_control_panel_lsws
 
Top