Full REPL not supported

前端 未结 4 1380
你的背包
你的背包 2021-01-12 13:50

I get an error when trying to use artisan command tinker. For example I would like to add a user. In my terminal I type

$ php artisan tinker 
4条回答
  •  半阙折子戏
    2021-01-12 14:18

    Sometimes pcntl functions are disabled in some distros, so you have to

    Find your cli's php.ini file

    php --ini
    

    Edit it that php.ini, usually you'll have to do

    sudo gedit /etc/php5/cli/php.ini
    

    or

    sudo vim /etc/php5/cli/php.ini
    

    and comment a line that starts with

    ; disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,...
    

    You don't really have to comment it all, you can just enable pcntl functions, by removing them from that line, but if this is a development box, you can just enable everything.

提交回复
热议问题