Which php.ini?

TomBG

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

LSWS_HOME/lsphp5/lib/php.ini

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

./admin/misc/php.ini
./admin/conf/php.ini
./php/php.ini
 

mistwang

LiteSpeed Staff
#2
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.
 

TomBG

Active Member
#3
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.

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

TomBG

Active Member
#5

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