Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!