Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda