Mustafa,
After testing I realized your fix doesn't work completely. The reason is lphp.exe and lxphp.exe are linked to php5{x}s-cli.sh and the starting of lxphp for kloxoMR uses php5{x}s-fpm.sh. php_rc is hardcoded in these files to php5{x}s.ini
After much investigation found easy way to implement the custom.php5{x}s.ini
PLEASE ADD THIS TO THE REPO/RPM as it is simple, and works perfectly.
File: fixlxphpexe
Find
cp -rf ${INIT_DIR}/${base_name}/*.ini /opt/${base_name}/etc
ADD THIS after that line:
if [ -f /opt/${base_name}/custom/custom.${base_name}.ini ] ; then
cp -f /opt/${base_name}/custom/custom.${base_name}.ini /opt/${base_name}/custom/${base_name}.ini
fi
VERY simple, yet works perfect. If custom file exist, we just copy it overtop php5{x}s.ini so lxphp.exe lphp.exe and kloxo-cgi ALL use custom config.
Please confirm adding to repo. THANK YOU.