Windows doesn't give me permissions for server.php file

Victor Yazigi 0 Reputation points
2025-03-07T01:51:44.8333333+00:00

i'm a developer, and one of the files of my software is called "server.php" which has this content

https://github.com/digitalocean/sample-laravel/blob/main/server.php

but for some reason, when i'm programming, sometimes that file suddenly disappears when i run my local server, and them when i try to put it back, i get the error

Unable to write file 'c:\Users\Mambo\Desktop\laravel-project\bde\server.php' (NoPermissions (FileSystemError): Error: EPERM: operation not permitted, open 'c:\Users\Mambo\Desktop\laravel-project\bde\server.php')

i've tried running my IDE as administrator, and also tried

takeown /F "c:\Users\Mambo\Desktop\laravel-project\bde" /R /D Y icacls "c:\Users\Mambo\Desktop\laravel-project\bde" /grant "%username%":(OI)(CI)F /T

to give me permissions to the folder, but still doesn't work, i also tried putting my software in a folder which is directly on the C:, but didn't work also

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
3,012 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.