0.0.2-fix • Published 9 years ago

express-php-fix v0.0.2-fix

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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

License

MIT