[solved] PHP config not loading.....

bangsters

Well-Known Member
#1
Hi. Everything seems to be working fine, however, in the PHP info, it says there is no loaded config file. And what's weirder is it says none is loaded even if the php.ini file location is clearly defined, and the file actually exists.

[root@node1 fcgi-bin]# pwd
/usr/local/lsws/fcgi-bin
[root@node1 fcgi-bin]# ./lsphp5 -i | grep Configuration
Configuration File (php.ini) Path => /etc/conf/php/5.2.17/php.ini
Loaded Configuration File => (none)
Configuration
[root@node1 fcgi-bin]#
[root@node1 fcgi-bin]# cd /etc/conf/php/5.2.17
[root@node1 5.2.17]# ls
php.ini
[root@node1 5.2.17]#

So how come it's not being loaded? Please advice.

Thanks
 
Last edited by a moderator:

NiteWave

Administrator
#2
Configuration File (php.ini) Path => /etc/conf/php/5.2.17/php.ini
this is wrong, should be
Configuration File (php.ini) Path => /etc/conf/php/5.2.17

so to make it work without rebuilding lsphp5,
#cd /etc/conf/php/5.2.17
#mv php.ini php.ini.save
#mkdir php.ini
#mv php.ini.save php.ini/
 

bangsters

Well-Known Member
#3
Thanks!! That fixed it. I also replaced lsphp and /usr/bin/lsphp and /usr/bin/php with lsphp-5.2.17. now everything works fine.

thanks
 
Top