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

156
Visualizações
On AWS Apache Server is_dir returns false on an existing directory

Here is the thing. I have a file in my Apache WebServer that does the following check:

if (!is_dir($pointer_location)){
   error_log("Config repo $pointer_location either does not exist or is not a directory");
   return;
}

When I go theck the error log I see the corresponding message:

Config repo /home/ec2-user/path/to/config/dir either does not exist or is not a directory

However when I do

ls -la /home/ec2-user/path/to/config/dir

I get the following output:

drwxrwxr-x 2 ec2-user apache     44 jul  5 10:41 .
drwxrwxr-x 3 ec2-user ec2-user 4096 jul  5 14:29 ..
-rw-rw-r-- 1 ec2-user apache    816 jul  5 13:46 file1.cnf
-rw-rw-r-- 1 ec2-user apache    994 jul  5 10:50 file2.cnf

Which tells the that the execution level permissions are there even for other users. So how come is_dir is returning false?

over 4 years ago · Santiago Trujillo
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