Is it possible to install wordpress and node.js server on same server maschine and use wordpress mysql database also from node.js? Also is it possible to have noSql also installed on thah server to use with node.js? I want to use wordpress for frontend for my portal, but all asynchronous work to do with node.js and reading some data from wordpress mysql and writing some to noSql. Can someone please help me with steps how to achive this for testing purposes.
Thank you for your time and best regards!
If you're planning on using node for being accessed asynchronously by JavaScript that's being served by wordpress, then it will make your life considerably easier to have them running on the same host and port. What I've done in the past is set up the following:
Recent versions of HAProxy can also terminate SSL, if you want to do the same with HTTPS on port 443.
Here's a sample HAProxy configuration:
Yes it's possible, try express-php-fpm package.
You can use WordPress as backend only and Node.js for frontend.
Right, it's possible. The only catch is that Apache (running Wordpress) and Node.JS can't bind to the same port. In other words, you'll need to have Wordpress running on port 8080 and Node running on 80 (or other different ports).
As for the precise steps involved to install those services, there are hundreds of guides online.