Ad
PhpStorm: Run Php Artisan Serve Undefined Index: REQUEST_URI
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
Ad
Answer
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.
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
Ad