Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hadis's avatar
Level 1

: include(C:\xampp\htdocs\***\***\***): failed to open stream: Permission denied

when i run php artisan route:list i got this error what is the problem?

0 likes
8 replies
jlrdw's avatar

Sounds like it explains itself, check your folder storage permissions.

hadis's avatar
Level 1

storage permissions?where is it?

jlrdw's avatar

Well you didn't show the whole error message so I'm not sure where you are having trouble but any folder that needs write permissions.

I would say show more of the error so people can help.

Tray2's avatar

Have you moved the files from one windows installation to another? If so your username might not have the same user id. You can go through diretory by directory but that will take some time and might not help.

I suggest you copy paste the files you have updated into a new project. If you are not using git that is or some other version control system.

hadis's avatar
Level 1

This is error message:

ErrorException : include(C:\xampp\htdocs\PHP\xxx\xxx): failed to open stream: Permission denied

at C:\xampp\htdocs\PHP\xxx\xxx\vendor\composer\ClassLoader.php:444 440| * Prevents access to $this/self from included files. 441| */ 442| function includeFile($file) 443| {

444| include $file; 445| } 446|

Exception trace:

1 include() C:\xampp\htdocs\PHP\xxx\xxx\vendor\composer\ClassLoader.php:444

2 Composer\Autoload\includeFile("C:\xampp\htdocs\PHP\xxx\xxx\vendor\composer/../..") C:\xampp\htdocs\PHP\xxx\xxx\vendor\composer\ClassLoader.php:322

Please use the argument -v to see more details.

kawther's avatar

@Tray2 hey i hav this probleme can you help please ! file_put_contents(C:\Users\xxx\composer): Failed to open stream: Permission denied

Please or to participate in this conversation.