Skip to content

Failed to start PHP worker on debian #19

Description

@fresheneesz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions