michal-kocarek / PhpOnWindows

Bridge to PHP installed in Bash on Ubuntu on Windows
MIT License
76 stars 15 forks source link

PHP inbuilt server does not exit #11

Closed g105b closed 1 year ago

g105b commented 6 years ago

Running PHP inbuilt server in PHPStorm through PhpOnWindows works great, but when the script ends, the server is left connected.

  1. Create a new PHP Storm project with single file: index.php
  2. Set up PhpOnWindows so that PHP CLI is using PhpOnWindows
  3. Create new Run Configuration of "In built server"
  4. Click the Play button: C:\php\PhpOnWindows\php.cmd -S localhost:8080 -t C:\Users\g105b\php-storm-test
  5. http://localhost:8080 shows index.php as expected
  6. Press the Stop button - Process finished with exit code 1
  7. http://localhost:8080 still shows index.php, and trying to do work on other projects is prevented until reboot.
g105b commented 6 years ago

This is possibly due to an open bug with WSL: https://github.com/Microsoft/WSL/issues/1614

g105b commented 1 year ago

A lot has changed since opening this issue - closing now to tidy up.