I want to use php artisan serve
as a Run Configuration in PhpStorm and already set it up like here.
When I run the command / configuration (?), the server seems to start but then is instantly stopped. This is my console output:
C:\dev\php\php_7.2\php-win.exe C:\Users\bendi\PhpstormProjects\dashboard\artisan serve
Laravel development server started: <http://127.0.0.1:8000>
Notice: Undefined index: REQUEST_URI in C:\Users\bendi\PhpstormProjects\dashboard\server.php on line 11
PHP Notice: Undefined index: REQUEST_URI in C:\Users\bendi\PhpstormProjects\dashboard\server.php on line 11
Process finished with exit code 0
A simple php artisan serve
in the console works normally.
EDIT: I think it isn't a duplicate because the problem hasn't anything to do with the php code (at least I think so). As stated earlier, the normal command works.
EDIT 2: my run configuration
As @LazyOne pointed out, I simply had to change the CLI Interpreter in Languages & Frameworks > PHP > CLI Interpreter > PHP executable from php-win.exe
to php.exe
. Now everything works as wished.