Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6138

Re: is_dir true from cli, false from Apache

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: is_dir true from cli, false from Apache
Date 2012-05-23 13:10 -0400
Organization A noiseless patient Spider
Message-ID <jpj5mc$33d$1@dont-email.me> (permalink)
References <4fbd1439$0$6967$c3e8da3$9b4ff22a@news.astraweb.com>

Show all headers | View raw


On 5/23/2012 12:45 PM, Robert Grimm wrote:
> 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?
>

Does the web server's user have access to the directory?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 12:45 -0400
  Re: is_dir true from cli, false from Apache Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-23 13:10 -0400
    Re: is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 13:24 -0400
      Re: is_dir true from cli, false from Apache Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-23 14:04 -0400
        Re: is_dir true from cli, false from Apache Robert Heller <heller@deepsoft.com> - 2012-05-23 14:17 -0500
          Re: is_dir true from cli, false from Apache Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-23 16:13 -0400
          Re: is_dir true from cli, false from Apache Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-23 22:39 +0200
          Re: is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 16:44 -0400
            Re: is_dir true from cli, false from Apache Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-24 00:25 +0200
              Re: is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 20:03 -0400
        Re: is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 16:48 -0400
          Re: is_dir true from cli, false from Apache Robert Grimm <robertgrimm@gmail.com> - 2012-05-23 21:15 -0400
  Re: is_dir true from cli, false from Apache The Natural Philosopher <tnp@invalid.invalid> - 2012-05-23 19:55 +0100
    Re: is_dir true from cli, false from Apache Michael Fesser <netizen@gmx.de> - 2012-05-23 22:35 +0200

csiph-web