How to install and run WordPress via Node.js, Express and php-fpm?

Php

Video is ready, Click Here to View ×


Use express-php-fpm package to handle php requests via FastCGI protocol
https://github.com/pravdomil/express-php-fpm
https://pravdomil.cz

18 thoughts on “How to install and run WordPress via Node.js, Express and php-fpm?

  1. I got this error:
    Error: connect ECONNREFUSED 127.0.0.1:9000
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)

    I have changed the 9000 port to another port, but all of them throw same error

  2. How to fix it? Error when i open localhost:3000
    Error: connect ECONNREFUSED 127.0.0.1:9000
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)

  3. It would be great if we can put all of those in a single commands like: install (for WP installation,…), init (for WP DB setup,…), start/stop (turns on/off the site), maybe a destroy command too to remove the DB). This would be really helpful for firing up and getting rid of quick WP projects – no more _AMPS!

  4. I'm a WP developer, but am now learning about Node.js. Your video is confusing because WP uses a PHP backend, but Node.js is totally different.

    By the end of the video, you show WP installed, but is it really a Node.js backend, or is it still PHP?

  5. This might really save me! but I keep getting this error with my server:

    Error: connect ECONNREFUSED 127.0.0.1:9000
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

    I changed my port to make sure I was not using 3000 with another server. I can see that php-fpm is installed but I am not sure it is running. can I check that? Any help is appreciated. I'll beer you.

  6. it is smarter to use with nginx as you are supposed to terminate node too with a more robust solution (so you have lower maintenance and are not wasting time re-implementing). This should be called how to use Node.js and express to proxy to php-fpm.

Leave a Reply

Your email address will not be published. Required fields are marked *