Resume oracle.sh in/etc/profile.d/
The contents are as follows in Nls_lang setup encoding
1 oracle_home=/usr/lib/oracle/12.1/client642 c_include_path=/usr/include/ oracle/12.1/client643 ld_library_path= $ORACLE _home/lib4# RememberThis was the client Nls_lang not the server one5 nls_lang=6 Export Oracle_ho ME Ld_library_path Nls_lang
Then modify the/ETC/INIT.D/PHP-FPM
Increase in head
. /etc/profile.d/oracle. SH
. /etc/init.d/functions
. /etc/profile.d/oracle.sh
# Check that networking are up.
. /etc/sysconfig/network
# Additional Environment File
if [-F/ETC/SYSCONFIG/PHP-FPM]; Then
. /etc/sysconfig/php-fpm
Fi
If ["$NETWORKING" = "No"]
Then
Exit 0
Fi
Retval=0
Prog= "PHP-FPM"
Pidfile=${pidfile-/var/run/php-fpm/php-fpm.pid}
LOCKFILE=${LOCKFILE-/VAR/LOCK/SUBSYS/PHP-FPM}
Then restart PHP to
The above describes the PHP PDO Oracle Chinese garbled, including the content of the oracle,php, I hope that the PHP tutorial interested in a friend helpful.