Why command “php artisan serve” not working

前端 未结 8 1872
醉梦人生
醉梦人生 2020-12-25 08:15

I started Laravel at this path:

C:\\Users\\Mad\\Work\\trunk\\product\\backend\\v1.2.1\\laravel

but it is not working, it is not starting. <

8条回答
  •  一生所求
    2020-12-25 08:36

    Your missing some Server Requirements

    See the Laravel site for requirements. Laravel Documentation
    The Laravel framework has a few system requirements.

    If you are not using Homestead, you will need to make sure your server meets the following requirements:

    PHP >= 7.1.3
    BCMath PHP Extension
    Ctype PHP Extension
    JSON PHP Extension
    Mbstring PHP Extension
    OpenSSL PHP Extension
    PDO PHP Extension
    Tokenizer PHP Extension
    XML PHP Extension
    

    To see a list of your extensions... From the command line:
    $ php -m

    I was missing BCMath and Tokenizer so I installed them with:
    $ sudo apt-get install php-bcmath
    $ sudo apt-get install php-tokenizer

    Now you can use $ php artisan serve

提交回复
热议问题