php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54141 Function symlink not working under windows server 2008
Submitted: 2011-03-02 21:46 UTC Modified: 2011-03-02 23:34 UTC
From: shibby_crinquer at hotmail dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.3.5 OS: Windows server 2008
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shibby_crinquer at hotmail dot com
New email:
PHP Version: OS:

 

 [2011-03-02 21:46 UTC] shibby_crinquer at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.symlink
---

I am under Windows server 2008
PHP 3.5.3 installed with FastCGI

I get this error when I can the function symlink.

Warning: symlink(): Cannot create symlink, error code(1314) in 
C:\inetpub\wwwroot\index.php on line 42

Test script:
---------------
symlink("C:\Temp\php.log","C:\Temp\symlink.log");

Expected result:
----------------
The symlink

Actual result:
--------------
No symlink.

Warning: symlink(): Cannot create symlink, error code(1314) in 
C:\inetpub\wwwroot\index.php on line 42

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-02 22:05 UTC] shibby_crinquer at hotmail dot com
When I go in the command prompt and enter C:\php\> php index.php that contain the 
symlink command, it work. But outside the command prompt (in a web page) it don't 
work. I've looked about changing the local policies for the "Create symbolic 
links" I've changed Administrators for everyone and this is not working.
 [2011-03-02 23:34 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2011-03-02 23:34 UTC] pajoye@php.net
Permissions issue, fix them and you will be able to create symbolic links.
 [2011-03-03 14:35 UTC] shibby_crinquer at hotmail dot com
Do you know what permissions to change? I've disable the UAC and I've gaven the 
permission to everyone to create symbolic links (in the local policies). Thank 
you.
 [2011-03-04 15:24 UTC] shibby_crinquer at hotmail dot com
I've changed the default IUSR user for anonymous authentication to a local user 
account. By the way, I've added the same user in the local policies for creating 
symbolic links. I don't think this is the good way (for security reason), but it 
work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC