Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

343
Visualizações
Installing oci8 on Centos 8 running Apache and php-fpm

I have oracle instantclient 19.3 installed and can see that OCI8 is loaded in PHP from a terminal by running php -m. I also added LD_LIBRARY_PATH and ORACLE_HOME and environment variables to /etc/php-fpm.d/www.conf. They show up correctly in the environment section in phpinfo.

However, oci8 still does not show loading from apache.

Any suggestions on what else I can try to get this to work?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

On Linux, LD_LIBRARY_PATH must be set before a process starts.

On Oracle Linux 8 / RHEL 8 I found that I needed to edit /etc/php-fpm.d/www.conf and add:

env[LD_LIBRARY_PATH] = /usr/lib/oracle/21/client64/lib:$LD_LIBRARY_PATH

I had installed the Oracle Instant Client RPMs packages; change the path to suit your library location.

I also disabled SELinux with setenforce permissive to avoid the error ORA-12546: TNS:permission denied.

When using Instant Client, you should not set ORACLE_HOME.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda