##### Configuração InstantClient Oracle --- Configurações das Variáveis de Ambiente. ~~~sh nano /etc/sysconfig/php-fpm ~~~ Incluir no arquivo o NLS_LANG, conforme arquivo abaixo: ~~~ini # Additional environment file for php-fpm # This file is deprecated when systemd is used and # will be removed in the future # To alter the FPM environment, copy the unit file # from /usr/lib/systemd/system/php-fpm.service # to /etc/systemd/system/php-fpm.service # and add an Environment line # With systemd >= 204 you can simply drop a file with the # suffix .conf in /etc/systemd/system/php-fpm.service.d, with # [Service] # Environment=FOO=bar # See systemd documentation. # man systemd.unit # man systemd.exec NLS_LANG = 'BRAZILIAN PORTUGUESE_BRAZIL.AL32UTF8' ~~~ Próximo passo é incluir as variáveis no pool do php-fpm ~~~sh nano /etc/php-fpm.d/www.conf ~~~ Segue conteúdo e local aonde deve ser incluido. ~~~ini ... ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env env[HOSTNAME] = 'localhost' env[NLS_LANG] = 'BRAZILIAN PORTUGUESE_BRAZIL.AL32UTF8' env[NLS_TERRITORY] = 'BRAZIL' env[NLS_DUAL_CURRENCY] = 'R$' env[NLS_CURRENCY] = 'R$' env[NLS_ISO_CURRENCY] = 'BRAZIL' env[NLS_DATE_LANGUAGE] = 'BRAZILIAN PORTUGUESE' env[NLS_DATE_FORMAT] = 'DD/MM/YYYY' env[NLS_TIME_FORMAT] = 'HH24:MI:SS' env[NLS_TIMESTAMP_FORMAT] = 'DD/MM/YYYY HH24:MI:SS' ... ~~~ ~~~sh systemctl restart php-fpm.service ~~~