Skip to content
Advertisement

Laravel: mkdir(): Permission denied

I deployed my website to an apache webserver and try to make tinker work.

I have the problem that I can’t use tinker in Laravel with my user (clashfinder), with the command php artisan tinker. I get this error message:

JavaScript

As soon as I execute the command with sudo, it works.

My file permissions inside /var/www/html/clash/ look like this:

JavaScript

The permissions look correct for me. Can someone tell me why it won’t work with my user?

Advertisement

Answer

I think you need to create .psysh.php file in the project root of Laravel.

and then add:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement