sphp
sphp copied to clipboard
Failed to start PHP worker on debian
When trying to render a php page for the first time with this module I get the following error:
Serving PHP page: /Sqool/index.php
/root/Website/node_modules/sphp/sphp.js:454
throw new Error(str);
^
Error: Failed to start PHP worker.
PHP engine: php-cgi
PHP engine version: PHP 8.3.14 (cgi-fcgi) (built: Nov 21 2024 14:44:18)
Worker script: /root/Website/node_modules/sphp/php_worker.php
Error: Error: spawn php-cgi ENOENT
at ChildProcess.handleExit (/root/Website/node_modules/sphp/sphp.js:454:13)
at ChildProcess.emit (node:events:515:28)
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v21.0.0
Sorry. I've stopped maintaining this code. If you fix it, please make a pull request. You could also try fast cgi or some similar. Br Simon