node-php icon indicating copy to clipboard operation
node-php copied to clipboard

No input file specified.

Open jenokizm opened this issue 9 years ago • 3 comments

error exec php script:

No input file specified.

jenokizm avatar Jun 03 '15 16:06 jenokizm

i have the same problem too, when i use app.use("/", php.cgi("/path/to/wordpress")); or app.use("/", php.cgi("tes.php"));

it will give something wrong in PATH_INFO, i don't know why

let's take a look this one works good app.get("/", php.cgi(__dirname));

and make sure, you have set up this, in node-modules/node-php/main.js SERVER_PORT: 9000, //The port of your PHP-FPM or PHP-CGI service

and here is my node-modules var fs = require('fs'); var express = require('express'); var apl = express(); var colors = require('colors'); var morgan = require('morgan'); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var mongoose = require("mongoose"); var php = require("node-php"); var path = require("path");

triakasah avatar Aug 22 '15 18:08 triakasah

+1

faizalmy avatar Jul 25 '17 00:07 faizalmy

Cool.This worked.

app.get("/", php.cgi(__dirname + '/phporwww'));

ganeshkbhat avatar Sep 15 '18 06:09 ganeshkbhat