Bug #48852 [Opn->Fbk]: php windows save file to remote share strange access denied
| From: | kalle@php.net | Date: | Thu, 18 Mar 2010 15:44:38 +0000 |
| Subject: | Bug #48852 [Opn->Fbk]: php windows save file to remote share strange access denied | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148740@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=48852&edit=1
ID: 48852
Updated by: kalle@php.net
Reported by: trutas dot ctx at gmail dot com
Summary: php windows save file to remote share strange access
denied
-Status: Open
+Status: Feedback
Type: Bug
Package: IIS related
Operating System: Windows Server 2003 x64 IIS6.0
PHP Version: 5.3.0
New Comment:
Is this also reproducable on PHP 5.3.2?
Previous Comments:
------------------------------------------------------------------------
[2009-07-17 10:06:52] trutas dot ctx at gmail dot com
don't know if it helps, but here are some example details from
phpinfo();
_SERVER["APPL_MD_PATH"] /LM/W3SVC/1897346991/Root/webservices/Cacher
_SERVER["APPL_PHYSICAL_PATH"] \\ptlisi020dat\intraroot$\CIO\Webservices\Cacher\
I haven't tried using APPL_MD_PATH, but with APPL_PHYSICAL_PATH it
doesn't work.
------------------------------------------------------------------------
[2009-07-08 15:56:48] trutas dot ctx at gmail dot com
i have installed and configured as recommended at
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
can i further configure the FastCGI/PHP user anywhere else?
IIS user is configured correctly (- home directory with Run as
trustedDomain\iisuser) and the destination folder has
trustedDomain\iisuser modify and everyone modify .
Regards,
------------------------------------------------------------------------
[2009-07-08 15:18:27] pajoye@php.net
Be sure that you configured the user correctly or that the user has the
correct access.
------------------------------------------------------------------------
[2009-07-08 15:15:19] trutas dot ctx at gmail dot com
FastCGI
------------------------------------------------------------------------
[2009-07-08 15:13:50] trutas dot ctx at gmail dot com
Note:
test.php is located at \\share\intraroot$\site\
i've just tested it further and tryed a few workarounds:
- it doesn't work with relative path (since both files are within the
same share) "..\\folder\\file.txt";
- it doesn't work with dirname(__FILE__)."\\..\\folder\\file.txt";
- does not work with forward slashes //share/...
- the error is "permission denied" even if the destination folder
doesn't exist - i've found this because at a time i had wrongly typed
\\\\share\\intraroot$folder\\file.txt - that does not exist;
I'm guessing it has something to do with the home directory in IIS being
on a remote share - the production servers are clustered...
Every other technology (vbscript, .NET) on IIS accesses the shares
normally.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=48852
--
Edit this bug report at http://bugs.php.net/bug.php?id=48852&edit=1