sphp icon indicating copy to clipboard operation
sphp copied to clipboard

Php engine failed to start (windows 10)

Open cheslin23t opened this issue 5 years ago • 7 comments

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?

cheslin23t avatar Nov 27 '20 17:11 cheslin23t

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 avatar Nov 27 '20 19:11 paragi

@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 avatar Nov 27 '20 21:11 cheslin23t

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

cheslin23t avatar Nov 27 '20 21:11 cheslin23t

Same issue here.

Jesper117 avatar Sep 28 '21 07:09 Jesper117

@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?

paragi avatar Sep 28 '21 10:09 paragi

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?!

Apollon77 avatar Sep 28 '21 15:09 Apollon77

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.

Jesper117 avatar Sep 28 '21 15:09 Jesper117