You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
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");
error exec php script:
The text was updated successfully, but these errors were encountered: