My main application will be in Node.js. However, I’d also like a phpBB forums and a MediaWiki wiki, preferably served on the same Amazon EC2 server.
I am aware of DNode which seems to be a way for PHP and Node.js to communicate with each other. However, what I want to do is just handle certain directories to PHP – eg:
/ = PHP
/chat/ = Node.js
/forums/ = PHP
/wiki/ = PHP
Just as your example shows, you use PHP for your directories you have listed, and Node.js for the chat client. I don’t see why you would be integrating your PHP code into the chat client. If anything, you might pass it data, and that can be done with json.