Softaculous


Topic : Running php & Node.js on the same server and port


Posted By: Kynao on April 10, 2014, 2:46 pm
Whatever apache or nginx is used, running php will listen on port 80 and the idea to rely on another port for node.js is not sexy enough to be a seductive solution :)

This approach is an answer for that here,
ie using same port for both php and node.js. The approach takes directories dedicated to Node.js but it could have taken different subdomains as another solution too.

Tio sum up, my suggestion is softaculous allows
  • php & node.js on the same server and same port
  • node.js definitions paths either by subdomains, directories or both of them

Posted By: Brijesh on April 11, 2014, 9:36 am | Post: 1
Hi,

The link you provided has NodeJS installed on port 8000 and they are simply using a .htaccess file to serve the content on port 8000 and the user is on the same URL.

This is what Softaculous already does for Ghost i.e. we install NodeJS on another port and then use the .htaccess file to serve the content of Ghost from your NodeJS port without the user having to add the port in the URL.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: Kynao on April 11, 2014, 1:14 pm | Post: 2
Good point about directories, what about subdomains ? (in .htaccess  too ?)
- What about nginx ?
- Can NodeJS be installed without ghost ?



Posted By: Brijesh on April 12, 2014, 9:29 am | Post: 3
Hi,

Yes it will work similarly for Sub-domains as well.

Ghost does not work on Nginx.

Yes you can install NodeJS without Ghost but on Webuzo from the APPS category :
http://webuzo.com/sysapps/web_servers/Node.js

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: Kynao on April 12, 2014, 9:51 am | Post: 4
Thanks you Brijesh
   

Posted By: hdfree4u on March 14, 2018, 7:08 am | Post: 5
i install Node.js web server from apps . How to set that web server for particular domain from Extra Configuration . when i visit Extra Configuration there is no Node.js.
After install node.js it not show on defult apps tab also how to fix it. Look the screen shot

Posted By: hdfree4u on March 14, 2018, 7:09 am | Post: 6
i install Node.js web server from apps . How to set that web server for particular domain from Extra Configuration . when i visit Extra Configuration there is no Node.js.
After install node.js it not show on defult apps tab also how to fix it. Look the screen shot

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.