LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   [solved] PHP config not loading..... (http://www.litespeedtech.com/support/forum/showthread.php?t=5602)

bangsters 01-04-2012 06:32 AM

[solved] PHP config not loading.....
 
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

NiteWave 01-04-2012 06:42 AM

Quote:

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 01-05-2012 08:11 PM

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


All times are GMT -7. The time now is 03:45 PM.