Re: Weird Permissions Problem With Includes



On Jan 30, 2:54 pm, "kwest" <kwes...@xxxxxxxxx> wrote:
I just setup a new server with PHP 5 and ran into a problem with
includes. Everytime I call something like

require_once './includes/test.inc'

I get a permissions message like this:

Warning: require_once(./includes/test.inc) [function.require-once]:
failed to open stream: Permission denied in /var/www/html/test2.php on
line 3

Fatal error: require_once() [function.require]: Failed opening
required './includes/test.inc' (include_path='.:/php/includes:/var/www/
html/includes') in /var/www/html/test2.php on line 3

I verified that apache has exectuble permissions all the way through /
var/www/html. As you can see my include path is correct (unless
someone sees something I don't). This is getting really frustrating as
I have spent several hour trying to debug this, any assistance would
be greatly appreciated.

I was able to run the script fine from the command line as well.

Does each included script have read permission as well?

Carl.

.



Relevant Pages

  • Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Cant load..." cgi prob
    ... the solution i found is this: i moved the directory containing libclntsh.so under /usr/lib, which is a location that apache seems to trust, as opposed to where i had originally placed this directory. ... so, if i knew then what i know now, here are the steps _I_ would use were i to install the oracle instantclient such that the DBD::Oracle module would work when used in an apache 2.0 CGI: ... i also could run it this way by placing tnsnames.ora in my home directory as .tnsnames.ora, but this location will do me no good when i want apache to run the script as a cgi. ... am i missing some sort of configuration detail regarding apache and permissions granted a cgi? ...
    (perl.dbi.users)
  • Re: cant get access to disk share when connecting from a remote s
    ... The systems are DUTs. ... for each of the drives within the system. ... Everything in the scripts work except the file permissions below the shares ... the shares on the DUTs manually, after they run my rename script, but I would ...
    (microsoft.public.windows.server.scripting)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... The CREATOR OWNER is likely on windows to be one of the admin accounts ...
    (microsoft.public.windowsmedia)
  • Re: how to restrict users to search in their own Organizational Unit
    ... will be given the necessary permissions. ... Who would you DENY? ... decided a script can make it possible to accomplish, ... If I need to create a security group per OU and then add all users ...
    (microsoft.public.windows.server.active_directory)