How to load custom "php.d" directory?

Razva

Active Member
#1
Hey,

Seems that, when installing PHP from repo, .ini files aren't loaded from /etc/php.d but from (example for PHP 5.6) /usr/local/lsws/lsphp56/etc/php.d/ . I've tried to symlink /etc/php.d to /usr/local/lsws/lsphp56/etc/php.d/ but didn't worked.

Any idea of how to solve this?

Thank you very much!
 

mistwang

LiteSpeed Staff
#2
There could be multiple versions of PHPs, each version need its own php.d, cannot mixed together.
And we intentionally not to use /etc/php.d usually used by system RPM.
I think it should work if you symlink /etc/php.d, just the configuration in those ini files may not work properly for lsphp56.
 
Top