Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

No input file specified. #8

Open
jenokizm opened this issue Jun 3, 2015 · 3 comments
Open

No input file specified. #8

jenokizm opened this issue Jun 3, 2015 · 3 comments

Comments

@jenokizm
Copy link

jenokizm commented Jun 3, 2015

error exec php script:

No input file specified.

@triakasah
Copy link

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");

@faizalmy
Copy link

+1

@ganeshkbhat
Copy link

Cool.This worked.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants