Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

artisan tinker: mkdir() permission denied

Laravel Version 5.0.33

> php artisan tinker

  [ErrorException]            
  mkdir(): Permission denied  

This is on a production server, I was trying to test a command with tinker as the web user. This user owns every directory in the base path, so I'm not sure what directory is attempted to be created when I run artisan tinker.

like image 274
Devon Avatar asked Jan 11 '17 21:01

Devon


1 Answers

Place .psysh.php in the root of a Laravel project with this content

<?php
return [
        'runtimeDir'    => './.psysh',
    ];

More info https://github.com/laravel/tinker/issues/34#issuecomment-357550126

like image 161
Bdwey Avatar answered Nov 13 '22 15:11

Bdwey