Skip to content

Commit 4f42411

Browse files
author
Ganesh B
committed
[Commit]: Ganesh Bhat - Adding dynamic PHP-CGI path configuration to the repo that can be instantiated from express server. Available Tests pass through. Adding docs for relevant changes.
1 parent 8c77191 commit 4f42411

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ var path = require("path");
2222

2323
var app = express();
2424

25-
app.use("/", php.cgi("/path/to/wordpress"));
25+
// Following works without a path and PHP-CGI installed in system
26+
// app.use("/", php.cgi("/path/to/wordpress"), '');
27+
28+
// Following is the path for PHP-CGI that you want to use for the application
29+
app.use("/", php.cgi("/path/to/wordpress"), '/usr/bin/');
2630

2731
app.listen(9090);
2832

0 commit comments

Comments
 (0)