Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: php does not install on set up on Windows #1268

Open
CarolineHussey opened this issue Feb 5, 2025 · 1 comment
Open

[Bug]: php does not install on set up on Windows #1268

CarolineHussey opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@CarolineHussey
Copy link

CarolineHussey commented Feb 5, 2025

Platform

Windows

Operating system version

Windows 11 23H2 22631.4830

System architecture

Windows

Herd Version

1.14.0

PHP Version

All versions

Bug description

php does not install when herd is set up.

Steps to reproduce

Run the Herd install file.
Open Herd Application.
You can see from the dashboard that php has not installed.

Image

Clicking on the 'i' button shows the log output and we can see

Error: spawn C:\Users\user\.config\herd\bin\php84\php-cgi.exe ENOENT

The buttons on the php tab to install or update php are not interactable (the two red dots are moving infinitely)

Image

Relevant log output

Error: spawn C:\Users\user\.config\herd\bin\php84\php-cgi.exe ENOENT
@issuelabeler issuelabeler bot added the windows label Feb 5, 2025
@CarolineHussey
Copy link
Author

CarolineHussey commented Feb 7, 2025

I tried to install php manually and I've had some success. php is now showing on the dashboard as installed.

Image

The php tab also shows php version 8.4 is installed but buttons are still not interactable

Image

When I try to create a new site I receive the 'Your application was created successfully' screen but there is no folder created on my hard drive. The log output shows the following error message (thrown from composer.phar):

Creating a "laravel/laravel" project at "./test"

In Factory.php line 654:
                                                                                                                       
  The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex  
  tension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.

When disable-tls=true (in Composer.phar) another error is thrown:

Fatal error: Uncaught PharException: manifest cannot be larger than 100 MB in phar "C:\Users\user\.config\herd\bin\composer.phar" in C:\Users\user\.config\herd\bin\composer.phar:28
Stack trace:
#0 C:\Users\user\.config\herd\bin\composer.phar(28): Phar::mapPhar('composer.phar')
#1 {main} thrown in C:\Users\user\.config\herd\bin\composer.phar on line 28

A Google search indicates Composer hasn't been installed properly but that's about all the digging I've been able to do on this one. :/

I have tried multiple uninstalls / reinstalls / restarts / with and without antivirus and firewall enabled but I've not had any different outcome - the errors are reproducible every time.

Anyone got any suggestions or other workarounds I could try? I'm basically about to give up on Herd and try XAMPP instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant