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
composer install fails with *The Process class relies on proc_open, which is not available on your PHP installation.* #9253
Comments
I don't think this is possible. Composer relies heavily on being able to run commands. |
I found the solution on SO https://stackoverflow.com/a/31667576/1951708
On our hosting it is possible to circumvent the |
Alternatively running |
Understandably, enabling proc_open would be the preferred solution. However I'm finding a composer install on shared hosting out of my control to work fine if it can't find an unzip command. It then falls back to using ZipArchive/Zip extension, which has its own drawbacks that the output warns about, but does not require proc_open to successfully install packages. (Side note: In this case the only thing I'm doing is a @Seldaek: do you think adding a Alternatively, perhaps adding that check in the extractWithSystemZip method may be more appropriate as that's already supposed to fallback to ZipArchive, but doesn't because it fails to consider if proc_open is available. I'm not sure why that isn't already falling back to ZipArchive anyway when running the Process fails because of proc_open.. I could prepare a quick PR, but as I've not contributed to Composer before and probably lack a bunch of context, I would also be happy to pay someone on the team/a regular contributor for an hour of their time instead... |
Yeah that makes sense, we want to support some basic install code-path without proc_open for sure, I can do the fix quickly. |
That would be amazing, thanks. Also for a very fast response! How can I best pay you for your time? I see the Github Sponsors can take a one-time donation on the Composer org, does that work? |
Sure sponsoring on the composer org is Sure sponsoring on the composer org is a good place, thanks! 60fe670 should fix it. |
For some reason the sponsoring didn't go through the first time, so I've just added it again, which should get to you on September 28th. |
My
composer.json
:Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
I expected to be able to run
composer install
without issue.Is there a way to circumvent the problem of
proc_open
not being available ? If yes, what should I do ?The text was updated successfully, but these errors were encountered: