Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Running php & Node.js on the same server and port



Threaded Mode | Print  

 Running php & Node.js on the same server and port (6 Replies, Read 17018 times)
Kynao
Group: Member
Post Group: Elite Member
Posts: 489
Status:
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
IP: --   

Running php & Node.js on the same server and port
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 4113
Status:
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.

-----------------------
SitePad Website Builder
Follow us on Twitter
IP: --   

Running php & Node.js on the same server and port
Kynao
Group: Member
Post Group: Elite Member
Posts: 489
Status:
Good point about directories, what about subdomains ? (in .htaccess  too ?)
- What about nginx ?
- Can NodeJS be installed without ghost ?


IP: --   

Running php & Node.js on the same server and port
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 4113
Status:
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

-----------------------
SitePad Website Builder
Follow us on Twitter
IP: --   

Running php & Node.js on the same server and port
Kynao
Group: Member
Post Group: Elite Member
Posts: 489
Status:
Thanks you Brijesh
   
IP: --   

Running php & Node.js on the same server and port
hdfree4u
Group: Member
Post Group: Newbie
Posts: 3
Status:
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
IP: --   

Running php & Node.js on the same server and port
hdfree4u
Group: Member
Post Group: Newbie
Posts: 3
Status:
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
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is December 15, 2018, 2:11 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.301