0.0.2-fix • Published 9 years ago
express-php-fix v0.0.2-fix
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-php
php-cgi should be installed, if not:
$ sudo apt-get install php5-cgi
Compiling coffee2js
$ npm install -g coffee-script
$ coffee -b -c index.coffee
Future wishlist
- Work with a simpler routing system such as pillarjs / router or mulesoft-labs / osprey-router
License
0.0.2-fix
9 years ago
0.0.2-cbfix
9 years ago