Bug #54270 [Asn]: .user.ini not working on network shared DOCUMENT_ROOT

From: Date: Wed, 16 Mar 2011 14:26:34 +0000
Subject: Bug #54270 [Asn]: .user.ini not working on network shared DOCUMENT_ROOT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159521@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54270&edit=1 ID: 54270 User updated by: j dot henge-ernst at interexa dot de Reported by: j dot henge-ernst at interexa dot de Summary: .user.ini not working on network shared DOCUMENT_ROOT Status: Assigned Type: Bug Package: PHP options/info functions -Operating System: Windows +Operating System: Windows Server 2003 R2 SP2 PHP Version: 5.3.5 Assigned To: pajoye Block user comment: N Private report: N New Comment: Sorry, can't get the network share to map to a sirectory. The typical thing with junction and mklink commands does not seem to work on Windows Server 2003 R2 SP2. Or is there any other command to map the share to a directory in Windows Server 2003 R2? Previous Comments: ------------------------------------------------------------------------ [2011-03-16 14:22:40] pajoye@php.net That's rather weird, it works just fine here. But that's hardly a php problem (the conf error). What if you use a folder? Mounting the share as c:\apache\htdocs for example? ------------------------------------------------------------------------ [2011-03-16 14:00:34] j dot henge-ernst at interexa dot de Can't use it as drive because apache does not start then: DocumentRoot z:/ DocumentRoot z: DocumentRoot "z:/" leads to a Syntax error on line 6 of C:/Program Files/Zend/Apache2/conf/default-with-letter.conf Using DocumentRoot "//htdocserv/htdocsns" works This might happen for apache as Z: is not available in that context. Running apache as Service with NT AUTHORITY\NetworkService Account. ------------------------------------------------------------------------ [2011-03-16 13:39:05] pajoye@php.net Any reason why you don't mount it instead? However it should work anyway, but can you try by mounting this path as a folder or drive please? ------------------------------------------------------------------------ [2011-03-16 13:20:03] j dot henge-ernst at interexa dot de Description: ------------ From phpinfo for the file: _SERVER["DOCUMENT_ROOT"] //htdocserv/htdocsns/ _SERVER["SCRIPT_FILENAME"] //htdocserv/htdocsns/user/hernst/head/xml/iwat/tools/version.php In processmonitor I only see one access try to \\htdocserv\htdocsns\user\hernst\head\xml\iwat\tools\.user.ini and not to \\htdocserv\htdocsns\user\hernst\head\xml\iwat\.user.ini \\htdocserv\htdocsns\user\hernst\head\xml\.user.ini ... I have one .user.ini file in C:\>dir \\htdocserv\htdocsns\user\hernst\head\xml\*.ini Volume in drive \\htdocserv\htdocsns is htdocsns Volume Serial Number is AF3D-2838 Directory of \\htdocserv\htdocsns\user\hernst\head\xml 16.03.2011 11:40 19 .user.ini 1 File(s) 19 bytes Seems the alogrith does not work properly with the network shares on windows and trying to macht the Document-Root to the current file ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54270&edit=1

« previous php.bugs (#159521) next »