Re: opendir() in safe mode

From: Jeremy Shovan (jeremys013_at_foundationx.com)
Date: 06/25/04


Date: Thu, 24 Jun 2004 17:46:05 -0700

Michael Austin wrote:

> Jeremy Shovan wrote:
>
>> What do I need to change to use the opendir() function when safe mode
>> is in affect??
>> I have root access to the server and can make any changes neccessary
>> except turn safe mode off
>>
>> Thanks in advance,
>> Jeremy
>
>
> who is the owner of the web server process? I could be wrong, but make
> sure the process owner has access to the directory you are trying to
> open. (ie in the same group, etc...)
>
> (but I am not wrong: see:
>
> go to the PHP site and search for "safe mode opendir" in the "online
> docs"
>
> and you will find:
>
> http://www.php.net/rmdir
> ....
> "Note: When safe mode is enabled, PHP checks whether the directory in
> which you are about to operate has the same UID (owner) as the script
> that is being executed."
>
> Michael Austin.

Thanks for the reply. I understand that much but my problem is that I
need scripts with different uid's to access the directory that I am
opening. The code is used with several sites on the server. I read the
documentation already but I dont quite understand what to do. I set the
safe_mode_include_dir and safe_mode_exec_dir in the php.ini file but
that didn't work.

Jeremy



Relevant Pages

  • RE: 2000-> 2003 - now accessing Word and PPT network docs take forever
    ... 2000-> 2003 - now accessing Word and PPT network docs take forever ... Does the issue only occur with the Word/PPT documents on the specific server? ... To come into Windows safe mode, ... Under Word safe mode, it doesn't load the third party add-ins, the global template normal.dot, Word setting registry keys, and the files ...
    (microsoft.public.office.misc)
  • Re: Daily BSOD: unable to allocate from the system nonpaged
    ... but the server did crash "as usual". ... does the issue also occur in Safe Mode? ... Your Windows Server 2003-based or Windows 2000-based computer ... Microsoft Global Technical Support Center ...
    (microsoft.public.win2000.general)
  • RE: Very slow response from server
    ... It is possible and that's why I suggest you try to boot into safe mode to ... When responding to posts, please "Reply to Group" via your newsreader so ... This posting is provided "AS IS" with no warranties,and confers no rights. ... I know the problematic PC is a file server & printer server, ...
    (microsoft.public.windows.server.general)
  • Re: Help!! Web Server outage - ping failure
    ... If I boot into safe mode with networking, ... I can only ping the primary ip from the web server itself, ... Ethernet adapter Local Area Connection 7: ...
    (microsoft.public.inetserver.iis)
  • Re: PHP/MySQL oldies
    ... > secure when you leave it lying around in a PHP file on your web server? ... safe mode is always enabled, ... is using cookies ...
    (uk.net.web.authoring)

Loading