php.ini location not being set

#1
Hello,

After I upgraded LSWS to 4.2.4 and PHP LSAPI to 6.3, my command-line options for specifying the php.ini location aren't working.

This is the external app command I've always been using:
Code:
$SERVER_ROOT/fcgi-bin/lsphp5 -c /home/user/conf/php.ini
phpinfo() is showing that no configuration file is loaded even though php.ini exists with the correct permissions. Again, this was working fine till I upgraded.

CentOS 6.4 x64, PHP 5.5.2

Any ideas?

Thanks
 
Last edited:

mistwang

LiteSpeed Staff
#5
Our internal test shows that -c option works. you can try from command line:

/usr/local/lsws/fcgi-bin/lsphp5 -c /home/user/conf/php.ini -i
Maybe you selected PHP suEXEC daemon mode? which is not compatible with per user php.ini.
 

mistwang

LiteSpeed Staff
#6
Please rebuild PHP with updated lsapi 6.3 code.
If you use cPanel to build matching PHP, do

rm -f /home/cpeasyapache/ls.src/php-litespeed-6.3.tgz

if you use web console, do

rm -f /usr/local/lsws/phpbuild/php-litespeed-6.3.tgz
 
Top