is_dir true from cli, false from Apache



I'm having trouble on CentOS 6 with PHP5. This is my test code:

$dir = is_dir("/var/www/document_repository");

Ultimately, I'm trying to get OpenDocMan working. That this test code fails shows why I can't get OpenDocMan working. I've tried everything I can think of. I've added a trailing /. I've put the directory in and out of the OpenDocMan directory, which has a directory definition in the Apache config. The user apache owns and has full access to the directory. I tested to make sure PHP was being run by apache with passthru("whoami");

I posted my site configuration and phpinfo() output at http://opendocman.com/forum/viewtopic.php?f=4&t=667 in the last post on the page as of right now.

What is really strange is that my test code works when I run it from the command line.

This is a recent, clean install of CentOS. I have done no customization of the configuration files beyond defining the site in Apache. The site configuration has no PHP directives, as can be seen in the forum post linked above. What is going on? What do I have to do to get this working?

.



Relevant Pages

  • Re: is_dir true from cli, false from Apache
    ... That this test code fails shows why I can't get OpenDocMan working. ... I've put the directory in and out of the OpenDocMan directory, which has a directory definition in the Apache config. ... What is really strange is that my test code works when I run it from the command line. ... The site configuration has no PHP directives, as can be seen in the forum post linked above. ...
    (comp.lang.php)
  • Re: is_dir true from cli, false from Apache
    ... I'm trying to get OpenDocMan working. ... The user apache owns and has full access to the ... What is really strange is that my test code works when I run it from the ... of the configuration files beyond defining the site in Apache. ...
    (comp.lang.php)
  • Re: is_dir true from cli, false from Apache
    ... I'm trying to get OpenDocMan working. ... The user apache owns and has full access to the ... What is really strange is that my test code works when I run it from the ... of the configuration files beyond defining the site in Apache. ...
    (comp.lang.php)
  • Re: is_dir true from cli, false from Apache
    ... I'm trying to get OpenDocMan working. ... The user apache owns and has full access to the ... What is really strange is that my test code works when I run it from the ... of the configuration files beyond defining the site in Apache. ...
    (comp.lang.php)
  • Re: is_dir true from cli, false from Apache
    ... I'm trying to get OpenDocMan working. ... The user apache owns and has full access to the ... What is really strange is that my test code works when I run it from the ... of the configuration files beyond defining the site in Apache. ...
    (comp.lang.php)