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

lara28580's avatar

Laravel new blog throughs error copy() failed to open stream permission denied

Hi,

I am not able to install a new project on my mac. I enter the command laravel new blog and it always throughs an error (failed to open stream: permission denied) when installing phpoption. Someone knows what to do ?

0 likes
5 replies
Tray2's avatar

Where are you installing it?

You should create a folder in your home directory for it something like

/Users/<user>/Code

And in it create your project.

lara28580's avatar

I am creating it in my htdocs folder from MAMP.

lara28580's avatar

Changed the permissions for the htdocs folder but it does not change anything. Did chmod 777 htdocs

lara28580's avatar

Tried your suggestion but did not work either...

Please or to participate in this conversation.