配置:php-fpm.conf
添加环境变量
env[ORACLE_HOME] =/usr/lib/oracle/11.2/client64/
env[LD_LIBRARY_PATH] =/usr/lib/oracle/11.2/client64/lib/
env[NLS_LANG] =“AMERICAN_AMERICA.AL32UTF8”
重启php-fpm
pkill php-fpm
./php-fpm -R
配置:php-fpm.conf
添加环境变量
env[ORACLE_HOME] =/usr/lib/oracle/11.2/client64/
env[LD_LIBRARY_PATH] =/usr/lib/oracle/11.2/client64/lib/
env[NLS_LANG] =“AMERICAN_AMERICA.AL32UTF8”
重启php-fpm
pkill php-fpm
./php-fpm -R