express-php-fix
v0.0.2-fix
Published
serving PHP over Express/Node.js
Downloads
5
Readme
express-php-fix
Serving PHP over Express & Node.js, with a fix for a user-specified php-cgi command.
This is now working with a simple WordPress installation.
Example
var express = require('express');
var php = require('express-php');
var app = express();
app.use(php.cgi('./httpdocs', '/usr/local/bin/php-cgi'));
app.use(express.static('./httpdocs'));
app.listen(4000);Installation
$ npm install express-phpphp-cgi should be installed, if not:
$ sudo apt-get install php5-cgiCompiling coffee2js
$ npm install -g coffee-script
$ coffee -b -c index.coffeeFuture wishlist
- Work with a simpler routing system such as pillarjs / router or mulesoft-labs / osprey-router
