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

Php engine failed to start (windows 10) #17

Open
cheslin23t opened this issue Nov 27, 2020 · 7 comments
Open

Php engine failed to start (windows 10) #17

cheslin23t opened this issue Nov 27, 2020 · 7 comments

Comments

@cheslin23t
Copy link

I was running my first php, but this error happened... `C:\Users\Chesl\Desktop\phpwebsitetest\node_modules\sphp\sphp.js:320
throw new Error('PHP engine failed to start (' + sphp.cgiEngine +')');
^

Error: PHP engine failed to start (php-cgi.exe)
at ChildProcess. (C:\Users\Chesl\Desktop\phpwebsitetest\node_modules\sphp\sphp.js:320:13)
at ChildProcess.emit (events.js:315:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)`

any way to fix?

@paragi
Copy link
Owner

paragi commented Nov 27, 2020

Hi cheslin23t
I'm sorry to say, that I don't usually use windows. I would guess that you have to make sure there is a path to php-cgi.exe.
I have no way to test it at present.
Please get back to me, if the issue persists.

@cheslin23t
Copy link
Author

@paragi Thank you for reaching out to me! Do you have discord? If so, I can share my screen and show you the error, and you can tell me what to do on a mac or Linux, I can just google how to do what you say on a windows.

@cheslin23t
Copy link
Author

Also do you know anyone that has this working on a windows PC?

@Jesper117
Copy link

Same issue here.

@paragi
Copy link
Owner

paragi commented Sep 28, 2021

@ingo Fischer AKA Apollon77
Do you have a take on this?
I can't check on this, as i don't have, or have any need for a working windows installation.
Alternatively we could claim it as ?nix only?

@Apollon77
Copy link
Collaborator

Apollon77 commented Sep 28, 2021

Maybe it would help first to also log the exception and the stack to see whats up there :-)

something like a

console.log(err)
console.log(err.stack)

in https://github.com/paragi/sphp/blob/master/sphp.js#L320 before the throw ...

@Jesper117 @cheslin23t maybe one of you could try that?!

@Jesper117
Copy link

Maybe it would help first to also log the exception and the stack to see whats up there :-)

something like a

console.log(err)
console.log(err.stack)

in https://github.com/paragi/sphp/blob/master/sphp.js#L320 before the throw ...

@Jesper117 @cheslin23t maybe one of you could try that?!

Hi, thanks for your response.
I found an alternative way to do what I wanted to do, but thank you anyway for your effort to respond.

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

No branches or pull requests

4 participants