• Edited

I allowed Visual Studio 2022 (Community) to upgrade to the latest build of PHP Tools (1.83.20317). Now when I attempt to run a project, VS displays "Can't start php process". If I attempt to run the project a second time (without closing VS), VS launches a browser with an ERR_CONNECTION_REFUSED message saying the localhost refused to connect. I tried to install the latest from devsense.com but the installer reported that the latest version was already installed. I also uninstalled, reinstalled, rebooted, etc. PHP Tools was working fine before upgrading.
Thanks for your help!

    SteveA Thank you for reporting the issue!

    We'll try to find the issue asap;

    Meanwhile, - uninstalling PHP Tools - restarting VS - and installing an older version of PHP Tools should let you downgrade.

      We've tried various scenarios and it all worked, but obviously, something is not right when starting the PHP process.

      e.g. web root doesn't exist or similar.

      The best way to debug this would be to check what is in PHP Web Server in Output Pane. e.g. this is in mine when I start a project. When PHP process can't start, the error message is here.

      > C:\Program Files\IIS Express\PHP\v8.3\php.exe -S localhost:48343 -t C:\Users\User\source\repos\PHPWebProject1\PHPWebProject1\public "-cC:\Program Files\IIS Express\PHP\v8.3" -dxdebug.mode=debug -dxdebug.client_host=127.0.0.1 -dxdebug.client_port=9003 -dxdebug.start_with_request=yes -dxdebug.idekey=B5DDB3C1
      [Fri Jan 10 09:32:19 2025] PHP 8.3.10 Development Server (http://localhost:48343) started
      [Fri Jan 10 09:32:19 2025] [::1]:58032 Accepted
        Write a Reply...