Topic: [request] Minor changes in php-fpm init script

Hi. I'm use php-fpm with oci8 module for access to oracle. For the correct work of the site need to set some oracle-specific environment variables, now that I have to edit the init script and do it after every update. Env values in /etc/php-fpm.d/www.conf not work correctly. Please add at the beggining of php-fpm init script next lines:
if [ -f /etc/sysconfig/php-fpm ];
then
. /etc/sysconfig/php-fpm
fi

Re: [request] Minor changes in php-fpm init script

This seems a good idea

As this is a backport of fedora package, can you please file a RFE on https://bugzilla.redhat.com/ for tracking (I also maintains PHP there)

For oci8, the only thing which probably block is the path to the Oracle Library, which need to be define before start (so, before config parsing). Other value can be set in www.conf.

Adding LD_LIBRARY_PATH to environment is a working solution, but adding it to a /etc/ld.so.conf.d/oracle file also works and is more system wide (all applications).

This is the solution I use in my Oracle Instant Client RPM (private use, I cannot publish them).

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi

Re: [request] Minor changes in php-fpm init script

Not only LD_LIBRARY_PATH environment variable need to be set before starting php-fpm, don't know why but NLS_LANG and NLS_DATE_FORMAT not working too from www conf.

Ok, thanks, i feel feature request on redhat bugzilla.

Re: [request] Minor changes in php-fpm init script

https://bugzilla.redhat.com/show_bug.cgi?id=784770

Re: [request] Minor changes in php-fpm init script

Thanks for the report,

I will take care of it for next build

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi

Re: [request] Minor changes in php-fpm init script

I close this one to avoid spam

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi