cretueusebiu / valet-windows

Laravel Valet for Windows.
MIT License
912 stars 86 forks source link

PHP install script error #202

Closed ghost closed 2 years ago

ghost commented 2 years ago

Installing php.ini... Installing CA certificate... Downloading Xdebug... Could not find a Xdebug release for PHP 8.1. At C:\Users\Marcus\AppData\Local\Temp\php.ps1:47 char:5

vdhruv commented 2 years ago

Getting the same error.

ghost commented 2 years ago

There is a work around. You can download a copy of the php_xdebug (https://odan.github.io/2020/12/03/xampp-xdebug-setup-php8.html) and save it in your php/ext folder. Make sure you download the xdebug version that matches your php version. Rename it to php_xdebug.dll. Add the php path to your environment variables (c:;\php). Then run valet install at a command prompt. It will install valet without error.

vdhruv commented 2 years ago

Thanks for the help @Nulimitz , it worked!

jamesj2 commented 2 years ago

The pull request version worked for me.

Set-ExecutionPolicy RemoteSigned -Scope Process; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cretueusebiu/valet-windows/85cda419c6fbe5815fb2e5bc3f2026b14d8a4479/bin/php.ps1" -OutFile $env:temp\php.ps1; .$env:temp\php.ps1 "8.1"

cretueusebiu commented 2 years ago

Fixed #201