Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node.js serve a wordpress blog

I am using node.js on my rackspace server to serve my various applications. (Using node-http-proxy).

However, i would like to start a wordpress blog. The only way to serve the blog is via apache (or nginx).

Is there a way to server my wordpress blog from a node.js application itself?

like image 361
tUrG0n Avatar asked Aug 04 '12 16:08

tUrG0n


People also ask

CAN node js be used with WordPress?

By using Node. js or Go language to developed WordPress and instead of the PHP, it will reduce the loading time faster and more effectively.

Can I host website with node js?

If you're looking for a fast, scalable hosting option for your business (or any type of site), then you're right to be interested in Node. js!

Is Node JS good for social media?

Node. js is the most famous tool used for backend development. It can be used to create dynamic social media apps with chats, likes, and comments. It also has excellent data processing capabilities.

Can PHP and node js be used together?

You can run node and PHP on same server, and even on the same port. The key is to use a server like nginx in front listening on port 80, set up PHP in Nginx as you normally would (using php-fpm) and set up your Node instance to listen locally on some high port like 8081.


1 Answers

You need some server running to execute the PHP. Node is JavaScript.

Whether that's apache, or nginx/php-fpm or just php-fpm, you need something to actually run the wordpress code, then use the same proxying system you are using now.

like image 123
loganfsmyth Avatar answered Sep 29 '22 03:09

loganfsmyth