Php engine failed to start (windows 10)
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.
any way to fix?
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.
@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.
Also do you know anyone that has this working on a windows PC?
Same issue here.
@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?
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?!
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.